In bug 1333184 we're introducing OSPreferences API. In this bug we'll work on using more of the Cocoa API to handle more of the information from the OS.
Once you have an OSPreferences API for the country code, you can remove GetSelectedCityInfo and MacHelpers.h/.mm.
Severity: normal → enhancement
OS: Unspecified → Mac OS X
Priority: -- → P4
I'd like to try this if I had a bit of guidance on what was needed. I'm not familiar with Cocoa (I have developed iOS with Cocoa Touch), but I'm willing to read around and figure it out.
Hi Martin - great to hear! I'll be happy to mentor you to the best of my ability. The current code lives in http://searchfox.org/mozilla-central/source/intl/locale/mac/OSPreferences_mac.cpp What I'd like to see is: - check if http://searchfox.org/mozilla-central/rev/b425854d9bbd49d5caf9baef3686e49ec91c17ec/intl/locale/mac/OSPreferences_mac.cpp#19 are the correct API calls to get the currently selected user locale - check if there's a way to hook us into any event system from MacOS to react to language/locale change in the OS and fire a "systemlocaleschange" event in Gecko. - go through Mac HiG for any other alignments we should do with regards to system locale, and regional preferences. Thanks!
You need to log in before you can comment on or make changes to this bug.