Angus Leeming wrote:
> Jean-Marc Lasgouttes wrote:
>> Angus> ...is used, of course, to control l10n of the UI. (How about
>> Angus> that for jargon!) Trouble is, it's not very intuitive to
>> Angus> Windows users. I wonder if it would not be good to have a
>> Angus> LyXRC::ui_language variable and get LyX to set LANG if it isn't
>> Angus> empty:
>> 
>> What we should really do is query the language from windows and just
>> use that. That cannot be so difficult to achieve...
> 
> Hmmm. Having tried out my idea (patch attached) I think you're right. The
> patch has no effect because gettext_init is called so early --- way
> before the lyxrc files are parsed.
> 
>> The main problem of course is that windows has different names for
>> these locales. Is locale.alias installed currently in the locale/
>> directory? Would that help to have it?
> 
> $ ls /mnt/windowsC/Program\ Files/LyX/Resources/locale
> da  de  es  eu  fi  fr  it  locale.alias  nl  nn  no  pl  ro  ru  sk  sl
> tr
> 
> I attach this file also. How is it meant to be used?
> 
>> [later...]
>> 
>> I searched the web to find references on using gettext with win32 api,
>> and I have to say I found nothing. Aren't there other unix apps that
>> use gettext and got ported to windows?
> 
> You didn't look in the right place, obviously. google for "gettext
> windows":
> 
> http://gnuwin32.sourceforge.net/install.html#Native-language_support_

However, see also the message I've just posted to the MinSYS list:
http://article.gmane.org/gmane.comp.gnu.mingw.msys/2611

-- 
Angus

Reply via email to