mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 762230 - Add-ons not listed when resetting Sync; r=mconnor
This commit is contained in:
parent
066654cdad
commit
54d001c809
@ -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:
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user