Search 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

Èròjà atẹ̀lélànà yii ni a ti fi pamọ́ fọ́jọ́ pípẹ́. Jọ̀wọ́ béèrè ìbéèrè titun bí o bá nílò ìrànwọ́.

How to change the language settings of firefox using JavaScript

  • 4 àwọn èsì
  • 133 ní àwọn ìṣòro yìí
  • 79 views
  • Èsì tí ó kẹ́hìn lọ́wọ́ cor-el

more options

My question is: How to change the language settings of the firefox using JavaScript:

I want set the value of the intl.accept_languages to fr using JavaScript.

How can i do it?

EDIT: The mail reason, i want to acheive this is to be able to run Selenium test cases for different languages with out changing it manually rather progrmmetically

My question is: How to change the language settings of the firefox using JavaScript: I want set the value of the '''intl.accept_languages''' to '''fr''' using JavaScript. How can i do it? EDIT: The mail reason, i want to acheive this is to be able to run '''Selenium''' test cases for different languages with out changing it manually rather progrmmetically

Ti ṣàtúnṣe nípa deter_dangler

Ọ̀nà àbáyọ tí a yàn

You will have to close and change the pref via user.js or prefs.js before restarting Firefox to do the next test.

See:

Ka ìdáhùn ni ìṣètò kíkà 👍 0

All Replies (4)

more options

From a webpage?

more options

You do not have access to prefs via JavaScript on websites or via a bookmarklet. Only extensions are able to change prefs.

See http://developer.mozilla.org/en/Code_snippets/Preferences


Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.

  1. Shockwave Flash 10.0 r42
  2. Java Plug-in 1.5.0_15 for Netscape Navigator (DLL Helper)

Update the Flash plugin to the latest version.

Update the Java plugin to the latest version.

more options

I am using selenium 1.0 to run automated tests..My requirement is i want to change the language settings of the firefox programmetically..so that each run uses different language.

more options

Ọ̀nà àbáyọ Tí a Yàn

You will have to close and change the pref via user.js or prefs.js before restarting Firefox to do the next test.

See: