[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
R: R: [ic] help with locale please
I think that your explanation is rigth.
But i'm new in using IC so i have some difficulties.
The code you wrote i complete?
Sholud i change anything?Maybe like field with commen_it.
And, it could be used with all fields?
Thanks a lot stefano
-----Messaggio originale-----
Da: interchange-users-admin@developer.akopia.com
[mailto:interchange-users-admin@developer.akopia.com]Per conto di Stefan
Hornburg (Racke)
Inviato: luned́ 14 maggio 2001 14.35
A: interchange-users@developer.akopia.com
Oggetto: Re: R: [ic] help with locale please
"Stefano Nota" <stefano@register.it> writes:
> Thanks but i can't uderstand what [loc][item-field comment][/loc] do
> I should manage to make appear a comment of the article in italian if the
> langauge is italian and in another language if it is in english
?? I don't understand your setup. Please explain more thoroughly.
Maybe you need sth like that.
UserTag language-field Order field code
UserTag language-field Routine <<EOF
sub {
my ($field, $code) = @_;
my $data;
my $locale = $Scratch->{mv_locale};
if ($locale) {
$data = $Tag->data('products',"${field}_$locale",$code);
return $data if $data =~ /\S/;
}
$Tag->data('products',$field,$code);
}
EOF
You call this with [language-field comment [item-code]].
Explanation: The language is set to it_IT, so if there is a field
comment_it_IT with a text for this product, it display this,
otherwise the contents of the field comment.
Bye
Racke
--
Master of Swiss Web 2001: http://www.zweifel.ch/
For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users