bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] [bug #43801] should use default language on Windows, not d


From: Pierre Ossman
Subject: [bug-gettext] [bug #43801] should use default language on Windows, not default locale
Date: Thu, 11 Dec 2014 10:46:04 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0

URL:
  <http://savannah.gnu.org/bugs/?43801>

                 Summary: should use default language on Windows, not default
locale
                 Project: GNU gettext
            Submitted by: cendossm
            Submitted on: Thu 11 Dec 2014 10:46:03 GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

A Windows user that has configured a different language and locale will get
translations based on the locale for gettext programs rather than the chosen
language. This is because gettext calls GetThreadLocale() instead of
GetUserDefaultUILanguage().

Patch attached for 0.19.3. Might not be entirely correct though as the
function is meant to get locale, not language. More restructuring might be
needed.

Note that for Win32 you also need to set WINVER to 0x0500 to get this API as
it was new for Windows 2000.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 11 Dec 2014 10:46:03 GMT  Name: gettext-0.19.3-langid.patch  Size:
777B   By: cendossm

<http://savannah.gnu.org/bugs/download.php?file_id=32649>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43801>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]