We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Why does spellcheck language setting not match prefs.js?

  • 5 回覆
  • 5 有這個問題
  • 5 次檢視
  • 最近回覆由 Paul

more options

I have only one profile in ~/.mozilla/firefox (the default profile), and in it prefs.js contains

user_pref("spellchecker.dictionary", "en_US");

(which is correct). Despite that, about:config tells me the language is en_AU, and that's what is used by the spell checker. I can change it to en_US from the context menu in a text field, and the change sticks until I close FF, but next time I start FF we're back to Australian despite the setting in prefs.js. Syncing before or after changing the setting doesn't make any difference. Running in safe mode doesn't make any difference.

I have only one profile in ~/.mozilla/firefox (the default profile), and in it prefs.js contains user_pref("spellchecker.dictionary", "en_US"); (which is correct). Despite that, about:config tells me the language is en_AU, and that's what is used by the spell checker. I can change it to en_US from the context menu in a text field, and the change sticks until I close FF, but next time I start FF we're back to Australian despite the setting in prefs.js. Syncing before or after changing the setting doesn't make any difference. Running in safe mode doesn't make any difference.

被選擇的解決方法

The value of spellchecker.dictionary should be "en-US" for the en-US dictionary and not have an underscore.

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

Do you have a user.js file in the profile folder that might override the last saved setting in prefs.js?

從原來的回覆中察看解決方案 👍 0

所有回覆 (5)

more options

選擇的解決方法

The value of spellchecker.dictionary should be "en-US" for the en-US dictionary and not have an underscore.

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

Do you have a user.js file in the profile folder that might override the last saved setting in prefs.js?

more options

Thanks for the reply. I changed the prefs.js file manually to "en-US" (with FF closed) and started FF. It's checking spelling in Australian. I should point out that FF uses an underscore when it rewrites that line in prefs.js.

I do have a user.js file, but it contains only two lines relating to Picassa, and in particular nothing about the spelling language.

more options

Maybe that is caused by the way the Ubuntu has branded that version.

You can try Firefox from the official Mozilla servers to see if it still happens.


Start Firefox in Diagnose Firefox issues using Troubleshoot Mode to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).

more options

Thanks, but I'm already using an unbranded version of FF.

I've got a workaround: I turned off "preferences" in the Sync settings. Best guess is that FF upgrades revert to en_AU, and that gets "stuck" in the Sync memory. I tried changing the setting to en_US and then forcing a sync, which didn't work -- not sure if the sync failed or what. After I've got every copy of FF back to en_US, maybe I'll try syncing preferences again.

If it's really upgrades that are switching me back to Australian, I would call that a bug. Upgrades should respect whatever preferences the user has set in his/her profile.

I appreciate the suggestions.

Paul

more options

That workaround turned out not to work, although I'm not sure why. I turned off preference syncing, adjusted the language to en_US, and restarted FF. The language setting survived the restart. Opened FF this morning, though, and it had reset to Australian. <sigh>

So I deleted the Australian English dictionary from Hunspell (sudo rm /usr/share/hunspell/en_AU.*), and hopefully FF will now wake up using the US dictionary. I discovered, though, that something had added symlinks in the folder to make en-AU.* aliases for en_AU.* files. I wonder if that had anything to do with Firefox grabbing the Australian dictionary at startup?

由 Paul 於 修改