Closed
Bug 738767
Opened 13 years ago
Closed 13 years ago
Addons label in View Quota is not localizable and displayed in English
Categories
(Firefox :: Sync, defect)
Firefox
Sync
Tracking
()
VERIFIED
FIXED
mozilla14
People
(Reporter: flod, Assigned: flod)
Details
Attachments
(2 files, 1 obsolete file)
30.33 KB,
image/png
|
Details | |
682 bytes,
patch
|
rnewman
:
review+
mfinkle
:
approval-mozilla-central+
|
Details | Diff | Splinter Review |
Some users on our support forum made me notice this issue: there's an untranslated label in View Quota for "Addons".
In browser/chrome/browser/syncQuota.properties I don't see any string related to "Addons", I'm also browsing the code but I can't find anything useful.
Assignee | ||
Comment 1•13 years ago
|
||
Screenshot taken on Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120323 Firefox/14.0a1 (Italian Build).
I've also verified a French build of Firefox 11 and it's there as well, so definitely a non localizable string.
Summary: Addons label in View Quota is displayed in English and seems to be not localizable → Addons label in View Quota is not localizable and displayed in English
Comment 2•13 years ago
|
||
Also noteworthy: The Engines tikibox list uses 'Add-ons' and this string is 'Addons' which is inconsistent with the rest of the UI
Comment 3•13 years ago
|
||
also reproducing on aurora
Comment 4•13 years ago
|
||
It's there in the DTD:
<!ENTITY engine.addons.label "Add-ons">
<!ENTITY engine.addons.accesskey "A">
and it's used for prefs:
base/content/sync/setup.xul
412: <checkbox label="&engine.addons.label;"
components/preferences/sync.xul
132: <checkbox label="&engine.addons.label;"
The title should also be used for quota:
_collectionTitle: function _collectionTitle(engine) {
try {
return gSyncQuota.bundle.getString(
"collection." + engine.prefName + ".label");
} catch (ex) {
return engine.Name;
}
},
Because engine.prefName is right:
--
[14:34:26.905] Engines.get("addons").prefName
[14:34:26.908] "addons"
Assignee | ||
Comment 5•13 years ago
|
||
@richard
> It's there in the DTD
I'm not really good at reading code, but for what I understand it searches for "collection.addons.label", fails and use engine.prefName instead.
I'd expect a collection.addons.label=Add-ons here
http://mxr.mozilla.org/mozilla-central/source/browser/locales/en-US/chrome/browser/syncQuota.properties
Comment 6•13 years ago
|
||
Yeah, I ended up at the same spot as flod.
Assignee | ||
Comment 7•13 years ago
|
||
From a quick test the logic is exactly what I thought in comment 5, so adding a label "collection.addons.label" should be enough to fix this.
Assignee: nobody → francesco.lodolo
Attachment #613159 -
Flags: review?(mconnor)
Assignee | ||
Comment 8•13 years ago
|
||
Comment on attachment 613159 [details] [diff] [review]
Fix unlocalizable "addons" label
Review of attachment 613159 [details] [diff] [review]:
-----------------------------------------------------------------
Trying with a different reviewer.
It would be great if this patch could land before the next transition from central to aurora, since it should be very low risk.
Attachment #613159 -
Flags: review?(mconnor) → review?(mak77)
Comment 9•13 years ago
|
||
Comment on attachment 613159 [details] [diff] [review]
Fix unlocalizable "addons" label
Review of attachment 613159 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/locales/en-US/chrome/browser/syncQuota.properties
@@ +2,2 @@
> collection.bookmarks.label = Bookmarks
> collection.history.label = History
the patch looks correct, though the indentation is not (see next lines, the "=" are aligned, so you need some more spacing to align). r=me with that fixed.
Attachment #613159 -
Flags: review?(mak77) → review+
Comment 10•13 years ago
|
||
> the patch looks correct, though the indentation is not (see next lines, the
> "=" are aligned, so you need some more spacing to align). r=me with that
> fixed.
Concur. Also, you'll need to set approval-mozilla-central after uploading a corrected patch.
Mobile/release drivers: this is a trivial fix, very low risk, that improves some minor UX for non-en users.
Status: NEW → ASSIGNED
Assignee | ||
Comment 11•13 years ago
|
||
Attachment #613159 -
Attachment is obsolete: true
Attachment #616226 -
Flags: approval-mozilla-central?
Updated•13 years ago
|
Attachment #616226 -
Flags: review+
Updated•13 years ago
|
Attachment #616226 -
Flags: approval-mozilla-central? → approval-mozilla-central+
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 12•13 years ago
|
||
Keywords: checkin-needed
Target Milestone: --- → mozilla14
Comment 13•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 14•13 years ago
|
||
Verified on Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120420 Firefox/14.0a1
Thank you guys ;-)
Status: RESOLVED → VERIFIED
Updated•7 years ago
|
Component: Firefox Sync: UI → Sync
Product: Cloud Services → Firefox
You need to log in
before you can comment on or make changes to this bug.
Description
•