Closed
Bug 1477641
Opened 7 years ago
Closed 7 years ago
Add-ons manager search field says 'search on addons.mozilla.org'
Categories
(Thunderbird :: Add-Ons: General, defect)
Tracking
(thunderbird_esr60 fixed, thunderbird62 wontfix, thunderbird63 fixed)
RESOLVED
FIXED
Thunderbird 63.0
People
(Reporter: pascalc, Assigned: jorgk-bmo)
Details
Attachments
(3 files)
9.89 KB,
image/png
|
Details | |
1.20 KB,
patch
|
Paenglab
:
review+
aceman
:
review+
jorgk-bmo
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
1.26 KB,
patch
|
Details | Diff | Splinter Review |
Thunderbird 60 preview
Built from https://hg.mozilla.org/releases/comm-esr60/rev/abae8941234801d8aa5b6cfd8cc49ef62bc48e62
The addons manager search placeholder says:
"Search on addons.mozilla.org"
instead of
"Search on addons.thunderbird.net"
https://hg.mozilla.org/l10n/gecko-strings/file/default/toolkit/chrome/mozapps/extensions/extensions.dtd#l6
The string should either be updated in Toolkit with a variable for the site, or the string should be updated in Thunderbird files only.
See screenshot
Updated•7 years ago
|
Component: Theme → General
Assignee | ||
Comment 2•7 years ago
|
||
The string comes from here:
mozilla/toolkit/locales/en-US/chrome/mozapps/extensions/extensions.dtd
6 <!ENTITY search.placeholder2 "Search on addons.mozilla.org">
And is used here:
mozilla/toolkit/mozapps/extensions/content/extensions.xul
255 placeholder="&search.placeholder2;" maxlength="100"/>
That's all M-C code. We have however code that tweaks that page, adding forward/backward arrows and modifying the context menu, so we can just substitute the string there.
"addons.mozilla.org" as such isn't localised anywhere:
https://dxr.mozilla.org/l10n-central/search?q=search.placeholder2&redirect=false
so straight string substitution will do the trick (I hope).
Assignee | ||
Comment 3•7 years ago
|
||
This JS code is very simple, you can review it ;-)
You can also check all the arguments in comment #2. This will work on all localised strings :-)
Attachment #8995612 -
Flags: review?(richard.marti)
Assignee | ||
Comment 4•7 years ago
|
||
Same code applies to ESR 60.
Assignee | ||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Comment on attachment 8995612 [details] [diff] [review]
1477641-amo-to-atn.patch
This works, thanks.
Attachment #8995612 -
Flags: review?(richard.marti) → review+
Comment on attachment 8995612 [details] [diff] [review]
1477641-amo-to-atn.patch
Review of attachment 8995612 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks, this works for me.
Assuming the box exists in all cases, whatever the Addon manager "tab" you have displayed.
Attachment #8995612 -
Flags: review+
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/d0fcc2b1f8a8
substitute addons.mozilla.org with addons.thunderbird.net on add-ons page. r=Paenglab,aceman
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•7 years ago
|
Target Milestone: --- → Thunderbird 63.0
Assignee | ||
Updated•7 years ago
|
Attachment #8995612 -
Flags: approval-comm-esr60+
Attachment #8995612 -
Flags: approval-comm-beta+
Assignee | ||
Comment 9•7 years ago
|
||
(In reply to :aceman from comment #7)
> Assuming the box exists in all cases, whatever the Addon manager "tab" you
> have displayed.
Yes, I could have protected it with an |if (textbox) {|, but then it will silently fail when M-C changes the layout of the page. Perhaps better to see that malfunction, no?
Assignee | ||
Comment 10•7 years ago
|
||
status-thunderbird62:
--- → affected
status-thunderbird63:
--- → fixed
status-thunderbird_esr60:
--- → fixed
Updated•7 years ago
|
Summary: Addons manager search field says 'search on addons.mozilla.org' → Add-ons manager search field says 'search on addons.mozilla.org'
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Updated•7 years ago
|
Attachment #8995612 -
Flags: approval-comm-beta+
Updated•7 years ago
|
Component: General → Add-Ons: General
You need to log in
before you can comment on or make changes to this bug.
Description
•