mirror of https://github.com/gorhill/uBlock.git
lnaguage stuff
This commit is contained in:
parent
8b3d9ec683
commit
7b9b934b9d
|
@ -21,6 +21,20 @@
|
|||
},
|
||||
|
||||
|
||||
"popupBlockedRequestPrompt": {
|
||||
"message": "requests blocked",
|
||||
"description": "English: requests blocked"
|
||||
},
|
||||
"popupBlockedOnThisPagePrompt": {
|
||||
"message": "on this page",
|
||||
"description": "English: on this page"
|
||||
},
|
||||
"popupBlockedSinceInstallPrompt": {
|
||||
"message": "since install",
|
||||
"description": "English: since install"
|
||||
},
|
||||
|
||||
|
||||
"3pListsOfBlockedHostsPrompt2" : {
|
||||
"message": "{{ubiquitousBlacklistCount}} eindeutig blockierte Hostnamen aus:",
|
||||
"description": "English: {{ubiquitousBlacklistCount}} distinct blocked hostnames from:"
|
||||
|
|
|
@ -21,9 +21,23 @@
|
|||
},
|
||||
|
||||
|
||||
"popupBlockedRequestPrompt": {
|
||||
"message": "requests blocked",
|
||||
"description": "English: requests blocked"
|
||||
},
|
||||
"popupBlockedOnThisPagePrompt": {
|
||||
"message": "on this page",
|
||||
"description": "English: on this page"
|
||||
},
|
||||
"popupBlockedSinceInstallPrompt": {
|
||||
"message": "since install",
|
||||
"description": "English: since install"
|
||||
},
|
||||
|
||||
|
||||
"3pListsOfBlockedHostsPrompt2" : {
|
||||
"message": "{{ubiquitousBlacklistCount}} network filters from:",
|
||||
"description": "English: {{ubiquitousBlacklistCount}} distinct blocked hostnames from:"
|
||||
"description": "English: {{ubiquitousBlacklistCount}} network filters from:"
|
||||
},
|
||||
"3pListsOfBlockedHostsPerListStats" : {
|
||||
"message": "{{used}} used out of {{total}}",
|
||||
|
|
|
@ -21,9 +21,23 @@
|
|||
},
|
||||
|
||||
|
||||
"popupBlockedRequestPrompt": {
|
||||
"message": "requêtes bloquées",
|
||||
"description": "English: requests blocked"
|
||||
},
|
||||
"popupBlockedOnThisPagePrompt": {
|
||||
"message": "sur cette page",
|
||||
"description": "English: on this page"
|
||||
},
|
||||
"popupBlockedSinceInstallPrompt": {
|
||||
"message": "depuis toujours",
|
||||
"description": "English: since install"
|
||||
},
|
||||
|
||||
|
||||
"3pListsOfBlockedHostsPrompt2" : {
|
||||
"message": "{{ubiquitousBlacklistCount}} hôtes actuellement bloqués :",
|
||||
"description": "English: {{ubiquitousBlacklistCount}} distinct blocked hostnames from:"
|
||||
"message": "{{ubiquitousBlacklistCount}} filtres actuellement en action :",
|
||||
"description": "English: {{ubiquitousBlacklistCount}} network filters from:"
|
||||
},
|
||||
"3pListsOfBlockedHostsPerListStats" : {
|
||||
"message": "{{used}} utilisés sur un total de {{total}}",
|
||||
|
|
|
@ -21,6 +21,20 @@
|
|||
},
|
||||
|
||||
|
||||
"popupBlockedRequestPrompt": {
|
||||
"message": "requests blocked",
|
||||
"description": "English: requests blocked"
|
||||
},
|
||||
"popupBlockedOnThisPagePrompt": {
|
||||
"message": "on this page",
|
||||
"description": "English: on this page"
|
||||
},
|
||||
"popupBlockedSinceInstallPrompt": {
|
||||
"message": "since install",
|
||||
"description": "English: since install"
|
||||
},
|
||||
|
||||
|
||||
"3pListsOfBlockedHostsPrompt2" : {
|
||||
"message": "{{ubiquitousBlacklistCount}} блокируется хостов, помимо:",
|
||||
"description": "English: {{ubiquitousBlacklistCount}} distinct blocked hostnames from:"
|
||||
|
|
|
@ -21,6 +21,20 @@
|
|||
},
|
||||
|
||||
|
||||
"popupBlockedRequestPrompt": {
|
||||
"message": "requests blocked",
|
||||
"description": "English: requests blocked"
|
||||
},
|
||||
"popupBlockedOnThisPagePrompt": {
|
||||
"message": "on this page",
|
||||
"description": "English: on this page"
|
||||
},
|
||||
"popupBlockedSinceInstallPrompt": {
|
||||
"message": "since install",
|
||||
"description": "English: since install"
|
||||
},
|
||||
|
||||
|
||||
"3pListsOfBlockedHostsPrompt2" : {
|
||||
"message": "共{{ubiquitousBlacklistCount}}个不同的屏蔽站点名,来自:",
|
||||
"description": "English: {{ubiquitousBlacklistCount}} distinct blocked hostnames from:"
|
||||
|
|
25
js/i18n.js
25
js/i18n.js
|
@ -22,19 +22,16 @@
|
|||
// Helper to deal with the i18n'ing of HTML files.
|
||||
// jQuery must be present at this point.
|
||||
|
||||
$(function() {
|
||||
$('[data-i18n]').each(function() {
|
||||
var me = $(this);
|
||||
var key = me.data('i18n');
|
||||
me.html(chrome.i18n.getMessage(key));
|
||||
});
|
||||
// copy text of <h1> if any to document title
|
||||
document.title = $('h1').first().text();
|
||||
window.addEventListener('load', function() {
|
||||
var i;
|
||||
var fillin = function(elem) {
|
||||
var key = elem.getAttribute("data-i18n");
|
||||
elem.innerHTML = chrome.i18n.getMessage(key);
|
||||
}
|
||||
|
||||
// Tool tips
|
||||
$('[data-i18n-tip]').each(function() {
|
||||
var me = $(this);
|
||||
var key = me.data('i18nTip');
|
||||
me.attr('data-tip', chrome.i18n.getMessage(key));
|
||||
});
|
||||
var elems = document.querySelectorAll('[data-i18n]');
|
||||
i = elems.length;
|
||||
while ( i-- ) {
|
||||
fillin(elems[i]);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -284,6 +284,8 @@
|
|||
if ( reAdblockFilter.test(line) ) {
|
||||
if ( abpFilters !== null ) {
|
||||
if ( abpFilters.add(line) ) {
|
||||
thisListCount++;
|
||||
thisListUsedCount++;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
11
popup.html
11
popup.html
|
@ -49,8 +49,8 @@ p {
|
|||
color: #ccc;
|
||||
}
|
||||
#options {
|
||||
margin-bottom: 0;
|
||||
font-size: smaller;
|
||||
margin: 16px 0 0 0;
|
||||
font-size: 12px;
|
||||
}
|
||||
.dim {
|
||||
color: #aaa;
|
||||
|
@ -64,14 +64,15 @@ p {
|
|||
<h4>µBlock</h4>
|
||||
<div>
|
||||
<p id="switch"><span class="fa"></span></p>
|
||||
<p style="font-size: 16px;">requests blocked</p>
|
||||
<p id="stats">on this page</p>
|
||||
<p style="font-size: 16px;" data-i18n="popupBlockedRequestPrompt"></p>
|
||||
<p id="stats" data-i18n="popupBlockedOnThisPagePrompt"></p>
|
||||
<p id="page-blocked">?</p>
|
||||
<p id="stats">since install</p>
|
||||
<p id="stats" data-i18n="popupBlockedSinceInstallPrompt"></p>
|
||||
<p id="total-blocked">?</p>
|
||||
<p id="options"><a class="dim" href="dashboard.html" target="_blank">Options</a></p>
|
||||
</div>
|
||||
|
||||
<script src="js/i18n.js"></script>
|
||||
<script src="js/messaging-client.js"></script>
|
||||
<script src="js/popup.js"></script>
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue