mirror of https://github.com/gorhill/uBlock.git
this fixes #124
This commit is contained in:
parent
74eb554606
commit
24bc4b1a3a
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
12
js/i18n.js
12
js/i18n.js
|
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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"></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> <span id="gotoPick" class="fa tool"></span> <span id="gotoLog" class="fa tool"></span></p>
|
||||
<p id="stats"><span data-i18n="popupBlockedOnThisPagePrompt"></span> <span id="gotoPick" class="fa tool" title="popupTipPicker"></span> <span id="gotoLog" class="fa tool" title="popupTipLog"></span></p>
|
||||
<p id="page-blocked">?</p>
|
||||
<p id="stats" data-i18n="popupBlockedSinceInstallPrompt"></p>
|
||||
<p id="total-blocked">?</p>
|
||||
|
|
Loading…
Reference in New Issue