[ic] A Question about changing the locale

Stefan Hornburg interchange-users@icdevgroup.org
Thu Jan 16 09:55:01 2003


On Thu, 16 Jan 2003 16:11:03 +0200
"Rene Hertell" <interchange@hertell.com> wrote:

> 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]

$Scratch->{mv_locale} is considered to be read-only, use the [setlocale] tag
instead. 

Bye
        Racke