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

搜索 | 用户支持

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

详细了解

Set DEFAULT spellcheck language

  • 8 个回答
  • 42 人有此问题
  • 42 次查看
  • 最后回复者为 jgnoonan

more options

Running Ubuntu 13.04, firefox can't help but highlight every word red every time I type into a textbox, because the top entry in RIGHTCLICK>>LANGUAGES is "French". The others read, in order, "French (Belgium)", "English (United Kingdom)", "French (Luxembourg)", "English (United States)", "French (Swiss)", "French (France)", "English (South Africa)", "French (Canada)", "Persian", "Persian (Iran)", "English (Australia)". Now I don't deny that I may have gone on a splurge many years ago having discovered new languages' spellcheck. Whatever the case, I want to be rid of all but "English (United States)", "Persian (Iran)", and "French (France)", in that order, with "English (United States)" as the DEFAULT.

Unfortunately, the first option ("French") is the default, which means that every textbox I go to, regardless of what I chose in the previous textbox, the spellcheck language is reset to French. There are no firefox addons that would suggest a change in language, other than perhaps Ubuntu Firefox Modifications, Ubuntu Online Accounts, Unity Desktop Integration, or Unity Websites integration that I can fathom would change the default spellcheck language, nor any such plugins or languages. about:config shows spellchecker.dictionary as a user-set en_US, and EDIT>>PREFERENCES>>CONTENT>>LANGUAGES shows, "in order of preference", en-us, en, fa, and ar; though I don't think the latter is related to my problem, since webpages show in the correct language; it's just the spellcheck.

Running Ubuntu 13.04, firefox can't help but highlight every word red every time I type into a textbox, because the top entry in RIGHTCLICK>>LANGUAGES is "French". The others read, in order, "French (Belgium)", "English (United Kingdom)", "French (Luxembourg)", "English (United States)", "French (Swiss)", "French (France)", "English (South Africa)", "French (Canada)", "Persian", "Persian (Iran)", "English (Australia)". Now I don't deny that I may have gone on a splurge many years ago having discovered new languages' spellcheck. Whatever the case, I want to be rid of all but "English (United States)", "Persian (Iran)", and "French (France)", in that order, with "English (United States)" as the DEFAULT. Unfortunately, the first option ("French") is the default, which means that every textbox I go to, regardless of what I chose in the previous textbox, the spellcheck language is reset to French. There are no firefox addons that would suggest a change in language, other than perhaps Ubuntu Firefox Modifications, Ubuntu Online Accounts, Unity Desktop Integration, or Unity Websites integration that I can fathom would change the default spellcheck language, nor any such plugins or languages. about:config shows spellchecker.dictionary as a user-set en_US, and EDIT>>PREFERENCES>>CONTENT>>LANGUAGES shows, "in order of preference", en-us, en, fa, and ar; though I don't think the latter is related to my problem, since webpages show in the correct language; it's just the spellcheck.

被采纳的解决方案

hello helasraizam, it should be possible to remove certain installed spellchecker entried from about:addons under "dictionaries".

i don't know how to influence the order of remaining entries though & would have recommended setting spellchecker.dictionary manually as well. if this didn't help yet you also might want to clear the "site preferences" part of your history, since the preferred spell checker-language might be stored on a per-site basis: Delete browsing, search and download history on Firefox

定位到答案原位置 👍 1

所有回复 (8)

more options

选择的解决方案

hello helasraizam, it should be possible to remove certain installed spellchecker entried from about:addons under "dictionaries".

i don't know how to influence the order of remaining entries though & would have recommended setting spellchecker.dictionary manually as well. if this didn't help yet you also might want to clear the "site preferences" part of your history, since the preferred spell checker-language might be stored on a per-site basis: Delete browsing, search and download history on Firefox

more options

You can also try to check the /usr/share/hunspell/ directory.

more options

Thanks! This is filled with all of the languages I don't want. Can I just delete the .dic and .aff files?

File list:

  • fr_{LU,FR,CH,CA,BE}.{aff,dic} and fr.{dic,aff}
  • fa_IR.{aff,dic} and fa.{aff,dic}
  • en_{ZA,US,GB,AU}.{aff,dic} (curiously, no en.{dic/aff})
more options

If you do not need to use them in other programs then I assume that there is nothing against deleting them or see if you can uninstall them via the software management of your distribution.

more options

As it turns out, OpenOffice and Firefox both use the same spellcheckers, namely hunspell and myspell, of which I have the following packages:

  • myspell-en-{au,gb,za}, which who knows how those got checked in Synaptic,
  • myspell-fa and myspell-fr, which I added myself.
  • hunspell-en-us

After uninstalling myspell-en-{au,gb,za} in Synaptic, my English spellcheck is only us (presumably from hunspell), as I would like. I didn't uninstall FA or FR because I would like them for both OO and ff. Since I won't need it in ff or OO, I also removed fr_{CH,CA,BE}.{dic,aff} from /usr/share/hunspell.

Finally, it seems that I was mistaken about the spellchecker.dictionary option in about:config, and that this does set the default value, as sites are now showing "en_US" as the default spellchecker upon right click. So philipp was right!

Thank you both for solving my problem!

more options

While cor-el's reply showed me how to remove the extra languages, it turns out that the spellcheck preferences really do seem to be on a per-site basis. I skeptically followed your instructions for removing browser settings history and saw that spellchecker wasn't enabled, and when enabled no language was selected, but upon selection the same language was selected even as I reloaded the browser. I guess it makes sense to have it that way, so French sites are spellchecked in French, etc. Thanks a bunch!

more options

This default is likely set via a language attribute in the page code, see the page source of this page

<html class="no-js" lang="en-US" dir="ltr">
more options

I had the exact same problem with Firefox with it defaulting to French all the time. I reinstalled the US dictionary so that it would show up under addon:plugins/Dictionaries and that set it to be the default. This problem plagued me for WEEKS!!!