зеркало из https://github.com/mozilla/gecko-dev.git
bug 914927 change string for enable/disable social menuitem, r=felipc
This commit is contained in:
Родитель
6e248b9692
Коммит
db722956df
|
@ -216,13 +216,20 @@ SocialUI = {
|
|||
// enabled == true means we at least have a defaultProvider
|
||||
let provider = Social.provider || Social.defaultProvider;
|
||||
// We only need to update the command itself - all our menu items use it.
|
||||
let label = gNavigatorBundle.getFormattedString(Social.provider ?
|
||||
"social.turnOff.label" :
|
||||
"social.turnOn.label",
|
||||
[provider.name]);
|
||||
let accesskey = gNavigatorBundle.getString(Social.provider ?
|
||||
"social.turnOff.accesskey" :
|
||||
"social.turnOn.accesskey");
|
||||
let label;
|
||||
if (Social.providers.length == 1) {
|
||||
label = gNavigatorBundle.getFormattedString(Social.provider
|
||||
? "social.turnOff.label"
|
||||
: "social.turnOn.label",
|
||||
[provider.name]);
|
||||
} else {
|
||||
label = gNavigatorBundle.getString(Social.provider
|
||||
? "social.turnOffAll.label"
|
||||
: "social.turnOnAll.label");
|
||||
}
|
||||
let accesskey = gNavigatorBundle.getString(Social.provider
|
||||
? "social.turnOff.accesskey"
|
||||
: "social.turnOn.accesskey");
|
||||
toggleCommand.setAttribute("label", label);
|
||||
toggleCommand.setAttribute("accesskey", accesskey);
|
||||
}
|
||||
|
|
|
@ -429,6 +429,8 @@ social.turnOff.accesskey=T
|
|||
# LOCALIZATION NOTE (social.turnOn.label): %S is the name of the social provider
|
||||
social.turnOn.label=Turn on %S
|
||||
social.turnOn.accesskey=T
|
||||
social.turnOffAll.label=Turn off all Services
|
||||
social.turnOnAll.label=Turn on all Services
|
||||
|
||||
# LOCALIZATION NOTE (social.markpageMenu.label): %S is the name of the social provider
|
||||
social.markpageMenu.label=Save Page to %S
|
||||
|
|
Загрузка…
Ссылка в новой задаче