Re: 1.7.7: Localization does not follow the language of the OS

2011-01-31 Thread cornwarecjp
Replying to : >> I think that doing setlocale(LC_ALL, ""); on application initialization >> should do the trick. > > Yes it does - assuming you use a libintl from gettext version >= 0.18, > and assuming that you have a #include in the source

Re: 1.7.7: Localization does not follow the language of the OS

2011-01-28 Thread Charles Wilson
On 1/28/2011 4:30 PM, Eric Blake wrote: > On 01/28/2011 01:58 PM, Bruno Haible wrote: >> Yes it does - assuming you use a libintl from gettext version >= 0.18, > >> I don't know which gettext version is used in cygwin 1.7.7. > > 0.17, because 0.18 (and .1 and .1.1) doesn't build on cygwin. This

Re: 1.7.7: Localization does not follow the language of the OS

2011-01-28 Thread Eric Blake
On 01/28/2011 01:58 PM, Bruno Haible wrote: > Yes it does - assuming you use a libintl from gettext version >= 0.18, > I don't know which gettext version is used in cygwin 1.7.7. 0.17, because 0.18 (and .1 and .1.1) doesn't build on cygwin. This has been reported before: http://cygwin.com/ml/cyg

Re: 1.7.7: Localization does not follow the language of the OS

2011-01-28 Thread Bruno Haible
Replying to : > I have a Dutch windows version, so > on my PC the application should automatically set its language to Dutch. > I want to release this application to users with different language > preferences, and on their PCs the application

Re: 1.7.7: Localization does not follow the language of the OS

2011-01-12 Thread Cyrille Lefevre
Le 11/01/2011 20:20, cornware...@lavabit.com a écrit : > Can you please tell me and others how to make an internationalized > application in Cygwin that behaves as described in the first paragraph? > I couldn't find an answer to this in the FAQ, the User's Guide, the > mailing lists or Google. Hi,

Re: suggestion (was Re: 1.7.7: Localization does not follow the language of the OS)

2011-01-12 Thread Corinna Vinschen
On Jan 12 18:47, cornware...@lavabit.com wrote: > > The official way to set the locale is to use the locale(1) tool, see the > > User's Guide http://cygwin.com/cygwin-ug-net/using-utils.html#locale > > > > export LANG=`locale -u` setenv LANG `locale -u` > > export LANG=`locale -s` s

Re: suggestion (was Re: 1.7.7: Localization does not follow the language of the OS)

2011-01-12 Thread Andy Koppe
On 12 January 2011 17:47, cornwarecjp wrote: >> The official way to set the locale is to use the locale(1) tool, see the >> User's Guide http://cygwin.com/cygwin-ug-net/using-utils.html#locale >> >>   export LANG=`locale -u`       setenv LANG `locale -u` >>   export LANG=`locale -s`       setenv LA

Re: suggestion (was Re: 1.7.7: Localization does not follow the language of the OS)

2011-01-12 Thread cornwarecjp
> The official way to set the locale is to use the locale(1) tool, see the > User's Guide http://cygwin.com/cygwin-ug-net/using-utils.html#locale > > export LANG=`locale -u` setenv LANG `locale -u` > export LANG=`locale -s` setenv LANG `locale -s` > > or better > > export LANG=`lo

Re: suggestion (was Re: 1.7.7: Localization does not follow the language of the OS)

2011-01-12 Thread Corinna Vinschen
On Jan 12 14:54, Matthias Andree wrote: > Am 12.01.2011 11:55, schrieb Corinna Vinschen: > > >> export LANG="$(locale -uU)"# (or -sU for system default locale) > > > > It's just another way to express the same. Backticks are not obsolete. > > The backtick style is exactly as much POSIX as th

Re: suggestion (was Re: 1.7.7: Localization does not follow the language of the OS)

2011-01-12 Thread Matthias Andree
Am 12.01.2011 11:55, schrieb Corinna Vinschen: >> export LANG="$(locale -uU)"# (or -sU for system default locale) > > It's just another way to express the same. Backticks are not obsolete. > The backtick style is exactly as much POSIX as the $() style. See > http://pubs.opengroup.org/online

Re: suggestion (was Re: 1.7.7: Localization does not follow the language of the OS)

2011-01-12 Thread Corinna Vinschen
On Jan 12 11:07, Matthias Andree wrote: > Am 12.01.2011 10:59, schrieb Corinna Vinschen: > > On Jan 12 01:50, Cyrille Lefevre wrote: > >> > >> Hi > >> > >> an interresting registry entry would be : > >> > >> /proc/registry/HKEY_CURRENT_USER/Control Panel/International/LocaleName > >> > >> in fr

Re: suggestion (was Re: 1.7.7: Localization does not follow the language of the OS)

2011-01-12 Thread Matthias Andree
Am 12.01.2011 10:59, schrieb Corinna Vinschen: > On Jan 12 01:50, Cyrille Lefevre wrote: >> >> Hi >> >> an interresting registry entry would be : >> >> /proc/registry/HKEY_CURRENT_USER/Control Panel/International/LocaleName >> >> in france, under vista, it's fr-FR which is easy to translate to

Re: suggestion (was Re: 1.7.7: Localization does not follow the language of the OS)

2011-01-12 Thread Corinna Vinschen
On Jan 12 01:50, Cyrille Lefevre wrote: > > Hi > > an interresting registry entry would be : > > /proc/registry/HKEY_CURRENT_USER/Control Panel/International/LocaleName > > in france, under vista, it's fr-FR which is easy to translate to > fr_FR.UTF-8... > > how about to integrate something li

suggestion (was Re: 1.7.7: Localization does not follow the language of the OS)

2011-01-11 Thread Cyrille Lefevre
Hi an interresting registry entry would be : /proc/registry/HKEY_CURRENT_USER/Control Panel/International/LocaleName in france, under vista, it's fr-FR which is easy to translate to fr_FR.UTF-8... how about to integrate something like this in lang.sh : [ -n "${LC_ALL:-${LC_CTYPE:-$LANG}}" ] &