Skip to content

Commit

Permalink
fix to i18n error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
cqx931 committed Jun 21, 2017
1 parent 1ba0909 commit ea7fce7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/_locales/en/adnauseam.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@
"message": "Let's go!",
"description": "English: Firstrun.html -> Let's go!"
},
"goToAdNauseamWebsite": {
"message": "Go to AdNauseam website",
"description": "English: Menu icon title -> Go to AdNauseam website"
},
"adnPausedOnPage": {
"message": "AdNauseam is paused on this page",
"description": "English: Menu->display when paused on page/site"
Expand Down
2 changes: 1 addition & 1 deletion src/js/3p-filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ var renderFilterLists = function(soft) {
if (groupKey === 'default') groupKey = 'Essentials';
if (groupKey === 'multipurpose') groupKey = 'Other';

var groupName = vAPI.i18n('3pGroup' + groupKey.charAt(0).toUpperCase() + groupKey.slice(1));
var groupName = groupKey === 'hidden' ? groupKey : vAPI.i18n('3pGroup' + groupKey.charAt(0).toUpperCase() + groupKey.slice(1));

if ( liGroup === null ) {
liGroup = listGroupTemplate.clone().nodeAt(0);
Expand Down
2 changes: 1 addition & 1 deletion src/js/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ vAPI.i18n.render = function(context) {
n = elems.length;
for ( i = 0; i < n; i++ ) {
elem = elems[i];
text = vAPI.i18n(elem.getAttribute('title',''));
text = vAPI.i18n(elem.getAttribute('title'));
if ( text ) {
elem.setAttribute('title', text);
}
Expand Down
2 changes: 1 addition & 1 deletion src/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<header>
<h1>
<a href="http://adnauseam.io" target="new">
<span id="toggle-button" background="" title="Toggle AdNauseam On/Off">ADNAUSEAM</span>
<span id="toggle-button" background="" title="goToAdNauseamWebsite">ADNAUSEAM</span>
</a>
</h1>
<div id="stats">
Expand Down

0 comments on commit ea7fce7

Please sign in to comment.