Mozilla Support में खोजें

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to verify which language of the Firefox (not the content language) is in a Mac?

  • 3 प्रत्युत्तर
  • 1 यह समस्या है
  • 25 views
  • के द्वारा अंतिम प्रतियुतर wendyzhou

more options

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!

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)

more options

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

more options

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)
more options

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.