On Thu, Aug 5, 2010 at 5:11 AM, David Korn <[email protected]> wrote:
> cc:  [email protected]  [email protected]          
> [email protected]  [email protected]          
> [email protected]
> Subject: Re: Re: Re: Re: Re: [ast-developers] Re: [ast-users] Write up on how 
> to   localize shell scripts - Second Try
> --------
>
>> Erm... can you make an example for this case, please ?
>
> A script can do
>
> commands1 ...
> LC_ALL
> commands2 ...
>
> and  command2 will use the new locale.
>
> However, since a function is a compound command, the locale will be
> frozen the first time that the function is invoked and will not change.

Why are the strings frozen at this point? Why can't the shell look the
message up in the current catalog each time it is used? We could live
with slow and unfrozen localised string literals but not with the
inability to switch the message locale of already established
functions. We require this to use the localised string literals in an
installer which must be able to instantly switch between languages
without having to restart the installer (this is a typical installer
feature users expect these days).

Irek
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to