Language not recognized
John Ralls
jralls at ceridwen.us
Thu Oct 16 16:15:56 EDT 2025
> On Oct 16, 2025, at 10:08 AM, John Ralls <jralls at ceridwen.us> wrote:
>
>
>
>> On Oct 16, 2025, at 09:44, John Ralls <jralls at ceridwen.us> wrote:
>>
>>
>>
>>> On Oct 16, 2025, at 06:45, Pedro Albuquerque <pmra at protonmail.com> wrote:
>>>
>>> Second, like you said yourself, "It should pick the system locale". Clearly,
>>> it isn't. IMHO, the system locale is pt_PT Portugal, the one and only
>>> Portuguese. GnuCash uses the vast pt, that includes all dialects around the
>>> world. Maybe that is why GnuCash fails to pick it?
>>>
>>> As you can imagine, my Windows system has all settings, date, time, regional,
>>> language, etc, set for Portugal. Nothing to change there (opposed to my Linux
>>> usual computer, that is fully set to en_UK, where I can configure environment
>>> variables and have GnuCash using my own translations :) )
>>>
>>> Worst case, even with that environment.local file, the result is the exact
>>> same. But, I think you were already expecting this, judging by your last
>>> comment, "Good Luck!" ;). From my very little experience, computers dont work
>>> out of luck.
>>>
>>> There is, or was, a feature request in Bugzilla, created by me, asking that a
>>> UI language choice would exist somewhere in Preferences/Options/Whatever, like
>>> most software these days has. Please do consider this issue here as another
>>> reason for that to happen?
>>
>> Hi Pedro,
>>
>> I’ll investigate why we’re not picking up the system locale correctly on Windows, thanks for the report.
>>
>> The translation library we use, Gnu Gettext, has two-level language resolution: Locale specific and generic. If there’s a locale-specific translation available that matches the user’s locale that’s used, and if not then it looks for a generic translation that matches the language part of the locale. GnuCash’s Portuguese has two translations: Yours is the generic one and pt_BR, so someone using the Brazilian locale should get the pt_BR translation and everyone else with a pt_XX locale should get yours.
>>
>> There may be a problem with the environment.local file so try editing the environment file. On Windows you’ll need to run your editor with Administrator privs to do that.
>>
>> Your enhancement request is Bug 798412 - Add option to choose language (https://bugs.gnucash.org/show_bug.cgi?id=798412). Since that hasn’t been acted upon it can’t have anything to do with the problem.
>>
>> You didn’t say what version of GnuCash you installed. I presume it’s 5.13 and that localization worked correctly in 5.12. Please confirm that’s the case and if it isn’t please do install 5.13 and confirm that the problem exists there.
>
> Pedro,
>
> I just re-read the disussion on bug 798412 and you mention using environment variables $Env:LANG and $Env:LANGUAGE. Those take precedence over everything else so please make sure they’re not set. Don’t forget to check the shortcut (desktop or menu) if you use one to start GnuCash.
Pedro,
I just tested 5.13 installed from the distribution setup.exe on Win11 after installing Portuguese and setting it as the System Language. GnuCash opened in Portuguese as expected.
Regards,
John Ralls
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image.png
Type: image/png
Size: 169641 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20251016/1aeb5b37/attachment-0001.png>
More information about the gnucash-devel
mailing list