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)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla14

People

(Reporter: flod, Assigned: flod)

Details

Attachments

(2 files, 1 obsolete file)

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.
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
Also noteworthy: The Engines tikibox list uses 'Add-ons' and this string is 'Addons' which is inconsistent with the rest of the UI
also reproducing on aurora
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"
@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
Yeah, I ended up at the same spot as flod.
Attached patch Fix unlocalizable "addons" label (obsolete) — Splinter Review
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)
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 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+
> 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
Attachment #613159 - Attachment is obsolete: true
Attachment #616226 - Flags: approval-mozilla-central?
Attachment #616226 - Flags: review+
Attachment #616226 - Flags: approval-mozilla-central? → approval-mozilla-central+
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Verified on Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120420 Firefox/14.0a1 Thank you guys ;-)
Status: RESOLVED → VERIFIED
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.

Attachment

General

Created:
Updated:
Size: