Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Cannot set default language for spell-checking

  • 6 个回答
  • 3 人有此问题
  • 8 次查看
  • 最后回复者为 cor-el

more options

I currently have three dictionaries installed on Firefox (English (US), Hungarian and French). I use all three languages, so I do not want to delete any of them. However, I use English most of the time, so i would like this to be the default language. However, whenever I start typing, the spellchecker reverts to French, and i have to reset this manually every time I want to use English. i can't work out why "French" has become the default (it was the last of the dictionaries I installed). Does anybody know how I can set English to be the default?

I currently have three dictionaries installed on Firefox (English (US), Hungarian and French). I use all three languages, so I do not want to delete any of them. However, I use English most of the time, so i would like this to be the default language. However, whenever I start typing, the spellchecker reverts to French, and i have to reset this manually every time I want to use English. i can't work out why "French" has become the default (it was the last of the dictionaries I installed). Does anybody know how I can set English to be the default?

所有回复 (6)

more options
  1. Right-click in the text box
  2. Select Languages, then select a language for spell checker
more options

Thanks for the reply.

However I know I can do this (this is how I change between dictionaries all the time). But, as I said in my original post, the default dictionary (i.e. the one which is selected if I do not actively select a dictionary by right-clicking and selecting) is always French. I would like the default to be English. Do you know or does anyone else know how to set this?

more options

What is the value of the spellchecker.dictionary pref on the about:config page?

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.

more options

Hi Cor-el

Well, I think you've found where the problem lies - thank you for that. This setting is set to "fr-reform" which explains why the default spellchecker language is always "French (reform)". Now all I need to do is find out the exact string to which I need to set in this parameter that corresponds to English (United States). Do you know what the value should be, or even better, where I can find the correspondence between the labels displayed in the "Languages" box which appears when I right-click in the window, and the strings values which can be set in the config file?

Regards John

more options

Well, I found the value I need to set: "en-US". However, for some reason even after I set this value, the next time I start Firefox, the spellchecker dictionary somehow reverts to "fr-reform" even if I do not select anything, and so I have to change it back to en-US manually each time. Obviously "fr-reform" must be set as a default somewhere else (and not in about:config).

Is there any way of editing this default value?

more options

You can consider to use the user.js file in the profile folder to set the spellchecker.dictionary pref to a predefined value.

user_pref("spellchecker.dictionary", "en-US");

The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.