Skip to content

Commit

Permalink
Better localization: no built-in item in SeaMonkey + remove "…"
Browse files Browse the repository at this point in the history
(#33)
  • Loading branch information
Infocatcher committed Apr 4, 2015
1 parent a022146 commit 499b878
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Session_Bookmarks/sessionBookmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ var _debug = false; // Show debug messages in error/browser console

function _localize(s, key) {
var strings = {
"Bookmark All Tabs": {
ru: "Добавить все вкладки в закладки"
},
bookmarkAllTabsKey: {
ru: "л"
},

"Update": {
ru: "Обновить"
},
Expand Down Expand Up @@ -563,8 +570,8 @@ this.bookmarks = {
<menuitem id="' + this.bmAllId + '"\
closemenu="single"\
oncommand="this.parentNode.bookmarks.bookmarkAllTabs(this.parentNode.triggerNode || document.popupNode);"\
label="' + this.getLabel("context_bookmarkAllTabs", "Bookmark All Tabs") + '"\
accesskey="' + this.getAccesskey("context_bookmarkAllTabs", "T") + '" />\
label="' + _localize("Bookmark All Tabs") + '"\
accesskey="' + _localize("T", "bookmarkAllTabsKey") + '" />\
\
<menuseparator id="' + this.updateSepId + '" />\
<menuitem id="' + this.updateId + '"\
Expand Down

0 comments on commit 499b878

Please sign in to comment.