Merged #9 into master.
--
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#event-2029883059
@b4n I've decided to go simple and basically removed all the code in the
launcher script that guesses the right language settings. We can use what
`defaults read .GlobalPreferences AppleLocale` gives us directly and the result
will be better and less surprising than what the script does now.
--
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 Appl
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 Appl
b4n 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 AppleLo
AppleLanguages differs based on OS X version - newer versions
return values like cs_CZ, older OS X versions return only cs. This
leads to problems in scripts executed in VTE. It seems that
AppleLocale always returns the complete value so test it first when
setting LANG to mitigate this problem.
In