View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0037936||FPC||FCL||public||2020-10-17 00:17||2020-10-17 12:43|
|Reporter||Pedro Gimeno||Assigned To|
|Priority||normal||Severity||minor||Reproducibility||have not tried|
|Platform||x86_64, compiler build 47066||OS||Linux|
|Summary||0037936: gettext unit looks for the wrong files|
|Description||If I have my LANG variable set to es_ES.UTF-8, gettext looks for projectname.es_ES.UTF-8.po, using projectname.es.po as a fallback. It should not use the encoding part of the language.|
If it's set to es, it looks for projectname.es.po and does not use any fallback, regardless of the contents of the LANGUAGE environment variable.
If LANG is set to C, gettext looks for projectname.C.po, and uses that for translation if it exists.
That behaviour is not the expected one for programs that use the standard i18n/l10n environment variables. This section, and the three pages it contains, documents how the search should proceed:
Use the resulting string only up to and not including the first dot (or the whole string if there's no dot).
I'd suggest to do this in addition:
|Tags||No tags attached.|
|Fixed in Revision|