R: R: R: [ic] help with locale please

Stefano Nota interchange-users@lists.akopia.com
Mon May 14 10:29:00 2001


Something like this is rigth?

UserTag language-field Order field code
UserTag language-field Routine <<EOF
sub {
	my ($comment_it_IT, $code) = @_;
	my $data;
	my $locale = $Scratch->{mv_locale};

	if ($locale) {
		$data = $Tag->data('products',"${comment_it_IT}_$locale",$code);
		return $data if $data =~ /\S/;
	}
	$Tag->data('products',$comment_it_IT,$code);
}
EOF

If i've done errors, could you correct it please?
It's not so simple, i'm not so expert.

Thanks 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 16.05
A: interchange-users@developer.akopia.com
Oggetto: Re: R: R: [ic] help with locale please


"Stefano Nota" <stefano@register.it> writes:

> I think that your explanation is rigth.
> But i'm new in using IC so i have some difficulties.

That's naturally.

>
> The code you wrote i complete?

??

> Sholud i change anything?Maybe like field with commen_it.

The field names should be comment, comment_it_IT, comment_de_DE
etc., otherwise the code wouldn't work.

>
>
> And, it could be used with all fields?

Yes.

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