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 |
Status | new | Resolution | open | ||
Platform | x86_64, compiler build 47066 | OS | Linux | ||
Product Version | 3.3.1 | ||||
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: https://www.gnu.org/software/gettext/manual/html_node/Setting-the-POSIX-Locale.html#Setting-the-POSIX-Locale In summary:
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 | |||||
FPCOldBugId | |||||
FPCTarget | |||||
Attached Files |
|
related to | 0037937 | new | Lazarus | Translations use the wrong files |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-10-17 00:17 | Pedro Gimeno | New Issue | |
2020-10-17 12:43 | Bart Broersma | Relationship added | related to 0037937 |