mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
this fixes #124
This commit is contained in:
parent
74eb554606
commit
24bc4b1a3a
@ -51,6 +51,18 @@
|
|||||||
"message":"oder",
|
"message":"oder",
|
||||||
"description":"English: 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":{
|
"pickerCreate":{
|
||||||
"message":"Erzeugen",
|
"message":"Erzeugen",
|
||||||
"description":"English: Create"
|
"description":"English: Create"
|
||||||
|
@ -51,6 +51,18 @@
|
|||||||
"message":"or",
|
"message":"or",
|
||||||
"description":"English: 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":{
|
"pickerCreate":{
|
||||||
"message":"Create",
|
"message":"Create",
|
||||||
"description":"English: Create"
|
"description":"English: Create"
|
||||||
|
@ -51,6 +51,18 @@
|
|||||||
"message":"ou",
|
"message":"ou",
|
||||||
"description":"English: or"
|
"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":{
|
"pickerCreate":{
|
||||||
"message":"Créer",
|
"message":"Créer",
|
||||||
"description":"English: Create"
|
"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.
|
// Helper to deal with the i18n'ing of HTML files.
|
||||||
|
|
||||||
uDom.onLoad(function() {
|
uDom.onLoad(function() {
|
||||||
var fillin = function() {
|
uDom('[data-i18n]').forEach(function() {
|
||||||
this.innerHTML = chrome.i18n.getMessage(this.getAttribute('data-i18n'));
|
this.innerHTML = chrome.i18n.getMessage(this.getAttribute('data-i18n'));
|
||||||
}
|
});
|
||||||
|
uDom('[title]').forEach(function() {
|
||||||
uDom('[data-i18n]').forEach(fillin);
|
var title = chrome.i18n.getMessage(this.getAttribute('title'));
|
||||||
|
if ( title ) {
|
||||||
|
this.setAttribute('title', title);
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
@ -93,12 +93,12 @@ p {
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h4 title="Click to open the dashboard">µBlock<span id="version"></span></h4>
|
<h4 title="popupTipDashboard">µBlock<span id="version"></span></h4>
|
||||||
<div>
|
<div>
|
||||||
<p id="switch"><span class="fa"></span></p>
|
<p id="switch"><span class="fa"></span></p>
|
||||||
<p id="switch-hint" data-i18n="popupPowerSwitchInfo"></p>
|
<p id="switch-hint" data-i18n="popupPowerSwitchInfo"></p>
|
||||||
<p style="font-size: 16px;" data-i18n="popupBlockedRequestPrompt"></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="page-blocked">?</p>
|
||||||
<p id="stats" data-i18n="popupBlockedSinceInstallPrompt"></p>
|
<p id="stats" data-i18n="popupBlockedSinceInstallPrompt"></p>
|
||||||
<p id="total-blocked">?</p>
|
<p id="total-blocked">?</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user