Closed Bug 1766604 Opened 4 years ago Closed 3 years ago

Support selecting multiple dictionaries in composition settings

Categories

(Thunderbird :: Preferences, enhancement)

enhancement

Tracking

(thunderbird_esr102 fixed, thunderbird102+ affected)

RESOLVED FIXED
103 Branch
Tracking Status
thunderbird_esr102 --- fixed
thunderbird102 + affected

People

(Reporter: freaktechnik, Assigned: mkmelin)

References

Details

Attachments

(2 files)

Bug 1761221 added support in the composition UI to handle multiple active dictionaries. We currently only allow selecting a single dictionary in the composition settings, but we now have all the infrastructure to allow multiple dictionaries to be enabled by default.

The main blocker for this is the UI element, since we need some way to select multiple entries. Sadly the XUL menulist element only supports a single active selection.

The dictionary selector in the spell checker popup used the same element. There we replaced it with a list of all installed dictionaries with checkboxes.

Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED
Summary: Support selecting multiple dictionaries for composition → Support selecting multiple dictionaries in composition settings

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/6cc4a31f4ed3
Support selecting multiple dictionaries in composition preferences. r=freaktechnik

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch

Comment on attachment 9278778 [details]
Bug 1766604 - Support selecting multiple dictionaries in composition preferences. r=freaktechnik

[Approval Request Comment]
Regression caused by (bug #): part of new feature
User impact if declined: can't select more than one dictionary by default
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): we haven't noticed any problems on c-c. Not a huge risk, but there something unknown lurking.

Attachment #9278778 - Flags: approval-comm-beta?

Comment on attachment 9278778 [details]
Bug 1766604 - Support selecting multiple dictionaries in composition preferences. r=freaktechnik

[Triage Comment]
Approved for esr102. But I'm not sure how to interpret the following comment

(In reply to Magnus Melin [:mkmelin] from comment #3)

...
Risk to taking this patch (and alternatives if risky): ... there something unknown lurking.

Is this just speculation? Or is there something specific found during testing that we should be looking for?

Flags: needinfo?(mkmelin+mozilla)
Attachment #9278778 - Flags: approval-comm-beta? → approval-comm-esr102+

Nothing in particular I know about. Just an area that seems somewhat brittle + it's a new feature. It would only affect spell checking related things though.

Flags: needinfo?(mkmelin+mozilla)

It does seem like a bug was found that essentially means selecting multiple dictionaries doesn't work correctly. See Bug 1775376 (also applies to selecting multiple dictionaries in preferences from what I can see)

Pushed by mkmelin@iki.fi: https://hg.mozilla.org/comm-central/rev/d821feda2cc1 follow-up - backout of accesskey removal. rs=backout

You should push this change to ESR 102 since without it, the structure of the string doesn't match and the translation isn't used. The localisations have the access key, examples:
https://searchfox.org/l10n/rev/df0c315d14df2489bb47a696963390fb8781af72/de/mail/messenger/preferences/preferences.ftl#553
https://searchfox.org/l10n/rev/df0c315d14df2489bb47a696963390fb8781af72/fr/mail/messenger/preferences/preferences.ftl#552

Flags: needinfo?(rob)
Flags: needinfo?(mkmelin+mozilla)

That said, some locales don't have it:
https://searchfox.org/l10n/rev/df0c315d14df2489bb47a696963390fb8781af72/ja-JP-mac/mail/messenger/preferences/preferences.ftl#424
So the only way to fix this is to create a new string name :-(

On second thought: Maybe just adding it again will eventually cause the locales that don't have it, like Japanese, to add it again.

Apparently only pl and Japanese do not have the accesskey.

(In reply to b1 from comment #9)

You should push this change to ESR 102 since without it, the structure of the string doesn't match and the translation isn't used.

If this is a problem for the scripts that seems like something we should see if it can be fixed.
For Fluent itself, I don't think that should be a problem?

Flags: needinfo?(mkmelin+mozilla)

language-popup-label is missing from the es-AR localization file. I assume it's the merging script that nuked it.

language-popup-label is not there if you download the build2 zip file and take a look at the es-AR preferences.ftl. There's a blank hole of a few lines where it should be.

Exactly. The XPI and the repackaged installer are missing the string since the repacking process rejects it due to the different structure. All will be fine if you do the uplift we suggested (apart from ja and pl).

Flags: needinfo?(rob)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: