DefaultTranslator doesn't recognize locale on Mac OS X
Original Reporter info from Mantis: alexandergrau
-
Reporter name: Alexander Grau
Original Reporter info from Mantis: alexandergrau
- Reporter name: Alexander Grau
Description:
The DefaultTranslator doesn't recognize the Mac OS X preferred language (and thus the IDE always starts in English). On OS X, the preferred languages is set in the OS X Preferences by setting the order of all available (common) languages from top (preferred) to bottom (less preferred). For example, in the OS X preferences, you set "German, French, English, ... , Chinese, Japanese" if you want an OS X application to start in German if German is available, if German is not available start in French, if this not available in English and so on.
In current DefaultTranslator, "FindLocaleFileName" has no Mac specific part.
I have attached code to that can be used to implement that missing Mac-specific part. The key function is 'CFBundleCopyLocalizationsForPreferences' which returns the preferred locale (en, de, es, etc.) for a list of given locales the application supports. The returned locale is based on the Mac Preferences as described above.
Mantis conversion info:
- Mantis ID: 14108
- Version: 0.9.26.3 (SVN)
- Fixed in version: 0.9.27 (SVN)
- Fixed in revision: 20896 (#b16ed5da)
- Monitored by: » alexandergrau (Alexander Grau)