[geany/geany-osx] f05289: Keep full LANG and append ".UTF-8"
Jiří Techet
git-noreply at xxxxx
Sun Jan 28 11:24:50 UTC 2018
Branch: refs/heads/lang_test
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Sun, 28 Jan 2018 11:24:50 UTC
Commit: f05289da810f6c3deec09451fcbdeec59e97b792
https://github.com/geany/geany-osx/commit/f05289da810f6c3deec09451fcbdeec59e97b792
Log Message:
-----------
Keep full LANG and append ".UTF-8"
Modified Paths:
--------------
launcher-gtk2.sh
Modified: launcher-gtk2.sh
6 lines changed, 5 insertions(+), 1 deletions(-)
===================================================================
@@ -87,7 +87,7 @@ if test "$APPLELANGUAGES"; then
fi
#OK, now test for just the first two letters:
if test -f "$I18NDIR/${L:0:2}/LC_MESSAGES/$APP.mo"; then
- export LANG=${L:0:2}
+ export LANG=$L
break
fi
#Same thing, but checking for any english variant.
@@ -99,6 +99,10 @@ if test "$APPLELANGUAGES"; then
fi
unset APPLELANGUAGES L
+if test -n ${LANG}; then
+ export LANG="${LANG}.UTF-8"
+fi
+
# If we didn't get a language from the language list, try the Collation preference, in case it's the only setting that exists.
APPLECOLLATION=`defaults read .GlobalPreferences AppleCollationOrder`
if test -z ${LANG} -a -n $APPLECOLLATION; then
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list