[ic] A Question about changing the locale

Rene Hertell interchange-users@icdevgroup.org
Thu Jan 16 09:12:00 2003


Hi,

Is it possible to make a locale-switch in the middle of a page and show
values based on that?

I have a date-widget specified for one field with the table-editor that
should show the date in a different language. If I switch the language like
this, the table-editor shows still the date in the original language. But If
I set the locale on the previous page, the date shows as i need it.

Here is the code i tried with:

[perl]
	$Scratch->{original_language}=$Scratch->{mv_locale};
	$Scratch->{mv_locale}="fi_FI";
	return;
[/perl]
[table-editor ....]
[perl]
	$Scratch->{mv_locale} = $Scratch->{original_language};
	return;
[/perl]

Is it possible to specify just the table-editor-part to be a different
locale, instead of having to switch it on the previous page?

Regards,

René