[interchange-i18n] Product database

Stefan Hornburg Racke racke at linuxia.de
Mon Feb 18 05:03:01 UTC 2002


Francisco Sánchez <lists at e-civitas.com> writes:


[...]

> >
> > In this case the following should work:
> >
> > [language-field base=products field=description code="[item-data products
> sku]"]
> >
> 
> Dear Stefan, I am afrad that in this case it does not work, unless I am
> doing it wrong (which on the other hand is quite possible).
> 
> I have just tried, as with the [language-field products comment [item-code]]
> tag,
> 
> UserTag language-field Order base field code
> UserTag language-field Routine <<EOF
> sub {
> my ($base, $field, $code) = @_;
> my $data;
> my $locale = $Scratch->{mv_locale};
> 
> if ($locale) {
> $data = $Tag->data($base,"${field}_$locale",$code);
> return $data if $data =~ /\S/;
> }
> $Tag->data($base,$field,$code);
> }
> EOF
> 
> and then used this tag instead: [language-field products description
> [item-data products sku]], replacing the original [item-data products
> description].

You have to use positional parameters (see my example above).


[...]

> 
> PS.  I think that I will have finished the translation into Spanish this
> week.  Of course it is a customised translation, but in case anyone is
> interested, I will send or post the es_ES.cfg, removing the most customised
> sections, but still leaving a good deal of translations.

That's nice.

Ciao
        Racke

-- 
Think of it !

For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info at cobolt.net; Phone: 0041-1-3884400)



More information about the interchange-i18n mailing list