How to verify which language of the Firefox (not the content language) is in a Mac?
I want to write a script to check the Firefox. How can I verify what language of the Firefox that I installed in a Mac? (I am not talking about the view content language like this: Firefox > Preferences > Content > Languages). Thanks!
wendyzhou द्वारा
All Replies (3)
Currently in a Mac there is no way to indicate what language was installed without opening Firefox. Writing a script to do this is beyond the scope of this forum. Please seek help in stackoverflow.com
In order to detect this, this information is listed in these about:config entries: intl.accept_languages
That data is in one of the omni.ja archives and should also be the value of the general.useragent.locale pref.
- resource://gre/update.locale (/omni.ja!/update.locale)
- resource:///defaults/preferences/firefox.js (/browser/omni.ja!/defaults/preferences/firefox.js)
- resource:///defaults/preferences/firefox-l10n.js (/browser/omni.ja!/defaults/preferences/firefox-l10n.js)
When will the file omni.jar or omni.ja get updated beside apply another version of the Firefox? Installing the add-ons dictionary/language pack or switch to another locale should not impact the file omni.jar/ja, right? Because I am thinking to use the data inside of omni.jar/ja to detect the installed language of Firefox.