Bug 760794 - tabView2.title and tabview2.moveToUnnamedGroup.label need l10n comments (browser.properties) r=dao

This commit is contained in:
Raymond Lee 2012-06-06 16:49:38 +08:00
Родитель 32fa803f6a
Коммит 8dfb9d9ba8
2 изменённых файлов: 13 добавлений и 6 удалений

Просмотреть файл

@ -24,7 +24,7 @@ let TabView = {
delete this.windowTitle;
let brandBundle = document.getElementById("bundle_brand");
let brandShortName = brandBundle.getString("brandShortName");
let title = gNavigatorBundle.getFormattedString("tabView2.title", [brandShortName]);
let title = gNavigatorBundle.getFormattedString("tabview.title", [brandShortName]);
return this.windowTitle = title;
},
@ -310,11 +310,13 @@ let TabView = {
if (!title.trim()) {
let topChildLabel = groupItem.getTopChild().tab.label;
let childNum = groupItem.getChildren().length;
if (groupItem.getChildren().length > 1) {
if (childNum > 1) {
let num = childNum - 1;
title =
gNavigatorBundle.getFormattedString("tabview2.moveToUnnamedGroup.label",
[topChildLabel, groupItem.getChildren().length - 1]);
gNavigatorBundle.getString("tabview.moveToUnnamedGroup.label");
title = PluralForm.get(num, title).replace("#1", topChildLabel).replace("#2", num);
} else {
title = topChildLabel;
}

Просмотреть файл

@ -305,8 +305,13 @@ ctrlTab.showAll.label=;Show all #1 tabs
addKeywordTitleAutoFill=Search %S
# TabView
tabView2.title=%S - Group Your Tabs
tabview2.moveToUnnamedGroup.label=%S and %S more
# LOCALIZATION NOTE (tabview.title): %S is the application name.
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}.description=The default theme.