зеркало из https://github.com/mozilla/gecko-dev.git
Bug 760794 - tabView2.title and tabview2.moveToUnnamedGroup.label need l10n comments (browser.properties) r=dao
This commit is contained in:
Родитель
2d563c0fe7
Коммит
86b67052e6
|
@ -24,7 +24,7 @@ let TabView = {
|
||||||
delete this.windowTitle;
|
delete this.windowTitle;
|
||||||
let brandBundle = document.getElementById("bundle_brand");
|
let brandBundle = document.getElementById("bundle_brand");
|
||||||
let brandShortName = brandBundle.getString("brandShortName");
|
let brandShortName = brandBundle.getString("brandShortName");
|
||||||
let title = gNavigatorBundle.getFormattedString("tabView2.title", [brandShortName]);
|
let title = gNavigatorBundle.getFormattedString("tabview.title", [brandShortName]);
|
||||||
return this.windowTitle = title;
|
return this.windowTitle = title;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -310,11 +310,13 @@ let TabView = {
|
||||||
|
|
||||||
if (!title.trim()) {
|
if (!title.trim()) {
|
||||||
let topChildLabel = groupItem.getTopChild().tab.label;
|
let topChildLabel = groupItem.getTopChild().tab.label;
|
||||||
|
let childNum = groupItem.getChildren().length;
|
||||||
|
|
||||||
if (groupItem.getChildren().length > 1) {
|
if (childNum > 1) {
|
||||||
|
let num = childNum - 1;
|
||||||
title =
|
title =
|
||||||
gNavigatorBundle.getFormattedString("tabview2.moveToUnnamedGroup.label",
|
gNavigatorBundle.getString("tabview.moveToUnnamedGroup.label");
|
||||||
[topChildLabel, groupItem.getChildren().length - 1]);
|
title = PluralForm.get(num, title).replace("#1", topChildLabel).replace("#2", num);
|
||||||
} else {
|
} else {
|
||||||
title = topChildLabel;
|
title = topChildLabel;
|
||||||
}
|
}
|
||||||
|
|
|
@ -305,8 +305,13 @@ ctrlTab.showAll.label=;Show all #1 tabs
|
||||||
addKeywordTitleAutoFill=Search %S
|
addKeywordTitleAutoFill=Search %S
|
||||||
|
|
||||||
# TabView
|
# TabView
|
||||||
tabView2.title=%S - Group Your Tabs
|
# LOCALIZATION NOTE (tabview.title): %S is the application name.
|
||||||
tabview2.moveToUnnamedGroup.label=%S and %S more
|
tabview.title=%S - Group Your Tabs
|
||||||
|
# LOCALIZATION NOTE (tabview.moveToUnnamedGroup.label): Semi-colon list of plural forms.
|
||||||
|
# See: http://developer.mozilla.org/en/docs/Localization_and_Plurals
|
||||||
|
# #1 is the page title of the first tab in the unnamed group,
|
||||||
|
# #2 is the number of remaining tabs.
|
||||||
|
tabview.moveToUnnamedGroup.label=#1 and 1 more;#1 and #2 more
|
||||||
|
|
||||||
extensions.{972ce4c6-7e08-4474-a285-3208198ce6fd}.name=Default
|
extensions.{972ce4c6-7e08-4474-a285-3208198ce6fd}.name=Default
|
||||||
extensions.{972ce4c6-7e08-4474-a285-3208198ce6fd}.description=The default theme.
|
extensions.{972ce4c6-7e08-4474-a285-3208198ce6fd}.description=The default theme.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче