This commit is contained in:
gorhill 2014-07-31 11:28:05 -04:00
parent 74eb554606
commit 24bc4b1a3a
5 changed files with 46 additions and 6 deletions

View File

@ -51,6 +51,18 @@
"message":"oder",
"description":"English: or"
},
"popupTipDashboard":{
"message":"Click to open the dashboard",
"description":"English: Click to open the dashboard"
},
"popupTipPicker":{
"message":"Go to element picker",
"description":"English: Enter element picker mode"
},
"popupTipLog":{
"message":"Go to request log",
"description":"English: Go to request log"
},
"pickerCreate":{
"message":"Erzeugen",
"description":"English: Create"

View File

@ -51,6 +51,18 @@
"message":"or",
"description":"English: or"
},
"popupTipDashboard":{
"message":"Click to open the dashboard",
"description":"English: Click to open the dashboard"
},
"popupTipPicker":{
"message":"Go to element picker",
"description":"English: Enter element picker mode"
},
"popupTipLog":{
"message":"Go to request log",
"description":"English: Go to request log"
},
"pickerCreate":{
"message":"Create",
"description":"English: Create"

View File

@ -51,6 +51,18 @@
"message":"ou",
"description":"English: or"
},
"popupTipDashboard":{
"message":"Cliquer pour accéder au tableau de bord",
"description":"English: Click to open the dashboard"
},
"popupTipPicker":{
"message":"Aller au sélecteur d'élément",
"description":"English: Enter element picker mode"
},
"popupTipLog":{
"message":"Aller au journal des requêtes",
"description":"English: Go to request log"
},
"pickerCreate":{
"message":"Créer",
"description":"English: Create"

View File

@ -22,9 +22,13 @@
// Helper to deal with the i18n'ing of HTML files.
uDom.onLoad(function() {
var fillin = function() {
uDom('[data-i18n]').forEach(function() {
this.innerHTML = chrome.i18n.getMessage(this.getAttribute('data-i18n'));
}
uDom('[data-i18n]').forEach(fillin);
});
uDom('[title]').forEach(function() {
var title = chrome.i18n.getMessage(this.getAttribute('title'));
if ( title ) {
this.setAttribute('title', title);
}
});
});

View File

@ -93,12 +93,12 @@ p {
</head>
<body>
<h4 title="Click to open the dashboard">µBlock<span id="version"></span></h4>
<h4 title="popupTipDashboard">µBlock<span id="version"></span></h4>
<div>
<p id="switch"><span class="fa">&#xf011;</span></p>
<p id="switch-hint" data-i18n="popupPowerSwitchInfo"></p>
<p style="font-size: 16px;" data-i18n="popupBlockedRequestPrompt"></p>
<p id="stats"><span data-i18n="popupBlockedOnThisPagePrompt"></span>&ensp;<span id="gotoPick" class="fa tool">&#xf070;</span>&ensp;<span id="gotoLog" class="fa tool">&#xf06e;</span></p>
<p id="stats"><span data-i18n="popupBlockedOnThisPagePrompt"></span>&ensp;<span id="gotoPick" class="fa tool" title="popupTipPicker">&#xf070;</span>&ensp;<span id="gotoLog" class="fa tool" title="popupTipLog">&#xf06e;</span></p>
<p id="page-blocked">?</p>
<p id="stats" data-i18n="popupBlockedSinceInstallPrompt"></p>
<p id="total-blocked">?</p>