[Github-comments] [geany/geany-osx] Check AppleLocale before AppleLanguages when setting LANG (#9)

Jiří Techet notifications at xxxxx
Sun Jul 1 17:42:11 UTC 2018


techee commented on this pull request.



> @@ -66,41 +66,49 @@ I18NDIR="$bundle_data/locale"
 # Set the locale-related variables appropriately:
 unset LANG LC_MESSAGES LC_MONETARY LC_COLLATE
 
+# Start by attempting to find the Locale preference.
+APPLELOCALE=`defaults read .GlobalPreferences AppleLocale`
+if test -f "$I18NDIR/${APPLELOCALE:0:5}/LC_MESSAGES/$APP.mo"; then
+    if test -z $LANG; then 

Yeah, this is just copy-paste from the original code, can be dropped.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-osx/pull/9#discussion_r199355989
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180701/4f5872a6/attachment-0001.html>


More information about the Github-comments mailing list