Bug 762230 - Add-ons not listed when resetting Sync; r=mconnor

This commit is contained in:
Ally Naaktgeboren 2012-08-30 14:57:15 -07:00
parent 066654cdad
commit 54d001c809
3 changed files with 21 additions and 0 deletions

View File

@ -929,6 +929,23 @@ var gSyncSetup = {
document.getElementById("prefsWipe").hidden = true;
}
if (Weave.Engines.get("addons").enabled) {
let ids = Weave.Engines.get("addons")._store.getAllIDs();
let blessedcount = 0;
for each (let i in ids) {
if (i) {
blessedcount++;
}
}
// bug 600141 does not apply, as this does not have to support existing strings
document.getElementById("addonCount").value =
PluralForm.get(blessedcount,
this._stringBundle.GetStringFromName("addonsCount.label"))
.replace("#1", blessedcount);
} else {
document.getElementById("addonCount").hidden = true;
}
this._case1Setup = true;
break;
case 2:

View File

@ -461,6 +461,7 @@
<label class="data indent" id="bookmarkCount"/>
<label class="data indent" id="historyCount"/>
<label class="data indent" id="passwordCount"/>
<label class="data indent" id="addonCount"/>
<label class="data indent" id="prefsWipe"
value="&engine.prefs.label;"/>
</vbox>

View File

@ -32,6 +32,9 @@ historyDaysCount.label = #1 day of history;#1 days of history
# http://developer.mozilla.org/en/docs/Localization_and_Plurals
# #1 is the number of passwords (was %S for a short while, use #1 instead, even if both work)
passwordsCount.label = #1 password;#1 passwords
# LOCALIZATION NOTE (addonsCount.label):
# #1 is the number of add-ons, see the link above for forms
addonsCount.label = #1 addon;#1 addons
save.recoverykey.title = Save Recovery Key
save.recoverykey.defaultfilename = Firefox Recovery Key.html