Skip to content

Commit 8c15850

Browse files
author
Micah Lee
committed
Mostly-working English, Spanish translations
1 parent 163d39f commit 8c15850

File tree

7 files changed

+125
-77
lines changed

7 files changed

+125
-77
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,117 @@
11
{
2-
"https-everywhere.about.title": {
2+
"about_title": {
33
"message": "About HTTPS Everywhere"
44
},
5-
"https-everywhere.about.ext_name": {
5+
"about_ext_name": {
66
"message": "HTTPS Everywhere"
77
},
8-
"https-everywhere.about.ext_description": {
8+
"about_ext_description": {
99
"message": "Encrypt the Web! Automatically use HTTPS security on many sites."
1010
},
11-
"https-everywhere.about.version": {
11+
"about_version": {
1212
"message": "Version"
1313
},
14-
"https-everywhere.about.created_by": {
14+
"about_created_by": {
1515
"message": "Created by"
1616
},
17-
"https-everywhere.about.librarians": {
17+
"about_librarians": {
1818
"message": "Ruleset Librarians"
1919
},
20-
"https-everywhere.about.thanks": {
20+
"about_thanks": {
2121
"message": "Thanks to"
2222
},
23-
"https-everywhere.about.contribute": {
23+
"about_contribute": {
2424
"message": "If you like HTTPS Everywhere, you might consider"
2525
},
26-
"https-everywhere.about.donate_tor": {
26+
"about_donate_tor": {
2727
"message": "Donating to Tor"
2828
},
29-
"https-everywhere.about.tor_lang_code": {
29+
"about_tor_lang_code": {
3030
"message": "en"
3131
},
32-
"https-everywhere.about.donate_eff": {
32+
"about_donate_eff": {
3333
"message": "Donating to EFF"
3434
},
35-
"https-everywhere.menu.about": {
35+
"menu_about": {
3636
"message": "About HTTPS Everywhere"
3737
},
38-
"https-everywhere.menu.observatory": {
38+
"menu_observatory": {
3939
"message": "SSL Observatory Preferences"
4040
},
41-
"https-everywhere.menu.globalEnable": {
41+
"menu_globalEnable": {
4242
"message": "Enable HTTPS Everywhere"
4343
},
44-
"https-everywhere.menu.globalDisable": {
44+
"menu_globalDisable": {
4545
"message": "Disable HTTPS Everywhere"
4646
},
47-
"https-everywhere.prefs.title": {
47+
"prefs_title": {
4848
"message": "HTTPS Everywhere Preferences"
4949
},
50-
"https-everywhere.prefs.enable_all": {
50+
"prefs_enable_all": {
5151
"message": "Enable All"
5252
},
53-
"https-everywhere.prefs.disable_all": {
53+
"prefs_disable_all": {
5454
"message": "Disable All"
5555
},
56-
"https-everywhere.prefs.reset_defaults": {
56+
"prefs_reset_defaults": {
5757
"message": "Reset to Defaults"
5858
},
59-
"https-everywhere.prefs.search": {
59+
"prefs_search": {
6060
"message": "Search"
6161
},
62-
"https-everywhere.prefs.site": {
62+
"prefs_site": {
6363
"message": "Site"
6464
},
65-
"https-everywhere.prefs.notes": {
65+
"prefs_notes": {
6666
"message": "Notes"
6767
},
68-
"https-everywhere.prefs.list_caption": {
68+
"prefs_list_caption": {
6969
"message": "Which HTTPS redirection rules should apply?"
7070
},
71-
"https-everywhere.prefs.enabled": {
71+
"prefs_enabled": {
7272
"message": "Enabled"
7373
},
74-
"https-everywhere.prefs.ruleset_howto": {
74+
"prefs_ruleset_howto": {
7575
"message": "You can learn how to write your own rulesets (to add support for other web sites)"
7676
},
77-
"https-everywhere.prefs.here_link": {
77+
"prefs_here_link": {
7878
"message": "here"
7979
},
80-
"https-everywhere.prefs.toggle": {
80+
"prefs_toggle": {
8181
"message": "Toggle"
8282
},
83-
"https-everywhere.prefs.reset_default": {
83+
"prefs_reset_default": {
8484
"message": "Reset to Default"
8585
},
86-
"https-everywhere.prefs.view_xml_source": {
86+
"prefs_view_xml_source": {
8787
"message": "View XML Source"
8888
},
89-
"https-everywhere.source.downloading": {
89+
"source_downloading": {
9090
"message": "Downloading"
9191
},
92-
"https-everywhere.source.filename": {
92+
"source_filename": {
9393
"message": "Filename"
9494
},
95-
"https-everywhere.source.unable_to_download": {
95+
"source_unable_to_download": {
9696
"message": "Unable to download source."
97+
},
98+
"chrome_stable_rules": {
99+
"message": "Stable rules"
100+
},
101+
"chrome_stable_rules_description": {
102+
"message": "Force <a href=\"https://wikipedia.org/wiki/Transport_Layer_Security\" title=\"Wikipedia article about encryption\" target=\"_blank\" tabindex=\"-1\">encrypted</a> connections to these websites:"
103+
},
104+
"chrome_experimental_rules": {
105+
"message": "Experimental rules"
106+
},
107+
"chrome_experimental_rules_description": {
108+
"message": "May cause warnings or breakage. Disabled by default."
109+
},
110+
"chrome_what_is_this": {
111+
"message": "What is this?"
112+
},
113+
"chrome_what_is_this_title": {
114+
"message": "HTTPS Everywhere website"
97115
}
98116
}
99117

Original file line numberDiff line numberDiff line change
@@ -1,99 +1,117 @@
11
{
2-
"https-everywhere.about.title": {
2+
"about_title": {
33
"message": "Acerca de HTTPS Everywhere"
44
},
5-
"https-everywhere.about.ext_name": {
5+
"about_ext_name": {
66
"message": "HTTPS Everywhere"
77
},
8-
"https-everywhere.about.ext_description": {
8+
"about_ext_description": {
99
"message": "¡Cifra la Web! Utiliza automáticamente la seguridad HTTPS en varios sitios."
1010
},
11-
"https-everywhere.about.version": {
11+
"about_version": {
1212
"message": "Versión"
1313
},
14-
"https-everywhere.about.created_by": {
14+
"about_created_by": {
1515
"message": "Creado por"
1616
},
17-
"https-everywhere.about.librarians": {
17+
"about_librarians": {
1818
"message": "Libreros de Grupos de Reglas"
1919
},
20-
"https-everywhere.about.thanks": {
20+
"about_thanks": {
2121
"message": "Agradecimientos para"
2222
},
23-
"https-everywhere.about.contribute": {
23+
"about_contribute": {
2424
"message": "Si le agrada HTTPS Everywhere, podría considerar"
2525
},
26-
"https-everywhere.about.donate_tor": {
26+
"about_donate_tor": {
2727
"message": "Donar a Tor"
2828
},
29-
"https-everywhere.about.tor_lang_code": {
29+
"about_tor_lang_code": {
3030
"message": "es"
3131
},
32-
"https-everywhere.about.donate_eff": {
32+
"about_donate_eff": {
3333
"message": "Donar a EFF"
3434
},
35-
"https-everywhere.menu.about": {
35+
"menu_about": {
3636
"message": "Acerca de HTTPS Everywhere"
3737
},
38-
"https-everywhere.menu.observatory": {
38+
"menu_observatory": {
3939
"message": "Opciones del Observatorio SSL"
4040
},
41-
"https-everywhere.menu.globalEnable": {
41+
"menu_globalEnable": {
4242
"message": "Habilitar HTTPS Everywhere"
4343
},
44-
"https-everywhere.menu.globalDisable": {
44+
"menu_globalDisable": {
4545
"message": "Deshabilitar HTTPS Everywhere"
4646
},
47-
"https-everywhere.prefs.title": {
47+
"prefs_title": {
4848
"message": "Preferencias de HTTPS Everywhere"
4949
},
50-
"https-everywhere.prefs.enable_all": {
50+
"prefs_enable_all": {
5151
"message": "Habilitar Todo"
5252
},
53-
"https-everywhere.prefs.disable_all": {
53+
"prefs_disable_all": {
5454
"message": "Deshabilitar Todo"
5555
},
56-
"https-everywhere.prefs.reset_defaults": {
56+
"prefs_reset_defaults": {
5757
"message": "Restablecer Configuraciones por Defecto"
5858
},
59-
"https-everywhere.prefs.search": {
59+
"prefs_search": {
6060
"message": "Buscar"
6161
},
62-
"https-everywhere.prefs.site": {
62+
"prefs_site": {
6363
"message": "Sitio"
6464
},
65-
"https-everywhere.prefs.notes": {
65+
"prefs_notes": {
6666
"message": "Notas"
6767
},
68-
"https-everywhere.prefs.list_caption": {
68+
"prefs_list_caption": {
6969
"message": "¿Qué reglas de redirección de HTTPS deberían aplicarse?"
7070
},
71-
"https-everywhere.prefs.enabled": {
71+
"prefs_enabled": {
7272
"message": "Habilitado"
7373
},
74-
"https-everywhere.prefs.ruleset_howto": {
74+
"prefs_ruleset_howto": {
7575
"message": "Puede aprender a escribir sus propios grupos de reglas (para añadir soporte para otros sitios web)"
7676
},
77-
"https-everywhere.prefs.here_link": {
77+
"prefs_here_link": {
7878
"message": "aquí"
7979
},
80-
"https-everywhere.prefs.toggle": {
80+
"prefs_toggle": {
8181
"message": "Cambiar"
8282
},
83-
"https-everywhere.prefs.reset_default": {
83+
"prefs_reset_default": {
8484
"message": "Restablecer Configuración por Defecto"
8585
},
86-
"https-everywhere.prefs.view_xml_source": {
86+
"prefs_view_xml_source": {
8787
"message": "Ver Código XML"
8888
},
89-
"https-everywhere.source.downloading": {
89+
"source_downloading": {
9090
"message": "Descargando"
9191
},
92-
"https-everywhere.source.filename": {
92+
"source_filename": {
9393
"message": "Nombre del archivo"
9494
},
95-
"https-everywhere.source.unable_to_download": {
95+
"source_unable_to_download": {
9696
"message": "No fue posible descargar el código."
97+
},
98+
"chrome_stable_rules": {
99+
"message": "Reglas estables"
100+
},
101+
"chrome_stable_rules_description": {
102+
"message": "Forzar conexiones <a href=\"https://es.wikipedia.org/wiki/Transport_Layer_Security\" title=\"Artículo de Wikipedia sobre el cifrado\" target=\"_blank\" tabindex=\"-1\">cifradas</a> a estos sitios web:"
103+
},
104+
"chrome_experimental_rules": {
105+
"message": "Reglas experimentales"
106+
},
107+
"chrome_experimental_rules_description": {
108+
"message": "Puede causar advertencias o roturas. Desactivado de forma predeterminada."
109+
},
110+
"chrome_what_is_this": {
111+
"message": "¿Qué es esto?"
112+
},
113+
"chrome_what_is_this_title": {
114+
"message": "HTTPS Everywhere sitio web"
97115
}
98116
}
99117

chromium/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"background.js"
1212
]
1313
},
14-
"description": "Automatically encrypt your connection to major websites.",
14+
"description": "__MSG_about_ext_description__",
1515
"homepage_url": "https://www.eff.org/https-everywhere",
1616
"icons": {
1717
"128": "icon128.png",
@@ -20,12 +20,12 @@
2020
},
2121
"manifest_version": 2,
2222
"minimum_chrome_version": "18",
23-
"name": "__MSG_https-everywhere.about.ext_name__",
23+
"name": "__MSG_about_ext_name__",
2424
"default_locale": "en",
2525
"page_action": {
2626
"default_icon": "icon48.png",
2727
"default_popup": "popup.html",
28-
"default_title": "HTTPS Everywhere"
28+
"default_title": "__MSG_about_ext_name__"
2929
},
3030
"permissions": [
3131
"webRequest",

chromium/popup.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<head>
2-
<title>HTTPS Everywhere</title>
2+
<title i18n="about_ext_name"></title>
33

44
<!-- Chrome 21 --->
55
<link href="chrome://resources/css/chrome_shared.css" rel="stylesheet" type="text/css"/>
@@ -13,19 +13,19 @@
1313

1414
<body>
1515
<header>
16-
<h1>HTTPS Everywhere</h1>
16+
<h1 i18n="about_ext_name"></h1>
1717
</header>
1818
<section id="StableRules" class="rules">
19-
<h3>Stable rules</h3>
20-
<p class="description">Force <a
21-
href="https://wikipedia.org/wiki/Transport_Layer_Security" title="Wikipedia article about encryption" target="_blank" tabindex="-1">encrypted</a> connections to these websites:</p>
19+
<h3 i18n="chrome_stable_rules"></h3>
20+
<p class="description" i18n="chrome_stable_rules_description"></p>
2221
</section>
2322
<section id="UnstableRules" class="rules">
24-
<h3>Experimental rules</h3>
25-
<p class="description">May cause warnings or breakage. Disabled by default.</p>
23+
<h3 i18n="chrome_experimental_rules"></h3>
24+
<p class="description" i18n="chrome_experimental_rules_description"></p>
2625
</section>
2726
<footer>
28-
<a href="https://www.eff.org/https-everywhere" title="HTTPS Everywhere website" target="_blank" tabindex="-1">What is this?</a>
27+
<a id="whatIsThis" href="https://www.eff.org/https-everywhere" title="HTTPS Everywhere website" target="_blank" tabindex="-1" i18n="chrome_what_is_this"></a>
2928
<!-- <a href="" title="HTTPS Everywhere Options">Options</a> --->
3029
</footer>
30+
3131
</body>

chromium/popup.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,17 @@ document.addEventListener('DOMContentLoaded', function () {
6060
stableRules = document.getElementById("StableRules");
6161
unstableRules = document.getElementById("UnstableRules");
6262
chrome.tabs.getSelected(null, gotTab);
63+
64+
// auto-translate all elements with i18n attributes
65+
var all = document.getElementsByTagName("*");
66+
for(var i=0, max=all.length; i < max; i++) {
67+
var label = all[i].getAttribute('i18n');
68+
if(label) {
69+
all[i].innerHTML = chrome.i18n.getMessage(label);
70+
}
71+
}
72+
73+
// other translations
74+
document.getElementById('whatIsThis').setAttribute('title', chrome.i18n.getMessage('chrome_what_is_this_title'));
6375
});
76+

chromium/util.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ WARN=5;
66
function log(level, str) {
77
console.log(str);
88
}
9-

makecrx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ sed -e "s/VERSION/$VERSION/g" chromium/updates-master.xml > chromium/updates.xml
7373
[ -e pkg/crx ] && rm -rf pkg/crx
7474
mkdir -p pkg/crx/rules
7575
cd pkg/crx
76-
ln -f ../../chromium/* .
76+
cp -a ../../chromium/* .
7777
do_not_ship="*.py *.xml icon.jpg"
7878
rm -f $do_not_ship
7979
cd ../..

0 commit comments

Comments
 (0)