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

2018-12-17 Thread Jiří Techet
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

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

2018-07-05 Thread Jiří Techet
@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. --

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

2018-07-01 Thread Jiří Techet
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

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

2018-07-01 Thread Jiří Techet
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

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

2018-07-01 Thread Colomban Wendling
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

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

2018-07-01 Thread Jiří Techet
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