Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

Learn More

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

  • 3 réponses
  • 1 a ce problème
  • 25 vues
  • Dernière réponse par 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!

Modifié le par wendyzhou

Toutes les réponses (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.