bugGNU gettext - Bugs: bug #66491, Fallback languages aren't used on...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #66491: Fallback languages aren't used on Windows

Submitter:  Pierre Ossman <cendossm>
Submitted:  Thu 28 Nov 2024 10:28:50 AM UTC
   
 
Category:  End-user / runtime Severity:  3 - Normal
Item Group:  None Status:  Need Info
Privacy:  Public Assigned to:  haible
Open/Closed:  Open

Jump to the original submission

Mon 09 Dec 2024 03:05:57 PM UTC, comment #8: 

I'm afraid I'm not seeing any change in behaviour. Nor any new output.

Pierre Ossman <cendossm>
Mon 09 Dec 2024 02:45:39 PM UTC, comment #7: 


> Unfortunately the issue remains. I'm still getting English if the primary language isn't supported.


OK.

Can you make another test, please? With the same gettext-0.23 binaries, but with the environment variable GETTEXT_MUI set to a non-empty value?

In bash syntax:

export GETTEXT_MUI=yes


In cmd.exe syntax:

set GETTEXT_MUI=yes


Bruno Haible <haible>
Group administrator
Mon 09 Dec 2024 02:30:29 PM UTC, comment #6: 

It's a quirk of our build environment that it wants to rebuild it for all architectures.

I was able to work my way around it, though. Unfortunately the issue remains. I'm still getting English if the primary language isn't supported.

It seems to respect $LANGUAGE better, so some part of the mechanism works.

(I do see one bug with $LANGUAGE as well, in that English is ignored in the priority list)

Any debug settings for gettext that might help?

Pierre Ossman <cendossm>
Fri 06 Dec 2024 04:21:15 PM UTC, comment #5: 


> ../../../gettext-tools/gnulib-tests/file-has-acl.c:177:38: error: 'XATTR_NAME_SMACK' undeclared


This error is in Linux specific code. You are welcome to open another ticket for this compilation error (with details about the Linux distribution, installed Linux kernel version, libacl version, libattr version).

But this bug is about native Windows. So you need a native Windows build of gettext 0.23, in order to test.

Bruno Haible <haible>
Group administrator
Fri 06 Dec 2024 03:45:55 PM UTC, comment #4: 

I tried a quick test build here, but unfortunately the libc/kernel requirements seem to have gone up with gettext 0.23 so it fails to build:

../../../gettext-tools/gnulib-tests/file-has-acl.c:177:38: error: 'XATTR_NAME_SMACK' undeclared (first use in this function)
           if (aclinfo_has_xattr (ai, XATTR_NAME_SMACK))
                                      ^

I'll see if I can work around it next week to get a test build going.

Pierre Ossman <cendossm>
Fri 06 Dec 2024 09:23:50 AM UTC, comment #3: 

Could you please try again with GNU gettext 0.23? It has code that makes use of GetUserPreferredUILanguages; this code did not work in earlier releases (cf. bug #65128).

Bruno Haible <haible>
Group administrator
Thu 28 Nov 2024 12:33:19 PM UTC, comment #2: 

1) See attached screenshot

2) We haven't done any research in to Windows APIs. A quick search suggests that GetUserPreferredUILanguages() might be interesting.


Pierre Ossman <cendossm>
Thu 28 Nov 2024 10:35:08 AM UTC, comment #1: 


> Windows has not just a single language, but a prioritised list of  languages.


1) How can the user set/change this list? (Assuming Windows 10.)

2) How can a program retrieve this list? I'm asking because I vaguely recall having searched for an API that returns this list and found none.

Bruno Haible <haible>
Group administrator
Thu 28 Nov 2024 10:28:50 AM UTC, original submission:  

Windows has not just a single language, but a prioritised list of  languages. Much like $LANGUAGE.

Unfortunately, it seems gettext doesn't look at this list. If the configured primary language is not available in the message catalog, then gettext will fall back to the default English.

Tested with gettext 0.22.5.

Pierre Ossman <cendossm>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #56651:  languages.png added by cendossm (181KiB - image/png - Screenshot of Windows 10 language settings)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by cendossm (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-12-06 haible StatusNone Need Info
    2024-11-28 haible StatusNeed Info None
    2024-11-28 cendossm Attached File- Added languages.png, #56651
    2024-11-28 haible StatusNone Need Info
        Assigned toNone haible

    Back to the top

    Powered by Savane 3.14-962f.
    Corresponding source code