Closed Bug 349882 Opened 19 years ago Closed 19 years ago

No way to download dictionaries if no dictionaries are installed

Categories

(Firefox :: General, defect)

2.0 Branch
x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 2

People

(Reporter: brettw, Assigned: brettw)

Details

(Keywords: fixed1.8.1, relnote)

Attachments

(1 file, 1 obsolete file)

The only way to download dictionaries currently (without knowing the link) is through the context menu in text fields. When there is no dictionary installed, there is no spellcheck menu so there is no link to download dictionaries. It kind of sucks to display the spellcheck menu on every textarea when there is no way we can spellcheck. I suggest having a button in the pref panel next to the spellcheck option that brings up the same thing that the context menu does as well. But I'm not sure this would work because it needs to bring up a web page, but we can't because the pref panel is open. Beltzner, any ideas?
Flags: blocking-firefox2?
Target Milestone: --- → Firefox 2 beta2
I think a good solution would be: If a textarea would otherwise be spellcheckable but we have no dictionaries installed, then show the normal spellcheck menus on the context menu, but with all options removed except the ones to download dictionaries. In other words, eliminate the useless options in the menu (like enabling spellchecking), but not everything. I think whether we also provide somewhere to "get dictionaries" besides the context menu is a separate question, and one equally applicable to en-US. Maybe we want somewhere in add-ons or prefs to get dictionaries regardless of what's installed. That seems like a worthwhile separate bug.
(In reply to comment #0) > I suggest having a button in the pref panel next to > the spellcheck option that brings up the same thing that the context menu does > as well. I think that's the best place for it, yes. At least, that's where I was looking for it (when beltzner told me to look for dictionaries). Things which are related (such as the spellchecker option and dictionaries) should be grouped together.
--> blocking Firefox 2, pretty sure we can do this without string changes
Flags: blocking-firefox2? → blocking-firefox2+
Keywords: relnote
Target Milestone: Firefox 2 beta2 → Firefox 2
Attachment #235117 - Flags: review?(bugs)
Comment on attachment 235117 [details] [diff] [review] Patch (apply in browser/base/content) >@@ -4741,16 +4753,17 @@ nsContextMenu.prototype = { > this.onKeywordField = false; > this.onImage = false; > this.onLoadedImage = false; > this.onMetaDataItem = false; > this.onMathML = false; > this.inFrame = false; > this.hasBGImage = false; > this.isDesignMode = true; >+ this.possibleSpellChecking - true; - true; ? typo.. otherwise looks ok. Fix the typo, retest and attach a new patch.
Attached patch Fixed patchSplinter Review
This time I tested it on designmode also.
Attachment #235117 - Attachment is obsolete: true
Attachment #235119 - Flags: review?(bugs)
Attachment #235117 - Flags: review?(bugs)
If I'm reading this patch right, and I like to think that I am, it's suggesting that we simply add a "Add Dictionaries..." item to the bottom of the shortcut menu for text areas when no dictionaries are available. Which is the right thing to do. Brett, after a quick bake and test cycle on trunk, please nominate this for 181. Thanks.
Flags: blocking-firefox2+ → blocking-firefox2?
Target Milestone: Firefox 2 → Firefox 2 beta2
(ugh, ze clobber due to reload-not-picking-up-the-changes-screwiness)
Flags: blocking-firefox2? → blocking-firefox2+
Target Milestone: Firefox 2 beta2 → Firefox 2
Beltzner: your explanation is correct. Fixed on trunk, leaving open for branch.
Note that I've also filed bug 349945 to try and mitigate the god-awful UE of not having dictionaries shipped with some locales (see http://wiki.mozilla.org/L10n:Dictionaries for the current licensing status)
Brett, if you close this bug as FIXED once this is on branch, it's probably worth filing a followup bug for comment 0.
Attachment #235119 - Flags: approval1.8.1?
(In reply to comment #12) > Brett, if you close this bug as FIXED once this is on branch, it's probably > worth filing a followup bug for comment 0. I filed bug 350026.
Comment on attachment 235119 [details] [diff] [review] Fixed patch a=beltzner on behalf of drivers for the MOZILLA_1_8_BRANCH
Attachment #235119 - Flags: approval1.8.1? → approval1.8.1+
Fixed on 1.8.1 branch.
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: