[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r14023: Localize a couple alert messages. (in torbutton/trunk/src/chrome: content locale/de-AT locale/de-CH locale/de-DE locale/el-GR locale/en-US locale/es-AR locale/fr-FR locale/hr-HR locale/it-IT locale/nl-NL locale/pl-PL locale/pt-BR locale/ru-RU locale/sl-SI locale/zh-CN locale/zh-TW)



Author: mikeperry
Date: 2008-03-14 02:29:07 -0400 (Fri, 14 Mar 2008)
New Revision: 14023

Modified:
   torbutton/trunk/src/chrome/content/torbutton.js
   torbutton/trunk/src/chrome/locale/de-AT/torbutton.properties
   torbutton/trunk/src/chrome/locale/de-CH/torbutton.properties
   torbutton/trunk/src/chrome/locale/de-DE/torbutton.properties
   torbutton/trunk/src/chrome/locale/el-GR/torbutton.properties
   torbutton/trunk/src/chrome/locale/en-US/torbutton.properties
   torbutton/trunk/src/chrome/locale/es-AR/torbutton.properties
   torbutton/trunk/src/chrome/locale/fr-FR/torbutton.properties
   torbutton/trunk/src/chrome/locale/hr-HR/torbutton.properties
   torbutton/trunk/src/chrome/locale/it-IT/torbutton.properties
   torbutton/trunk/src/chrome/locale/nl-NL/torbutton.properties
   torbutton/trunk/src/chrome/locale/pl-PL/torbutton.properties
   torbutton/trunk/src/chrome/locale/pt-BR/torbutton.properties
   torbutton/trunk/src/chrome/locale/ru-RU/torbutton.properties
   torbutton/trunk/src/chrome/locale/sl-SI/torbutton.properties
   torbutton/trunk/src/chrome/locale/zh-CN/torbutton.properties
   torbutton/trunk/src/chrome/locale/zh-TW/torbutton.properties
Log:

Localize a couple alert messages.



Modified: torbutton/trunk/src/chrome/content/torbutton.js
===================================================================
--- torbutton/trunk/src/chrome/content/torbutton.js	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/content/torbutton.js	2008-03-14 06:29:07 UTC (rev 14023)
@@ -985,12 +985,14 @@
 function tbHistoryListener(browser) {
     this.browser = browser;
 
+    var o_stringbundle = torbutton_get_stringbundle();
+    var warning = o_stringbundle.GetStringFromName("torbutton.popup.history.warning");
+
     this.f1 = function() {
         if(this.browser.__tb_tor_fetched != m_tb_prefs.getBoolPref("extensions.torbutton.tor_enabled")
                 && m_tb_prefs.getBoolPref("extensions.torbutton.block_js_history")) {
             torbutton_log(3, "Blocking history manipulation");
-            // XXX: localize
-            window.alert("Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n");
+            window.alert(warning);
             return false;
         } else {
             return true;
@@ -1659,6 +1661,8 @@
                             && m_tb_prefs.getBoolPref("extensions.torbutton.no_tor_plugins")
                             && aRequest.contentType in m_tb_plugin_mimetypes)) {
                     aRequest.cancel(0x804b0002); // NS_BINDING_ABORTED
+                    var o_stringbundle = torbutton_get_stringbundle();
+                    var warning = o_stringbundle.GetStringFromName("torbutton.popup.plugin.warning");
                     if(DOMWindow) {
                         // ZOMG DIE DIE DXIE!!!!!@
                         try {
@@ -1668,8 +1672,7 @@
                             torbutton_eclog(2, 'Cleared document');
 
                             if(typeof(DOMWindow.__tb_kill_flag) == 'undefined') {
-                                // XXX: localize
-                                window.alert("Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n");
+                                window.alert(warning);
                                 DOMWindow.__tb_kill_flag = true;
                             }
                             // This doesn't seem to actually remove the child..
@@ -1683,8 +1686,7 @@
                         }
                     } else {
                         torbutton_eclog(4, 'No progress for document cancel!');
-                        // XXX: localize
-                        window.alert("Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n");
+                        window.alert(warning);
                     }
                     torbutton_eclog(3, 'Killed plugin document');
                     return 0;

Modified: torbutton/trunk/src/chrome/locale/de-AT/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/de-AT/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/de-AT/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -5,3 +5,5 @@
 torbutton.panel.label.disabled=Tor deaktiviert
 torbutton.panel.label.enabled=Tor aktiviert
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description=Dank Torbutton können Sie den Tor-Proxy mit einem Klick ein- und ausschalten
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n

Modified: torbutton/trunk/src/chrome/locale/de-CH/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/de-CH/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/de-CH/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -5,3 +5,5 @@
 torbutton.panel.label.disabled=Tor deaktiviert
 torbutton.panel.label.enabled=Tor aktiviert
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description=Dank Torbutton können Sie den Tor-Proxy mit einem Klick ein- und ausschalten
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n

Modified: torbutton/trunk/src/chrome/locale/de-DE/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/de-DE/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/de-DE/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -5,3 +5,5 @@
 torbutton.panel.label.disabled=Tor deaktiviert
 torbutton.panel.label.enabled=Tor aktiviert
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description=Dank Torbutton können Sie den Tor-Proxy mit einem Klick ein- und ausschalten
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n

Modified: torbutton/trunk/src/chrome/locale/el-GR/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/el-GR/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/el-GR/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -5,3 +5,5 @@
 torbutton.panel.label.disabled=Το Tor είναι απενεργοποιημένο
 torbutton.panel.label.enabled=Το Tor είναι ενεργοποιημένο
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description=Το Torbutton προσθέτει ένα κουμπί για εύκολη διαχείριση της ανακατεύθυνσης του Firefox στον διαμεσολαβητή Tor
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n

Modified: torbutton/trunk/src/chrome/locale/en-US/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/en-US/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/en-US/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -7,4 +7,5 @@
 torbutton.panel.label.disabled = Tor Disabled
 torbutton.panel.label.enabled = Tor Enabled
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description = Torbutton provides a button to easily enable or disable pointing Firefox to the Tor proxy
-
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n

Modified: torbutton/trunk/src/chrome/locale/es-AR/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/es-AR/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/es-AR/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -5,3 +5,5 @@
 torbutton.panel.label.disabled= Tor Disabled
 torbutton.panel.label.enabled= Tor Enabled
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description= Torbutton provides a button to easily enable or disable the tor proxy
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n

Modified: torbutton/trunk/src/chrome/locale/fr-FR/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/fr-FR/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/fr-FR/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -5,3 +5,5 @@
 torbutton.panel.label.disabled=Tor Désactivé
 torbutton.panel.label.enabled=Tor Activé
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description=Torbutton fournit un bouton qui permet d'activer ou désactiver facilement le proxy Tor
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n

Modified: torbutton/trunk/src/chrome/locale/hr-HR/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/hr-HR/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/hr-HR/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -5,3 +5,5 @@
 torbutton.panel.label.disabled= Tor onemogućen
 torbutton.panel.label.enabled= Tor omogućen
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description= Torbutton omogućava gumb za lakše omogućavanje ili onemogućavanje tor proxy-a
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n

Modified: torbutton/trunk/src/chrome/locale/it-IT/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/it-IT/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/it-IT/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -5,3 +5,5 @@
 torbutton.panel.label.disabled=Tor disattivato
 torbutton.panel.label.enabled=Tor attivato
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description=L'estensione mette a disposizione un pulsante per attivare e disattivare facilmente il proxy Tor
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n

Modified: torbutton/trunk/src/chrome/locale/nl-NL/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/nl-NL/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/nl-NL/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -5,3 +5,5 @@
 torbutton.panel.label.disabled=Tor uitgeschakeld
 torbutton.panel.label.enabled=Tor ingeschakeld
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description=Torbutton voorziet in een knop om eenvoudig de Tor proxy in- of uit te schakelen
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n

Modified: torbutton/trunk/src/chrome/locale/pl-PL/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/pl-PL/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/pl-PL/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -5,3 +5,5 @@
 torbutton.panel.label.disabled= Tor wyłączony
 torbutton.panel.label.enabled= Tor włączony
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description= Rozszerzenia dostarcza przycisk do łatwego włącznia/wyłączania proxy Tor
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n

Modified: torbutton/trunk/src/chrome/locale/pt-BR/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/pt-BR/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/pt-BR/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -5,3 +5,5 @@
 torbutton.panel.label.disabled=Tor desabilitado
 torbutton.panel.label.enabled=Tor habilitado
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description=Torbutton provê um ícone para habilitar ou desabilitar rapidamente o proxy Tor
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n

Modified: torbutton/trunk/src/chrome/locale/ru-RU/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/ru-RU/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/ru-RU/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -5,3 +5,5 @@
 torbutton.panel.label.disabled=Tor отключён
 torbutton.panel.label.enabled=Tor подключён
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description=Кнопка подключения/отключения доступа к Интернет через сеть Tor
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n

Modified: torbutton/trunk/src/chrome/locale/sl-SI/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/sl-SI/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/sl-SI/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -5,3 +5,5 @@
 torbutton.panel.label.disabled=Anonimizacija izključena
 torbutton.panel.label.enabled=Anonimizacija vključena
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description=Torbutton razširitev omogoča enostavno vključitev ali izključitev povezave preko anonimizacijskega omrežja Tor
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n

Modified: torbutton/trunk/src/chrome/locale/zh-CN/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/zh-CN/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/zh-CN/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -5,3 +5,5 @@
 torbutton.panel.label.disabled=Tor 被禁用
 torbutton.panel.label.enabled=Tor 使用中
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description=Torbutton 提供一个按钮来方便的使用或禁用 Tor 代理
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n

Modified: torbutton/trunk/src/chrome/locale/zh-TW/torbutton.properties
===================================================================
--- torbutton/trunk/src/chrome/locale/zh-TW/torbutton.properties	2008-03-14 06:00:18 UTC (rev 14022)
+++ torbutton/trunk/src/chrome/locale/zh-TW/torbutton.properties	2008-03-14 06:29:07 UTC (rev 14023)
@@ -5,3 +5,5 @@
 torbutton.panel.label.disabled=Tor 已停用
 torbutton.panel.label.enabled=Tor 已啟用
 extensions.{e0204bd5-9d31-402b-a99d-a6aa8ffebdca}.description=Torbutton 提供一個切換啟用/停用 Proxy 的按鈕
+torbutton.popup.history.warning = Torbutton blocked changed-state history manipulation.\n\nSee history settings to allow.\n\n
+torbutton.popup.plugin.warning = Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n