[Scilab-Dev] PATCH for set/get environment variables

Yung-Jang Lee yjlee123 at gmail.com
Thu Jan 22 15:22:21 CET 2009


Hi,

Since Macau, Hong Kong and Taiwan regions use chinese-traditional characters ,
you can only test  'zh_TW' in these regions.

P.R.C and Singapore use chinese-simplified characters in these region,
users will most likely only select 'zh_CN'.

 So, we must have

1] Macau , scilab language zh_TW --> Menus enabled
2] P.R.C , scilab language zh_CN --> Menus disabled
3] Singapore , scilab language zh_CN --> Menus disabled
4] Hong Kong , scilab language zh_TW --> Menus enabled
5] Taiwan , scilab language zh_TW --> Menus enabled

Other combinations may work, but is not necessary.

On my machine 1]-5] just works as I expected. But your testing of
'Taiwan ,zh_TW'  is unexpected and different from mine. Maybe you need
set 'advanced' option on the "Regional and Language options" to test
chinese.


Regards,


Yung-Jang Lee





2009/1/22 Allan CORNET <allan.cornet at scilab.org>:
> Hi,
>
> I do some tests about localization , on a windows XP Multilanguage :
>
> I set "Regional and Language options" in control panel Windows:
>
> 1] Macau , scilab language zh_CN --> Menus enabled
>
> 2] P.R.C , scilab language zh_CN --> Menus disabled
>
> 3] Singapore , scilab language zh_CN --> Menus disabled
>
> 4] Hong Kong , scilab language zh_CN --> Menus enabled
>
> 5] Taiwan , scilab language zh_CN --> Menus enabled
>
> 6] Taiwan , scilab language zh_TW --> Menus disabled
>
>
> Why 2] and 6] do not work ?
>
> Allan
>
>
> -----Message d'origine-----
> De : Yung-Jang Lee [mailto:yjlee123 at gmail.com]
> Envoyé : jeudi 22 janvier 2009 10:43
> À : dev at lists.scilab.org
> Objet : Re: [Scilab-Dev] PATCH for set/get environment variables
>
> Hi,
>
>>
>> Launch scilab and setdefaultlanguage('zh_CN')
>
> Under my  Chinee-Traditional (language 'zh_TW') Windows, and set
>
>  setdefaultlanguage('zh_TW')
>  setdefaultlanguage('zh_CN)
>  setdefaultlanguage('fr_FR')
>  setdefaultlanguage('ru_RU')
>
> for test, menus for 'zh_TW' and 'zh_CN' is OK, but with gray menu for 'fr_FR' and 'ru_RU' .
>
> I think it dependents on the code page of the Windows system currently  used. And it is not a serious bug since most users don't set default language not compatible with system encoding.
>
> If we want to resolve this bug, may be we should add a encoding argument to  'setdefaultlanguage' for example,
>
>
>  setdefaultlanguage('zh_TW','BIG5')
>
> or
>
> setdefaultlanguage('ru_RU','CP1251')
>
>
> Regards,
>
> Yung-Jang Lee
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regional.png
Type: image/png
Size: 9172 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20090122/986331b8/attachment.png>


More information about the dev mailing list