Separate toolbar guidance strings for easier localization

This commit is contained in:
Dan Stillman 2014-04-28 22:49:51 -04:00
parent 4afb29e59f
commit 5da9b4bbb6
2 changed files with 12 additions and 7 deletions

View file

@ -117,11 +117,16 @@ var ZoteroOverlay = new function()
try {
isUpgrade = Zotero.Prefs.get("firstRunGuidanceShown.saveIcon");
} catch(e) {}
var property = "firstRunGuidance.toolbarButton."+(isUpgrade ? "upgrade" : "new");
var shortcut = Zotero.getString(Zotero.isMac ? "general.keys.cmdShift" : "general.keys.ctrlShift")+
Zotero.Prefs.get("keys.openZotero");
document.getElementById("zotero-toolbar-button-guidance").show(null, Zotero.getString(property, shortcut));
var shortcut = Zotero.getString(
Zotero.isMac ? "general.keys.cmdShift" : "general.keys.ctrlShift"
) + Zotero.Prefs.get("keys.openZotero");
var property = "firstRunGuidance.toolbarButton";
var msg = Zotero.getString(property, shortcut);
if (isUpgrade) {
msg = Zotero.getString(property + ".new") + " " + msg;
}
document.getElementById("zotero-toolbar-button-guidance").show(null, msg);
}, 0);
}
}

View file

@ -963,5 +963,5 @@ firstRunGuidance.saveIcon = Zotero has found a reference on this page. Click th
firstRunGuidance.authorMenu = Zotero lets you specify editors and translators, too. You can turn an author into an editor or translator by selecting from this menu.
firstRunGuidance.quickFormat = Type a title or author to search for a reference.\n\nAfter you've made your selection, click the bubble or press Ctrl-\u2193 to add page numbers, prefixes, or suffixes. You can also include a page number along with your search terms to add it directly.\n\nYou can edit citations directly in the word processor document.
firstRunGuidance.quickFormatMac = Type a title or author to search for a reference.\n\nAfter you've made your selection, click the bubble or press Cmd-\u2193 to add page numbers, prefixes, or suffixes. You can also include a page number along with your search terms to add it directly.\n\nYou can edit citations directly in the word processor document.
firstRunGuidance.toolbarButton.upgrade = The Zotero icon can now be found in the Firefox toolbar. Click here to open Zotero, or use the %S keyboard shortcut.
firstRunGuidance.toolbarButton.new = Click here to open Zotero, or use the %S keyboard shortcut.
firstRunGuidance.toolbarButton.new = The Zotero icon can now be found in the Firefox toolbar.
firstRunGuidance.toolbarButton = Click here to open Zotero, or use the %S keyboard shortcut.