Commit Graph

8 Commits

Author SHA1 Message Date
b8c4e936eb Issue #4871: Plug-ins not translated.
Revert "app: also localize LC_TIME to GUI language."
This reverts commit a4e65ac836.

LC_TIME format apparently does not accept the broader format with just
the lang part, for instance "fr". The region is necessary, like "fr_FR".
In our supported languages, we were mostly using lang only except for a
few langs where we support regional variants.
This makes sense as time format may be quite different depending on
regions (dates are quite different in GB vs US, though that was actually
one of the cases where we were using accurate locale format).

And the main issue is that it was not only breaking time localization.
Normal string localization (LANGUAGE) got somehow broken as well by
broken LC_TIME.

Anyway for now let's just stick to whatever OS-set time format (even
though it may differ from GIMP Preferences-set language defaults).

(cherry picked from commit 39890a49eb)
2020-04-01 18:13:31 +02:00
1e76a008c5 app: also localize LC_TIME to GUI language.
When we set the GUI language through Preferences, also set LC_TIME, so
that locale-aware date functions also produce the right formats.

For instance, I use this in the About dialog to format the release date
of the last version of GIMP.

(cherry picked from commit a4e65ac836)
2020-02-07 00:14:10 +01:00
a88c0ffb93 Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:47:19 +02:00
ca2156ee35 app: language.c contains no translatable strings, remove "gimp-intl.h" 2016-10-21 18:44:39 +02:00
fe481275e2 Bug 675554 - fix overriden language environment variables on Windows.
If any of the locale environment variables used for UI language is set
(LANGUAGE, LC_ALL, LC_MESSAGES and LANG), do not let Windows' default UI
language override these.
Language set in GIMP preferences still have higher priority.
2013-10-16 00:33:17 +13:00
22a5c173ba app: don't map several windows language codes to one language string
So e.g. "english" is not always just "en", but "en_UK", "en_US" etc.
This should fix issues similar to bug #690535. Used
http://en.wikipedia.org/wiki/ISO_3166-1 as reference.
2013-01-07 01:32:58 +01:00
5b4f58b08a Addresses bug #690535 - fix brazilian portuguese on Windows 2012-12-21 18:12:39 -02:00
e4204e453a app: Move language specific code into language.[ch] 2011-09-06 23:12:36 +05:30