[Scilab-Dev] Localization behavior
Laurent Vaylet
laurent.vaylet at inria.fr
Mon Feb 4 15:06:58 CET 2008
Many many weeks ago, in a far far away city called Lyon, when i was a
consultant, we used to design software that way:
The first time the application was launched, the user was given a choice
through a popup menu : french or english (independently of the OS
language) ? This setting was saved in a file and retrieved at the next
startup. At any moment, the user could decide to switch language through
a menu item and the new setting applied immediately for both GUI and
help files (and perhaps unit system). Would it be possible with Scilab ?
Anyway, i agree with Vincent on the fact that functions must be loaded
first and independently of this setting.
Laurent
On Mon, 2008-02-04 at 14:36 +0100, Vincent COUVERT wrote:
> Hello,
>
> As a Scilab user, the behavior I would have for Scilab is :
> - if I do not precise the locale I want to use: Scilab uses the default
> locale of my system
> - if I do not want to use the locale of my system, I precise in a
> Scilab configuration file which locale I want to use
>
> We have to remember that the locale settings must be read before Scilab
> GUIs are created but after all Scilab functions are loaded (to have
> access to localization functions).
>
> Vincent
>
> Sylvestre Ledru a écrit :
> > Hello,
> >
> > We are thinking about how the localization should be handle in Scilab.
> >
> > At the moment, when Scilab is launched, each time, we are loading the
> > locale of the system and if we have the matching translation, we load
> > it. Otherwise, we switch back to english.
> > This behaviour is the standard one under Linux but we might want the
> > user to keep his favorite language when he starts Scilab.
> >
> > We have one potential solution :
> >
> > Under Windows, on the installation, the user choose his language and we
> > save it in the configuration (registry base).
> >
> > Under Linux, we detect it each time the user starts Scilab which
> > language is the default one on the system.
> > However, by calling the function setdefaultlanguage("xx_XX"), we are
> > saving the language he wants into the Scilab configuration file.
> >
> > How does it sound ?
> > Cheers,
> > Sylvestre
> >
> >
> >
>
More information about the dev
mailing list