tor-commits
Threads by month
- ----- 2025 -----
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
January 2022
- 14 participants
- 539 discussions
commit a7f6073515175a1f2d7a2bca1eaec2bfaff03c0c
Author: Georg Koppen <gk(a)torproject.org>
Date: Wed Jan 19 13:35:53 2022 +0000
Translations update
---
chrome/locale/ar/aboutTor.dtd | 28 ----------------------------
chrome/locale/bn-BD/aboutTor.dtd | 28 ----------------------------
chrome/locale/ca/aboutTor.dtd | 28 ----------------------------
chrome/locale/cs/aboutTor.dtd | 28 ----------------------------
chrome/locale/da/aboutTor.dtd | 28 ----------------------------
chrome/locale/de/aboutTor.dtd | 28 ----------------------------
chrome/locale/el/aboutTor.dtd | 28 ----------------------------
chrome/locale/el/torbutton.dtd | 6 +++---
chrome/locale/es-AR/aboutTor.dtd | 28 ----------------------------
chrome/locale/es-ES/aboutTor.dtd | 28 ----------------------------
chrome/locale/eu/aboutTor.dtd | 28 ----------------------------
chrome/locale/fa/aboutTor.dtd | 28 ----------------------------
chrome/locale/fr/aboutTor.dtd | 28 ----------------------------
chrome/locale/fr/torbutton.dtd | 2 +-
chrome/locale/ga-IE/aboutTor.dtd | 28 ----------------------------
chrome/locale/he/aboutTor.dtd | 28 ----------------------------
chrome/locale/hu/aboutTor.dtd | 28 ----------------------------
chrome/locale/id/aboutTor.dtd | 28 ----------------------------
chrome/locale/id/torbutton.dtd | 2 +-
chrome/locale/is/aboutTor.dtd | 28 ----------------------------
chrome/locale/it/aboutTor.dtd | 28 ----------------------------
chrome/locale/ja/aboutTor.dtd | 28 ----------------------------
chrome/locale/ja/torbutton.dtd | 4 ++--
chrome/locale/ka/aboutTor.dtd | 28 ----------------------------
chrome/locale/ko/aboutTor.dtd | 28 ----------------------------
chrome/locale/lt/aboutTor.dtd | 28 ----------------------------
chrome/locale/lt/torbutton.dtd | 4 ++--
chrome/locale/mk/aboutTor.dtd | 28 ----------------------------
chrome/locale/mk/torbutton.dtd | 4 ++--
chrome/locale/ms/aboutTor.dtd | 28 ----------------------------
chrome/locale/my/aboutTor.dtd | 28 ----------------------------
chrome/locale/nb-NO/aboutTor.dtd | 28 ----------------------------
chrome/locale/nl/aboutTor.dtd | 28 ----------------------------
chrome/locale/nl/torbutton.dtd | 4 ++--
chrome/locale/pl/aboutTor.dtd | 28 ----------------------------
chrome/locale/pt-BR/aboutTor.dtd | 28 ----------------------------
chrome/locale/ro/aboutTor.dtd | 28 ----------------------------
chrome/locale/ru/aboutTor.dtd | 28 ----------------------------
chrome/locale/sv-SE/aboutTor.dtd | 28 ----------------------------
chrome/locale/th/aboutTor.dtd | 28 ----------------------------
chrome/locale/tr/aboutTor.dtd | 28 ----------------------------
chrome/locale/vi/aboutTor.dtd | 28 ----------------------------
chrome/locale/zh-CN/aboutTor.dtd | 28 ----------------------------
chrome/locale/zh-CN/torbutton.dtd | 4 ++--
chrome/locale/zh-TW/aboutTor.dtd | 30 +-----------------------------
chrome/locale/zh-TW/torbutton.properties | 2 +-
46 files changed, 17 insertions(+), 1053 deletions(-)
diff --git a/chrome/locale/ar/aboutTor.dtd b/chrome/locale/ar/aboutTor.dtd
index 60f87894..00f2f913 100644
--- a/chrome/locale/ar/aboutTor.dtd
+++ b/chrome/locale/ar/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "اشترك للحصول على أخبار تور.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor متاح مجاناً بفضل تبرعات من أشخاص مثلك">
<!ENTITY aboutTor.donationBanner.buttonA "تبرع الآن">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "الخصوصية هي حق من حقوق الإنسان">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "سيتم مطابقة تبرعك بواسطة Friends of Tor ، حتى 150000 دولار.">
diff --git a/chrome/locale/bn-BD/aboutTor.dtd b/chrome/locale/bn-BD/aboutTor.dtd
index 0808560c..e52c4b7a 100644
--- a/chrome/locale/bn-BD/aboutTor.dtd
+++ b/chrome/locale/bn-BD/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "টর নিউজ-এর জন্য সাইন আপ করুন ।">
<!ENTITY aboutTor.donationBanner.freeToUse "আপনার মতো মানুষদের দানের জন্যই Tor বিনামূল্যে ব্যবহার করা যায়">
<!ENTITY aboutTor.donationBanner.buttonA "এখুনি দান করুন! ">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "গোপনীয়তা একটি মানুষের অধিকার">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "তোমার অনুদানের সমান পরিমাণ অনুদান $১,৫০,০০০ পর্যন্ত দিলে টরের বন্ধুরা তার সমান অনুদান টরকে দিবে।">
diff --git a/chrome/locale/ca/aboutTor.dtd b/chrome/locale/ca/aboutTor.dtd
index db8d2753..0741dd00 100644
--- a/chrome/locale/ca/aboutTor.dtd
+++ b/chrome/locale/ca/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Inscriviu-vos a les noticies de Tor.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor és d'ús gratuït gràcies als donatius de persones com vós.">
<!ENTITY aboutTor.donationBanner.buttonA "Feu una donació">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "La privadesa és un dret humà">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Amics del Tor igualarà la vostra donació fins a 150.000 dòlars.">
diff --git a/chrome/locale/cs/aboutTor.dtd b/chrome/locale/cs/aboutTor.dtd
index eaddc377..96eaad26 100644
--- a/chrome/locale/cs/aboutTor.dtd
+++ b/chrome/locale/cs/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Přihlaste se k odběru zpravodaje Toru.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor je zdarma k použití díky darům od lidí jako jste vy.">
<!ENTITY aboutTor.donationBanner.buttonA "Přispějte">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "RUCE\nPRYČ\nOD\nMÝCH\nDAT">
-<!ENTITY aboutTor.yec.motto "Soukromí je lidské právo">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Váš dar bude dorovnán společností Friends of Tor, a to až do výše 150 000 $.">
diff --git a/chrome/locale/da/aboutTor.dtd b/chrome/locale/da/aboutTor.dtd
index 62a0faa8..09c87f8c 100644
--- a/chrome/locale/da/aboutTor.dtd
+++ b/chrome/locale/da/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Tilmeld Tor-nyheder.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor er gratis at bruge takke være donationer fra personer som dig.">
<!ENTITY aboutTor.donationBanner.buttonA "Donér nu">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "Privatliv er en menneskeret">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Din donation vil blive matchet af venner af Tor, op til $150.000.">
diff --git a/chrome/locale/de/aboutTor.dtd b/chrome/locale/de/aboutTor.dtd
index b602df14..65f3834a 100644
--- a/chrome/locale/de/aboutTor.dtd
+++ b/chrome/locale/de/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Tor-Nachrichten abonnieren.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor ist aufgrund von Spenden von Leuten wie dir frei nutzbar.">
<!ENTITY aboutTor.donationBanner.buttonA "Spende jetzt">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HÄNDE\nWEG\nVON MEINEN\nDATEN">
-<!ENTITY aboutTor.yec.motto "Datenschutz ist ein Menschenrecht">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Deine Spende wird von Friends of Tor verdoppelt, bis zu 150.000 $.">
diff --git a/chrome/locale/el/aboutTor.dtd b/chrome/locale/el/aboutTor.dtd
index 43179324..bc3f7546 100644
--- a/chrome/locale/el/aboutTor.dtd
+++ b/chrome/locale/el/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Εγγραφτείτε για τα νέα του Tor.">
<!ENTITY aboutTor.donationBanner.freeToUse "Το Tor είναι δωρεάν επειδή στηρίζεται σε δωρεές από άτομα σαν κι εσάς.">
<!ENTITY aboutTor.donationBanner.buttonA "Κάνε μια δωρεά τώρα">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "ΚΑΤΩ ΤΑ\nΧΕΡΙΑ\nΑΠΟ ΤΑ\nΔΕΔΟΜΕΝΑ ΜΟΥ">
-<!ENTITY aboutTor.yec.motto "Η ιδιωτικότητα είναι ανθρώπινο δικαίωμα ">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Η Friends of Tor θα δωρίσει το ίδιο ποσό με τη δωρεά σας, μέχρι $150.000.">
diff --git a/chrome/locale/el/torbutton.dtd b/chrome/locale/el/torbutton.dtd
index b39def2c..2b43207e 100644
--- a/chrome/locale/el/torbutton.dtd
+++ b/chrome/locale/el/torbutton.dtd
@@ -1,8 +1,8 @@
<!ENTITY torbutton.context_menu.new_identity "Νέα Ταυτότητα">
-<!ENTITY torbutton.context_menu.new_identity_sentence_case "New identity">
+<!ENTITY torbutton.context_menu.new_identity_sentence_case "Νέα ταυτότητα">
<!ENTITY torbutton.context_menu.new_identity_key "I">
<!ENTITY torbutton.context_menu.new_circuit "Νέο κύκλωμα Tor για αυτήν την ιστοσελίδα">
-<!ENTITY torbutton.context_menu.new_circuit_sentence_case "New tor circuit for this site">
+<!ENTITY torbutton.context_menu.new_circuit_sentence_case "Νέο κύκλωμα Tor για αυτό τον ιστότοπο">
<!ENTITY torbutton.context_menu.new_circuit_key "C">
<!ENTITY torbutton.context_menu.networksettings "Ρυθμίσεις του Δικτύου Tor...">
<!ENTITY torbutton.context_menu.networksettings.key "N">
@@ -47,7 +47,7 @@
<!ENTITY torbutton.prefs.sec_custom_summary "Οι προσαρμοσμένες προτιμήσεις του browser σας έχουν οδηγήσει σε ασυνήθιστες ρυθμίσεις ασφάλειας. Για λόγους ασφαλείας και ιδιωτικότητας, προτείνουμε να επιλέξετε ένα από τα προεπιλεγμένα επίπεδα ασφάλειας.">
<!ENTITY torbutton.prefs.sec_restore_defaults "Επαναφορά προεπιλογών">
<!ENTITY torbutton.prefs.sec_advanced_security_settings "Ρυθμίσεις ασφαλείας για προχωρημένους...">
-<!ENTITY torbutton.prefs.sec_change "Change…">
+<!ENTITY torbutton.prefs.sec_change "Αλλαγή...">
<!ENTITY torbutton.circuit_display.title "Κύκλωμα Tor">
<!ENTITY torbutton.circuit_display.new_circuit "Νέο κύκλωμα για αυτή την ιστοσελίδα">
diff --git a/chrome/locale/es-AR/aboutTor.dtd b/chrome/locale/es-AR/aboutTor.dtd
index 70d667bd..0c4ebb64 100644
--- a/chrome/locale/es-AR/aboutTor.dtd
+++ b/chrome/locale/es-AR/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Registrate en Tor News.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor puede ser usado libremente gracias a las donaciones de personas como vos.">
<!ENTITY aboutTor.donationBanner.buttonA "Doná ahora">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "NO\nTOQUÉS\nMIS\nDATOS">
-<!ENTITY aboutTor.yec.motto "La privacidad es un derecho humano">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Tu donación va a ser igualada por Amigos de Tor hasta USD 150.000">
diff --git a/chrome/locale/es-ES/aboutTor.dtd b/chrome/locale/es-ES/aboutTor.dtd
index 491c547a..0671a826 100644
--- a/chrome/locale/es-ES/aboutTor.dtd
+++ b/chrome/locale/es-ES/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Inscríbete en Tor News.">
<!ENTITY aboutTor.donationBanner.freeToUse "Se puede usar Tor libremente por las donaciones de personas como tu.">
<!ENTITY aboutTor.donationBanner.buttonA "Dona ahora.">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "NO\nTOQUES\nMIS\nDATOS">
-<!ENTITY aboutTor.yec.motto "La privacidad es un derecho humano.">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Tu donación será igualada por Amigos de Tor hasta $150.000.">
diff --git a/chrome/locale/eu/aboutTor.dtd b/chrome/locale/eu/aboutTor.dtd
index 75ec4f0b..b115af74 100644
--- a/chrome/locale/eu/aboutTor.dtd
+++ b/chrome/locale/eu/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Harpidetu Tor berrietara">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor is free to use because of donations from people like you.">
<!ENTITY aboutTor.donationBanner.buttonA "Egin dohaintza orain">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "Privacy is a human right">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Your donation will be matched by Friends of Tor, up to $150,000.">
diff --git a/chrome/locale/fa/aboutTor.dtd b/chrome/locale/fa/aboutTor.dtd
index c2438d36..44e1efbc 100644
--- a/chrome/locale/fa/aboutTor.dtd
+++ b/chrome/locale/fa/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "ثبتنام برای اخبار Tor.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor برای استفاده رایگان است، این به خاطر حمایت افرادی مانند شماست.">
<!ENTITY aboutTor.donationBanner.buttonA "اکنون حمایت کنید">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "دست\nاز\nاطلاعات\nمن\nبردارید">
-<!ENTITY aboutTor.yec.motto "حریم خصوصی یک حق انسانی است">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "کمک مالی شما با دوستان تور تا سقف 150000 دلار مطابقت داده می شود.">
diff --git a/chrome/locale/fr/aboutTor.dtd b/chrome/locale/fr/aboutTor.dtd
index 4b0fbbd8..75b45004 100644
--- a/chrome/locale/fr/aboutTor.dtd
+++ b/chrome/locale/fr/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Inscrivez-vous aux nouvelles de Tor.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor peut être utilisé gratuitement grâce aux dons de personnes telles que vous.">
<!ENTITY aboutTor.donationBanner.buttonA "Faites un don maintenant">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "NE TOUCHEZ\nPAS\nÀ MES\nDONNÉES">
-<!ENTITY aboutTor.yec.motto "La vie privée est un droit de la personne">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Votre don sera égalé par les Amis de Tor à concurrence de 150 000 $.">
diff --git a/chrome/locale/fr/torbutton.dtd b/chrome/locale/fr/torbutton.dtd
index d740bc37..1ba569b7 100644
--- a/chrome/locale/fr/torbutton.dtd
+++ b/chrome/locale/fr/torbutton.dtd
@@ -52,5 +52,5 @@
<!ENTITY torbutton.circuit_display.new_circuit "Nouveau circuit pour ce site">
<!-- Onion services strings. Strings are kept here for ease of translation. -->
-<!ENTITY torbutton.onionServices.authPrompt.tooltip "Ouvrir l’invite d’authentification du client du service oignon">
+<!ENTITY torbutton.onionServices.authPrompt.tooltip "Ouvrir l’invite d’authentification client du service oignon">
<!ENTITY torbutton.onionServices.authPrompt.persistCheckboxLabel "Mémoriser cette clé">
diff --git a/chrome/locale/ga-IE/aboutTor.dtd b/chrome/locale/ga-IE/aboutTor.dtd
index 88365aed..8f03245a 100644
--- a/chrome/locale/ga-IE/aboutTor.dtd
+++ b/chrome/locale/ga-IE/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Cláraigh le Nuachtlitir Tor.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tá Tor saor in aisce a bhuí le bronntanais airgid ó dhaoine cosúil leatsa.">
<!ENTITY aboutTor.donationBanner.buttonA "Tabhair síntiús airgid anois">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "Is buncheart daonna é an príobháideachas">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Your donation will be matched by Friends of Tor, up to $150,000.">
diff --git a/chrome/locale/he/aboutTor.dtd b/chrome/locale/he/aboutTor.dtd
index c48ae2b7..520d773b 100644
--- a/chrome/locale/he/aboutTor.dtd
+++ b/chrome/locale/he/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "הירשם עבור חדשות Tor.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor חינמי לשימוש בגלל תרומות מאנשים כמוך.">
<!ENTITY aboutTor.donationBanner.buttonA "תרום עכשיו">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "פרטיות היא זכות אדם">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "תרומתך תוכפל על ידי החברים של Tor, עד סכום של $150,000">
diff --git a/chrome/locale/hu/aboutTor.dtd b/chrome/locale/hu/aboutTor.dtd
index bfd3e056..0ea02599 100644
--- a/chrome/locale/hu/aboutTor.dtd
+++ b/chrome/locale/hu/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Iratkozzon fel a Tor hírekhez.">
<!ENTITY aboutTor.donationBanner.freeToUse "A Tor ingyenes az Önhöz hasonló személyek támogatásai miatt.">
<!ENTITY aboutTor.donationBanner.buttonA "Támogasson most">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "A magánélet emberi jog">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "A támogatásoddal egyező összeget ad a Friends of Tor, 150 000 dollárig.">
diff --git a/chrome/locale/id/aboutTor.dtd b/chrome/locale/id/aboutTor.dtd
index a6663ba9..be1ecb07 100644
--- a/chrome/locale/id/aboutTor.dtd
+++ b/chrome/locale/id/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Daftar untuk mendapatkan Berita Tor.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor bebas digunakan karena donasi dari orang-orang seperti Anda.">
<!ENTITY aboutTor.donationBanner.buttonA "Donasi Sekarang">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "Jauhi\nData\nSaya">
-<!ENTITY aboutTor.yec.motto "Privasi adalah sebuah hak asasi manusia">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Donasi Anda akan disesuaikan oleh "Friends of Tor", hingga $150.000.">
diff --git a/chrome/locale/id/torbutton.dtd b/chrome/locale/id/torbutton.dtd
index dbc6b90f..399c1624 100644
--- a/chrome/locale/id/torbutton.dtd
+++ b/chrome/locale/id/torbutton.dtd
@@ -2,7 +2,7 @@
<!ENTITY torbutton.context_menu.new_identity_sentence_case "Identitas baru">
<!ENTITY torbutton.context_menu.new_identity_key "I">
<!ENTITY torbutton.context_menu.new_circuit "Sirkuit Tor Baru untuk Situs ini">
-<!ENTITY torbutton.context_menu.new_circuit_sentence_case "New tor circuit for this site">
+<!ENTITY torbutton.context_menu.new_circuit_sentence_case "Sirkuit tor baru untuk situs ini">
<!ENTITY torbutton.context_menu.new_circuit_key "C">
<!ENTITY torbutton.context_menu.networksettings "Pengaturan Jaringan Tor…">
<!ENTITY torbutton.context_menu.networksettings.key "N">
diff --git a/chrome/locale/is/aboutTor.dtd b/chrome/locale/is/aboutTor.dtd
index 84f950bc..14bad9ac 100644
--- a/chrome/locale/is/aboutTor.dtd
+++ b/chrome/locale/is/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Skráðu þig til að fá Tor-fréttir.">
<!ENTITY aboutTor.donationBanner.freeToUse "Öllum er frjálst að nota Tor vegna styrkja frá fólki eins og þér.">
<!ENTITY aboutTor.donationBanner.buttonA "Styrkja núna">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "Friðhelgi persónuupplýsinga er mannréttindi">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Styrkur frá þér verður jafnaður upp af Friends of Tor, allt að $150,000.">
diff --git a/chrome/locale/it/aboutTor.dtd b/chrome/locale/it/aboutTor.dtd
index 29d6ae12..34fe8006 100644
--- a/chrome/locale/it/aboutTor.dtd
+++ b/chrome/locale/it/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Registrati alle Tor News.">
<!ENTITY aboutTor.donationBanner.freeToUse "L'utilizzo di Tor è gratuito grazie alle donazioni fatte da persone come te.">
<!ENTITY aboutTor.donationBanner.buttonA "Dona Adesso">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "VIA\nDAI\nMEI\nDATI">
-<!ENTITY aboutTor.yec.motto "La privacy è un diritto umano">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "La tua donazione sarà abbinata a "Amici di Tor", fino a $ 150.000.">
diff --git a/chrome/locale/ja/aboutTor.dtd b/chrome/locale/ja/aboutTor.dtd
index 7a7d2dc9..10eb73a1 100644
--- a/chrome/locale/ja/aboutTor.dtd
+++ b/chrome/locale/ja/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Tor ニュースに申し込む。">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor は皆さんからの寄付に支えられています。">
<!ENTITY aboutTor.donationBanner.buttonA "今すぐ寄付">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "データ\nに\n手を\n触れるな">
-<!ENTITY aboutTor.yec.motto "プライバシーは人権です">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "あなたが寄付した額と同額を、Torのパートナーも寄付します (最大150,000ドル)">
diff --git a/chrome/locale/ja/torbutton.dtd b/chrome/locale/ja/torbutton.dtd
index fcc97264..0c0f78c0 100644
--- a/chrome/locale/ja/torbutton.dtd
+++ b/chrome/locale/ja/torbutton.dtd
@@ -1,5 +1,5 @@
<!ENTITY torbutton.context_menu.new_identity "新しい識別子">
-<!ENTITY torbutton.context_menu.new_identity_sentence_case "New identity">
+<!ENTITY torbutton.context_menu.new_identity_sentence_case "新しい識別子">
<!ENTITY torbutton.context_menu.new_identity_key "I">
<!ENTITY torbutton.context_menu.new_circuit "このサイト用の Tor 回線を再構築">
<!ENTITY torbutton.context_menu.new_circuit_sentence_case "New tor circuit for this site">
@@ -47,7 +47,7 @@
<!ENTITY torbutton.prefs.sec_custom_summary "あなたのブラウザーにおけるカスタム設定はセキュリティ結果に影響を及ぼしません。セキュリティとプライバシーに関してはデフォルトのセキュリティレベルのひとつを選択することをおすすめいたします。">
<!ENTITY torbutton.prefs.sec_restore_defaults "デフォルトにもどす">
<!ENTITY torbutton.prefs.sec_advanced_security_settings "詳細セキュリティ設定…">
-<!ENTITY torbutton.prefs.sec_change "Change…">
+<!ENTITY torbutton.prefs.sec_change "変更…">
<!ENTITY torbutton.circuit_display.title "Tor 回線">
<!ENTITY torbutton.circuit_display.new_circuit "このサイト用の回線を再構築">
diff --git a/chrome/locale/ka/aboutTor.dtd b/chrome/locale/ka/aboutTor.dtd
index 14c2db32..1f1b89bf 100644
--- a/chrome/locale/ka/aboutTor.dtd
+++ b/chrome/locale/ka/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "გამოიწერეთ Tor-ის სიახლეები.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor უფასოა, თქვენნაირი ადამიანების შემოწირულობების წყალობით.">
<!ENTITY aboutTor.donationBanner.buttonA "გაიღეთ თანხა">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "ᲮᲔᲚᲔᲑᲘ\nᲨᲝᲠᲡ ᲩᲔᲛᲘ\nᲞᲘᲠᲐᲓᲘ\nᲡᲘᲕᲠᲪᲘᲓᲐᲜ">
-<!ENTITY aboutTor.yec.motto "პირადულობა ადამიანის ძირეული უფლებაა">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "თქვენი შემოწირულობა გაორმაგდება Tor-ის მეგობრების მიერ, $150,000-ამდე.">
diff --git a/chrome/locale/ko/aboutTor.dtd b/chrome/locale/ko/aboutTor.dtd
index 18bf3bfe..04e6de97 100644
--- a/chrome/locale/ko/aboutTor.dtd
+++ b/chrome/locale/ko/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Tor 뉴스를 구독.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor는 바로 당신과 같은 사람들의 기부 덕분에 자유롭게 사용할 수 있습니다.">
<!ENTITY aboutTor.donationBanner.buttonA "기부하기">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "프라이버시는 인권입니다">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Your donation will be matched by Friends of Tor, up to $150,000.">
diff --git a/chrome/locale/lt/aboutTor.dtd b/chrome/locale/lt/aboutTor.dtd
index 7885a6be..4b711723 100644
--- a/chrome/locale/lt/aboutTor.dtd
+++ b/chrome/locale/lt/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Užsisakykite Tor naujienas.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor yra nemokamas naudoti dėl paaukojimų iš tokių žmonių kaip jūs.">
<!ENTITY aboutTor.donationBanner.buttonA "Paaukokite dabar">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "PATRAUKITE\nRANKAS\nNUO\nMANO\nDUOMENŲ">
-<!ENTITY aboutTor.yec.motto "Privatumas yra žmogaus teisė">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "„Friends of Tor“ paaukos tiek pat, kiek ir jūs, iki $150000.">
diff --git a/chrome/locale/lt/torbutton.dtd b/chrome/locale/lt/torbutton.dtd
index 3e1e58e1..37326068 100644
--- a/chrome/locale/lt/torbutton.dtd
+++ b/chrome/locale/lt/torbutton.dtd
@@ -1,8 +1,8 @@
<!ENTITY torbutton.context_menu.new_identity "Nauja tapatybė">
-<!ENTITY torbutton.context_menu.new_identity_sentence_case "New identity">
+<!ENTITY torbutton.context_menu.new_identity_sentence_case "Nauja tapatybė">
<!ENTITY torbutton.context_menu.new_identity_key "T">
<!ENTITY torbutton.context_menu.new_circuit "Nauja Tor grandinė šiai svetainei">
-<!ENTITY torbutton.context_menu.new_circuit_sentence_case "New tor circuit for this site">
+<!ENTITY torbutton.context_menu.new_circuit_sentence_case "Nauja Tor grandinė šiai svetainei">
<!ENTITY torbutton.context_menu.new_circuit_key "G">
<!ENTITY torbutton.context_menu.networksettings "Tor tinklo nustatymai…">
<!ENTITY torbutton.context_menu.networksettings.key "N">
diff --git a/chrome/locale/mk/aboutTor.dtd b/chrome/locale/mk/aboutTor.dtd
index 785c23f3..5853c075 100644
--- a/chrome/locale/mk/aboutTor.dtd
+++ b/chrome/locale/mk/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Пријавете се за Tor Вести.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor е бесплатен за користење благодарение на донациите од луѓе како вас.">
<!ENTITY aboutTor.donationBanner.buttonA "Донирај сега">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "РАЦЕТЕ\nПОНАСТРАНА\nОД\nМОИТЕ\nПОДАТОЦИ">
-<!ENTITY aboutTor.yec.motto "Приватноста е човеково право">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Вашата донација ќе биде дуплицирана од Пријателите на Tor, до $150,000.">
diff --git a/chrome/locale/mk/torbutton.dtd b/chrome/locale/mk/torbutton.dtd
index 35bc81b3..d8f0c6a8 100644
--- a/chrome/locale/mk/torbutton.dtd
+++ b/chrome/locale/mk/torbutton.dtd
@@ -1,8 +1,8 @@
<!ENTITY torbutton.context_menu.new_identity "Нов идентитет">
-<!ENTITY torbutton.context_menu.new_identity_sentence_case "New identity">
+<!ENTITY torbutton.context_menu.new_identity_sentence_case "Нов идентитет">
<!ENTITY torbutton.context_menu.new_identity_key "I">
<!ENTITY torbutton.context_menu.new_circuit "Нов Tor круг за оваа страна">
-<!ENTITY torbutton.context_menu.new_circuit_sentence_case "New tor circuit for this site">
+<!ENTITY torbutton.context_menu.new_circuit_sentence_case "Нов Tor круг за оваа веб страна">
<!ENTITY torbutton.context_menu.new_circuit_key "C">
<!ENTITY torbutton.context_menu.networksettings "Тор мрежни поставки...">
<!ENTITY torbutton.context_menu.networksettings.key "N">
diff --git a/chrome/locale/ms/aboutTor.dtd b/chrome/locale/ms/aboutTor.dtd
index 231e59a1..b49406f7 100644
--- a/chrome/locale/ms/aboutTor.dtd
+++ b/chrome/locale/ms/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Daftar untuk dapatkan Berita Tor.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor sepenuhnya percuma digunakan kerana adanya derma oleh individu seperti anda.">
<!ENTITY aboutTor.donationBanner.buttonA "Dermalah Sekarang">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "Privasi atau kesendirian ialah hak asasi manusia">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Your donation will be matched by Friends of Tor, up to $150,000.">
diff --git a/chrome/locale/my/aboutTor.dtd b/chrome/locale/my/aboutTor.dtd
index d4be1cf6..06bc3410 100644
--- a/chrome/locale/my/aboutTor.dtd
+++ b/chrome/locale/my/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Tor News သတင်းများအတွက် အမည် စာရင်းသွင်းလိုက်ပါ။">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor သည် သင့်လို သုံးသူများမှ လှူဒါန်းငွေကြောင့် အခမဲ့သုံးနိုင်ပါသည်။">
<!ENTITY aboutTor.donationBanner.buttonA "အခုဘဲ လှူမယ်">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "Privacy is a human right">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Your donation will be matched by Friends of Tor, up to $150,000.">
diff --git a/chrome/locale/nb-NO/aboutTor.dtd b/chrome/locale/nb-NO/aboutTor.dtd
index fb6544bf..15c0c327 100644
--- a/chrome/locale/nb-NO/aboutTor.dtd
+++ b/chrome/locale/nb-NO/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Registrer deg for Tor-nyheter.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor er gratis å bruke, grunnet bidrag fra folk som deg.">
<!ENTITY aboutTor.donationBanner.buttonA "Donér nå">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "Personvern er en menneskerettighet">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Your donation will be matched by Friends of Tor, up to $150,000.">
diff --git a/chrome/locale/nl/aboutTor.dtd b/chrome/locale/nl/aboutTor.dtd
index 9af03022..ca46073b 100644
--- a/chrome/locale/nl/aboutTor.dtd
+++ b/chrome/locale/nl/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Meld u aan voor de Tor-nieuwsbrief.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor is gratis te gebruiken dankzij donaties van mensen zoals u.">
<!ENTITY aboutTor.donationBanner.buttonA "Doneer nu">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "Privacy is een mensenrecht">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Uw donatie wordt verdubbeld door Friends of Tor, tot een maximum van $150.000.">
diff --git a/chrome/locale/nl/torbutton.dtd b/chrome/locale/nl/torbutton.dtd
index 5efd0182..9d64c1d1 100644
--- a/chrome/locale/nl/torbutton.dtd
+++ b/chrome/locale/nl/torbutton.dtd
@@ -2,7 +2,7 @@
<!ENTITY torbutton.context_menu.new_identity_sentence_case "Nieuwe identiteit">
<!ENTITY torbutton.context_menu.new_identity_key "d">
<!ENTITY torbutton.context_menu.new_circuit "Nieuw Tor-circuit voor deze website">
-<!ENTITY torbutton.context_menu.new_circuit_sentence_case "New tor circuit for this site">
+<!ENTITY torbutton.context_menu.new_circuit_sentence_case "Nieuw Torcircuit voor deze website">
<!ENTITY torbutton.context_menu.new_circuit_key "c">
<!ENTITY torbutton.context_menu.networksettings "Tor-netwerkinstellingen…">
<!ENTITY torbutton.context_menu.networksettings.key "n">
@@ -47,7 +47,7 @@
<!ENTITY torbutton.prefs.sec_custom_summary "Uw aangepaste browservoorkeuren hebben tot ongebruikelijke beveiligingsinstellingen geleid. Uit veiligheids- en privacyoverwegingen raden we aan een van de standaard beveiligingsniveaus te kiezen.">
<!ENTITY torbutton.prefs.sec_restore_defaults "Standaardwaarden herstellen">
<!ENTITY torbutton.prefs.sec_advanced_security_settings "Geavanceerde beveiligingsinstellingen…">
-<!ENTITY torbutton.prefs.sec_change "Change…">
+<!ENTITY torbutton.prefs.sec_change "Wijzigen …">
<!ENTITY torbutton.circuit_display.title "Tor-circuit">
<!ENTITY torbutton.circuit_display.new_circuit "Nieuw circuit voor deze website">
diff --git a/chrome/locale/pl/aboutTor.dtd b/chrome/locale/pl/aboutTor.dtd
index 6750b260..f67d40b9 100644
--- a/chrome/locale/pl/aboutTor.dtd
+++ b/chrome/locale/pl/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Zapisz się na newsletter.">
<!ENTITY aboutTor.donationBanner.freeToUse "Z przeglądarki Tor można korzystać bezpłatnie dzięki darowiznom od osób takich jak Ty.">
<!ENTITY aboutTor.donationBanner.buttonA "Wesprzyj teraz">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "RĘCE\nPRECZ\nOD\nMOICH\nDANYCH">
-<!ENTITY aboutTor.yec.motto "Prawo do prywatności jest prawem człowieka. ">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Twoja darowizna zostanie wyrównana przez przyjaciół sieci Tor, aż do 150 000 dolarów.">
diff --git a/chrome/locale/pt-BR/aboutTor.dtd b/chrome/locale/pt-BR/aboutTor.dtd
index 71aa2346..10cc06e9 100644
--- a/chrome/locale/pt-BR/aboutTor.dtd
+++ b/chrome/locale/pt-BR/aboutTor.dtd
@@ -30,31 +30,3 @@
<!ENTITY aboutTor.newsletter.link_text "Inscreva-se para receber Notícias do Tor.">
<!ENTITY aboutTor.donationBanner.freeToUse "O Tor é gratuito graças às doações de pessoas como você.">
<!ENTITY aboutTor.donationBanner.buttonA "Doe Agora">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "TIREM AS\nMÃOS\nDOS MEUS\nDADOS">
-<!ENTITY aboutTor.yec.motto "Privacidade é um direito humano.">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Os Amigos do Tor farão uma doação do mesmo valor da sua, no limite de $150,000.00.">
diff --git a/chrome/locale/ro/aboutTor.dtd b/chrome/locale/ro/aboutTor.dtd
index 9c5d3c33..07488af9 100644
--- a/chrome/locale/ro/aboutTor.dtd
+++ b/chrome/locale/ro/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Abonează-te la Tor News.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor poate fi folosit gratuit datorită donațiilor de la oameni ca tine.">
<!ENTITY aboutTor.donationBanner.buttonA "Donează Acum">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "IA-ȚI\nMÂINILE\nDE PE DATELE\nMELE">
-<!ENTITY aboutTor.yec.motto "Confidențialitatea este un drept uman">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Donația dumneavoastră va fi potrivită de Prietenii lui Tor, până la 150.000 USD.">
diff --git a/chrome/locale/ru/aboutTor.dtd b/chrome/locale/ru/aboutTor.dtd
index 7ea0b5f8..372bbcd5 100644
--- a/chrome/locale/ru/aboutTor.dtd
+++ b/chrome/locale/ru/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Подпишитесь на новости Tor.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor бесплатен благодаря пожертвованиям таких людей, как вы.">
<!ENTITY aboutTor.donationBanner.buttonA "Пожертвовать">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "РУКИ\nПРОЧЬ\nОТ МОИХ\nДАННЫХ">
-<!ENTITY aboutTor.yec.motto "Приватность – право человека">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Ваше пожертвование (до $150000) будет удвоено Friends of Tor.">
diff --git a/chrome/locale/sv-SE/aboutTor.dtd b/chrome/locale/sv-SE/aboutTor.dtd
index f5e56647..4ff532ec 100644
--- a/chrome/locale/sv-SE/aboutTor.dtd
+++ b/chrome/locale/sv-SE/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Anmäl dig till Tor-nyheter.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor är gratis att använda på grund av donationer från personer som du.">
<!ENTITY aboutTor.donationBanner.buttonA "Donera nu">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HÄNDERNA\nBORT FRÅN\nMINA\nDATA">
-<!ENTITY aboutTor.yec.motto "Integritet är en mänsklig rättighet">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Din donation kommer att matchas av Friends of Tor, upp till $150 000.">
diff --git a/chrome/locale/th/aboutTor.dtd b/chrome/locale/th/aboutTor.dtd
index 29531f5d..96ebca5e 100644
--- a/chrome/locale/th/aboutTor.dtd
+++ b/chrome/locale/th/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "สมัครรับข่าวสารเกี่ยวกับ Tor">
<!ENTITY aboutTor.donationBanner.freeToUse "บริการ Tor นี้ฟรี ไม่มีค่าใช้จ่ายใดๆเพราะเงินบริจาคจากผู้มีน้ำใจอย่างคุณ">
<!ENTITY aboutTor.donationBanner.buttonA "ร่วมบริจาค">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "ความเป็นส่วนตัวคือสิทธิมนุษยชน">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "เงินบริจาคของคุณจะส่งมอบให้ Tor สูงสุดถึง 150,000 ดอลลาร์สหรัฐ">
diff --git a/chrome/locale/tr/aboutTor.dtd b/chrome/locale/tr/aboutTor.dtd
index dc3eb89e..5c330e18 100644
--- a/chrome/locale/tr/aboutTor.dtd
+++ b/chrome/locale/tr/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Tor duyurularına abone olun">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor sizin gibi insanların bağışları ile desteklendiği için ücretsiz olarak kullanılabiliyor.">
<!ENTITY aboutTor.donationBanner.buttonA "Bağış yapın">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "VERİLERİME\nDOKUNMA">
-<!ENTITY aboutTor.yec.motto "Kişisel gizlilik bir insan hakkıdır">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Friends of Tor, $150.000 altında yaptığınız bağış kadar katkıda bulunacak.">
diff --git a/chrome/locale/vi/aboutTor.dtd b/chrome/locale/vi/aboutTor.dtd
index 45d44a81..b6bf4286 100644
--- a/chrome/locale/vi/aboutTor.dtd
+++ b/chrome/locale/vi/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "Đăng kí nhận tin tức từ Tor.">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor miễn phí là nhờ sự ủng hộ của những người như bạn.">
<!ENTITY aboutTor.donationBanner.buttonA "Đóng góp Ngay bây giờ">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "HANDS\nOFF\nMY\nDATA">
-<!ENTITY aboutTor.yec.motto "Privacy is a human right">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Your donation will be matched by Friends of Tor, up to $150,000.">
diff --git a/chrome/locale/zh-CN/aboutTor.dtd b/chrome/locale/zh-CN/aboutTor.dtd
index 4aa0815c..5b4f5fa7 100644
--- a/chrome/locale/zh-CN/aboutTor.dtd
+++ b/chrome/locale/zh-CN/aboutTor.dtd
@@ -29,31 +29,3 @@
<!ENTITY aboutTor.newsletter.link_text "订阅 Tor 的最新动态">
<!ENTITY aboutTor.donationBanner.freeToUse "Tor 是免费使用的,因为有和您一样的人捐助。">
<!ENTITY aboutTor.donationBanner.buttonA "立即捐助">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "别碰\n我的\n隐私">
-<!ENTITY aboutTor.yec.motto "隐私是一项人权">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "您的捐款将由 Tor 的伙伴们配捐,最高15万美元。">
diff --git a/chrome/locale/zh-CN/torbutton.dtd b/chrome/locale/zh-CN/torbutton.dtd
index d6d1a237..221c89e4 100644
--- a/chrome/locale/zh-CN/torbutton.dtd
+++ b/chrome/locale/zh-CN/torbutton.dtd
@@ -2,7 +2,7 @@
<!ENTITY torbutton.context_menu.new_identity_sentence_case "新建身份">
<!ENTITY torbutton.context_menu.new_identity_key "I">
<!ENTITY torbutton.context_menu.new_circuit "为此站点使用新的 Tor 链路">
-<!ENTITY torbutton.context_menu.new_circuit_sentence_case "New tor circuit for this site">
+<!ENTITY torbutton.context_menu.new_circuit_sentence_case "为此站点建立新的 Tor 链路">
<!ENTITY torbutton.context_menu.new_circuit_key "C">
<!ENTITY torbutton.context_menu.networksettings "Tor 网络设置…">
<!ENTITY torbutton.context_menu.networksettings.key "N">
@@ -47,7 +47,7 @@
<!ENTITY torbutton.prefs.sec_custom_summary "您自定义的浏览器设置导致了不安全的安全设置。出于安全和隐私考虑,我们建议您选择一个默认的安全级别。">
<!ENTITY torbutton.prefs.sec_restore_defaults "恢复默认设置">
<!ENTITY torbutton.prefs.sec_advanced_security_settings "高级安全选项…">
-<!ENTITY torbutton.prefs.sec_change "Change…">
+<!ENTITY torbutton.prefs.sec_change "更改…">
<!ENTITY torbutton.circuit_display.title "Tor 链路">
<!ENTITY torbutton.circuit_display.new_circuit "为此站点使用新线路">
diff --git a/chrome/locale/zh-TW/aboutTor.dtd b/chrome/locale/zh-TW/aboutTor.dtd
index 5dc4ac80..ead0eb2a 100644
--- a/chrome/locale/zh-TW/aboutTor.dtd
+++ b/chrome/locale/zh-TW/aboutTor.dtd
@@ -27,33 +27,5 @@
<!ENTITY aboutTor.newsletter.tagline "將 Tor 的最新消息直接傳送到您的收件匣。">
<!ENTITY aboutTor.newsletter.link_text "訂閱 Tor 的新資訊。">
-<!ENTITY aboutTor.donationBanner.freeToUse "由於有像您這樣的人捐款,Tor 可以免費使用。">
+<!ENTITY aboutTor.donationBanner.freeToUse "由於有像您這樣的人捐款,洋蔥路由才得以免費使用。">
<!ENTITY aboutTor.donationBanner.buttonA "立刻捐款">
-
-<!-- Year end campaign strings -->
-
-<!-- LOCALIZATION NOTE (aboutTor.yec.slogan): This string is written on a protest sign and the translated
- phrase needs to be a short and concise slogan. We would like the phrase to fit on 3 to 5 lines. If a
- translation of 'HANDS OFF MY DATA' cannot be made short, we have provided these alternative slogans
- with a similar theme:
-
- - DON'T TOUCH MY DATA
- - DON'T SPY ON MY DATA
- - MY DATA IS PRIVATE
- - KEEP OFF MY DATA
-
- Please place newline characters (\n) between words or phrases which can be placed in separate lines
- so we can word-wrap our final assets correctly.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.slogan "別\n碰\n我的\n資料">
-<!ENTITY aboutTor.yec.motto "隱私即人權">
-<!-- LOCALIZATION NOTE (aboutTor.yec.donationMatch): Please translate the 'Friends of Tor' phrase, but
- also format it like the name of an organization in whichever way that is appropriate for your locale.
-
- Please keep the currency in USD.
-
- Thank you!
--->
-<!ENTITY aboutTor.yec.donationMatch "Friends of Tor 組織將會捐助與您所捐助的款項相同的金額,上限為$150,000。">
diff --git a/chrome/locale/zh-TW/torbutton.properties b/chrome/locale/zh-TW/torbutton.properties
index fecce63a..586a922a 100644
--- a/chrome/locale/zh-TW/torbutton.properties
+++ b/chrome/locale/zh-TW/torbutton.properties
@@ -78,7 +78,7 @@ onionServices.descInvalid.longDescription=技術細節: %S — 該洋蔥服務
# Tor SOCKS error 0xF2:
onionServices.introFailed.pageTitle=載入洋蔥站台時發生問題
onionServices.introFailed.header=洋蔥站台已斷線
-onionServices.introFailed=最可能的原因是 Onion 網站已離線。請聯絡 Onion 網站管理員。
+onionServices.introFailed=最有可能的原因是該洋蔥站台已離線,請聯絡該站台的管理員。
onionServices.introFailed.longDescription=技術細節: %S — 該洋蔥服務之識別證已找到,但該服務與引見節點之連線已中斷,造成引見連線建立失敗。這通常是肇因於該服務更換識別證,或是已經不再提供服務。
# Tor SOCKS error 0xF3:
onionServices.rendezvousFailed.pageTitle=載入洋蔥站台發生問題
1
0

[torbutton/master] Bug 40679: Missing features on first-time launch in esr91
by gk@torproject.org 19 Jan '22
by gk@torproject.org 19 Jan '22
19 Jan '22
commit 10ecf6dd6ecf4ddf8f4cacfdfcb36be0881e83bb
Author: Richard Pospesel <richard(a)torproject.org>
Date: Thu Dec 16 14:38:05 2021 +0100
Bug 40679: Missing features on first-time launch in esr91
- fixes myriad problems with our async control port communication
logic
- fixes tor-browser#40679
---
chrome/content/tor-circuit-display.js | 21 +-
chrome/content/torbutton.js | 4 +-
modules/tor-control-port.js | 573 +++++++++++++++++++++-------------
3 files changed, 361 insertions(+), 237 deletions(-)
diff --git a/chrome/content/tor-circuit-display.js b/chrome/content/tor-circuit-display.js
index 4e0088f0..d6034384 100644
--- a/chrome/content/tor-circuit-display.js
+++ b/chrome/content/tor-circuit-display.js
@@ -29,7 +29,7 @@ let createTorCircuitDisplay = (function () {
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
// Import the controller code.
-let { controller } = ChromeUtils.import("resource://torbutton/modules/tor-control-port.js", {});
+let { wait_for_controller } = ChromeUtils.import("resource://torbutton/modules/tor-control-port.js", {});
// Utility functions
let { bindPrefAndInit, observe, getLocale, getDomainForBrowser, torbutton_get_property_string } = ChromeUtils.import("resource://torbutton/modules/utils.js", {});
@@ -458,7 +458,7 @@ let setupDisplay = function (enablePrefName) {
syncDisplayWithSelectedTab(false);
if (myController) {
if (stopCollectingIsolationData) {
- stopCollectingIsolationData();
+ stopCollectingIsolationData();
}
if (stopCollectingBrowserCredentials) {
stopCollectingBrowserCredentials();
@@ -469,19 +469,20 @@ let setupDisplay = function (enablePrefName) {
myController = null;
}
},
- start = function () {
+ start = async function () {
if (!myController) {
- myController = controller(function (err) {
- // An error has occurred.
+ try {
+ myController = await wait_for_controller();
+ syncDisplayWithSelectedTab(true);
+ stopCollectingIsolationData = collectIsolationData(myController, updateCircuitDisplay);
+ stopCollectingBrowserCredentials = collectBrowserCredentials();
+ stopEnsuringCorrectPopupDimensions = ensureCorrectPopupDimensions();
+ } catch (err) {
logger.eclog(5, err);
logger.eclog(5, "Disabling tor display circuit because of an error.");
myController.close();
stop();
- });
- syncDisplayWithSelectedTab(true);
- stopCollectingIsolationData = collectIsolationData(myController, updateCircuitDisplay);
- stopCollectingBrowserCredentials = collectBrowserCredentials();
- stopEnsuringCorrectPopupDimensions = ensureCorrectPopupDimensions();
+ }
}
};
try {
diff --git a/chrome/content/torbutton.js b/chrome/content/torbutton.js
index 65048b1a..3bfaa1f8 100644
--- a/chrome/content/torbutton.js
+++ b/chrome/content/torbutton.js
@@ -28,7 +28,7 @@ let {
torbutton_log,
torbutton_get_property_string,
} = ChromeUtils.import("resource://torbutton/modules/utils.js", {});
-let { configureControlPortModule, controller } = Cu.import("resource://torbutton/modules/tor-control-port.js", {});
+let { configureControlPortModule, wait_for_controller } = Cu.import("resource://torbutton/modules/tor-control-port.js", {});
const k_tb_tor_check_failed_topic = "Torbutton:TorCheckFailed";
@@ -352,7 +352,7 @@ async function torbutton_send_ctrl_cmd(command) {
let response = null;
try {
const avoidCache = true;
- let torController = controller(e => { throw e; }, avoidCache);
+ let torController = await wait_for_controller(avoidCache);
let bytes = await torController.sendCommand(command);
if (!bytes.startsWith("250")) {
diff --git a/modules/tor-control-port.js b/modules/tor-control-port.js
index ef7bbe69..51ac8ac0 100644
--- a/modules/tor-control-port.js
+++ b/modules/tor-control-port.js
@@ -7,16 +7,16 @@
//
// To import the module, use
//
-// let { configureControlPortModule, controller } =
+// let { configureControlPortModule, controller, wait_for_controller } =
// Components.utils.import("path/to/tor-control-port.js", {});
//
-// See the second-to-last function defined in this file:
+// See the third-to-last function defined in this file:
// configureControlPortModule(ipcFile, host, port, password)
// for usage of the configureControlPortModule function.
//
-// See the last function defined in this file:
-// controller(onError)
-// for usage of the controller function.
+// See the last functions defined in this file:
+// controller(avoidCache), wait_for_controller(avoidCache)
+// for usage of the controller functions.
/* jshint esnext: true */
/* jshint -W097 */
@@ -29,6 +29,14 @@ let { Constructor: CC } = Components;
// ### Import Mozilla Services
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
+const { TorProtocolService, TorProcessStatus } = ChromeUtils.import(
+ "resource:///modules/TorProtocolService.jsm"
+);
+// tor-launcher observer topics
+const TorTopics = Object.freeze({
+ ProcessIsReady: "TorProcessIsReady",
+});
+
// __log__.
// Logging function
let logger = Cc["@torproject.org/torbutton-logger;1"]
@@ -38,159 +46,289 @@ let log = x => logger.eclog(3, x.trimRight().replace(/\r\n/g, "\n"));
// ### announce this file
log("Loading tor-control-port.js\n");
-// ## io
-// I/O utilities namespace
-let io = {};
+class AsyncSocket {
+ constructor(ipcFile, host, port) {
+ let sts = Cc["@mozilla.org/network/socket-transport-service;1"].getService(Ci.nsISocketTransportService);
+ const OPEN_UNBUFFERED = Ci.nsITransport.OPEN_UNBUFFERED;
-// __io.asyncSocketStreams(ipcFile, host, port)__.
-// Creates a pair of asynchronous input and output streams for a socket at the
-// given ipcFile or host and port.
-io.asyncSocketStreams = function (ipcFile, host, port) {
- let sts = Cc["@mozilla.org/network/socket-transport-service;1"]
- .getService(Ci.nsISocketTransportService),
- UNBUFFERED = Ci.nsITransport.OPEN_UNBUFFERED;
-
- // Create an instance of a socket transport.
- let socketTransport;
- if (ipcFile) {
- socketTransport = sts.createUnixDomainTransport(ipcFile);
- } else {
- socketTransport = sts.createTransport([], host, port, null, null);
+ let socketTransport = ipcFile ?
+ sts.createUnixDomainTransport(ipcFile) :
+ sts.createTransport([], host, port, null, null);
+
+
+ this.outputStream = socketTransport.openOutputStream(OPEN_UNBUFFERED, 1, 1).QueryInterface(Ci.nsIAsyncOutputStream);
+ this.outputQueue = [];
+
+ this.inputStream = socketTransport.openInputStream(OPEN_UNBUFFERED, 1, 1).QueryInterface(Ci.nsIAsyncInputStream);
+ this.scriptableInputStream = Cc["@mozilla.org/scriptableinputstream;1"].createInstance(Ci.nsIScriptableInputStream);
+ this.scriptableInputStream.init(this.inputStream);
+ this.inputQueue = [];
}
- // Open unbuffered asynchronous outputStream.
- let outputStream = socketTransport.openOutputStream(UNBUFFERED, 1, 1)
- .QueryInterface(Ci.nsIAsyncOutputStream),
- // Open unbuffered asynchronous inputStream.
- inputStream = socketTransport.openInputStream(UNBUFFERED, 1, 1)
- .QueryInterface(Ci.nsIAsyncInputStream);
- return [inputStream, outputStream];
-};
+ // asynchronously write string to underlying socket and return number of bytes written
+ async write(str) {
+ return new Promise((resolve, reject) => {
-// __io.pumpInputStream(scriptableInputStream, onInputData, onError)__.
-// Take an input stream and asynchronously pass data to the onInputData callback.
-io.pumpInputStream = function (inputStream, onInputData, onError) {
- // Wrap raw inputStream with a "ScriptableInputStream" so we can read incoming data.
- let ScriptableInputStream = Components.Constructor(
- "@mozilla.org/scriptableinputstream;1", "nsIScriptableInputStream", "init"),
- scriptableInputStream = new ScriptableInputStream(inputStream),
- awaitNextChunk = function () {
- inputStream.asyncWait({
- onInputStreamReady: (stream) => {
- try {
- let chunk = scriptableInputStream.read(scriptableInputStream.available());
- onInputData(chunk);
- awaitNextChunk();
- } catch (err) {
- if (err.result !== Cr.NS_BASE_STREAM_CLOSED) {
- onError(err);
- }
- }
+ // asyncWait next write request
+ const tryAsyncWait = () => {
+ if (this.outputQueue.length > 0) {
+ this.outputStream.asyncWait(
+ this.outputQueue.at(0), // next request
+ 0, 0, Services.tm.currentThread);
+ }
+ };
+
+ // output stream can only have 1 registered callback at a time, so multiple writes
+ // need to be queued up (see nsIAsyncOutputStream.idl)
+ this.outputQueue.push({
+ // Implement an nsIOutputStreamCallback:
+ onOutputStreamReady: () => {
+ try {
+ let bytesWritten = this.outputStream.write(str, str.length);
+
+ // remove this callback object from queue as it is now completed
+ this.outputQueue.shift();
+
+ // request next wait if there is one
+ tryAsyncWait();
+
+ // finally resolve promise
+ resolve(bytesWritten);
+ } catch (err) {
+ // reject promise on error
+ reject(err);
}
- }, 0, 0, Services.tm.currentThread);
+ }
+ });
+
+ // length 1 imples that there is no in-flight asyncWait, so we may immediately
+ // follow through on this write
+ if (this.outputQueue.length == 1) {
+ tryAsyncWait();
+ }
+ });
+ }
+
+ // asynchronously read string from underlying socket and return it
+ async read() {
+ return new Promise((resolve, reject) => {
+
+ const tryAsyncWait = () => {
+ if (this.inputQueue.length > 0) {
+ this.inputStream.asyncWait(
+ this.inputQueue.at(0), // next input request
+ 0, 0, Services.tm.currentThread);
+ }
};
- awaitNextChunk();
-};
-// __io.asyncSocket(ipcFile, host, port, onInputData, onError)__.
-// Creates an asynchronous, text-oriented IPC socket (if ipcFile is defined)
-// or a TCP socket at host:port.
-// The onInputData callback should accept a single argument, which will be called
-// repeatedly, whenever incoming text arrives. Returns a socket object with two methods:
-// socket.write(text) and socket.close(). onError will be passed the error object
-// whenever a write fails.
-io.asyncSocket = function (ipcFile, host, port, onInputData, onError) {
- let [inputStream, outputStream] = io.asyncSocketStreams(ipcFile, host, port),
- pendingWrites = [];
- // Run an input stream pump to send incoming data to the onInputData callback.
- io.pumpInputStream(inputStream, onInputData, onError);
- // Return the "socket object" as described.
- return {
- // Write a message to the socket.
- write : function(aString) {
- pendingWrites.push(aString);
- outputStream.asyncWait(
- // Implement an nsIOutputStreamCallback:
- { onOutputStreamReady : function () {
- let totalString = pendingWrites.join("");
- try {
- outputStream.write(totalString, totalString.length);
- log("controlPort << " + totalString);
- } catch (err) {
- onError(err);
- }
- pendingWrites = [];
- } },
- 0, 0, Services.tm.currentThread);
- },
- // Close the socket.
- close : function () {
- // Close stream objects.
- inputStream.close();
- outputStream.close();
- }
- };
-};
+ this.inputQueue.push({
+ onInputStreamReady: (stream) => {
+ try {
+ // read our string from input stream
+ let str = this.scriptableInputStream.read(this.scriptableInputStream.available());
-// __io.onDataFromOnLine(onLine)__.
-// Converts a callback that expects incoming individual lines of text to a callback that
-// expects incoming raw socket string data.
-io.onDataFromOnLine = function (onLine) {
- // A private variable that stores the last unfinished line.
- let pendingData = "";
- // Return a callback to be passed to io.asyncSocket. First, splits data into lines of
- // text. If the incoming data is not terminated by CRLF, then the last
- // unfinished line will be stored in pendingData, to be prepended to the data in the
- // next call to onData. The already complete lines of text are then passed in sequence
- // to onLine.
- return function (data) {
- let totalData = pendingData + data,
- lines = totalData.split("\r\n"),
- n = lines.length;
- pendingData = lines[n - 1];
- // Call onLine for all completed lines.
- lines.slice(0,-1).map(onLine);
- };
+ // remove this callback object from queue now that we have read
+ this.inputQueue.shift();
+
+ // request next wait if there is one
+ tryAsyncWait();
+
+ // finally resolve promise
+ resolve(str);
+ } catch (err) {
+ reject(err);
+ }
+ }
+ });
+
+ // length 1 imples that there is no in-flight asyncWait, so we may immediately
+ // follow through on this read
+ if (this.inputQueue.length == 1) {
+ tryAsyncWait();
+ }
+ });
+ }
+
+ close() {
+ this.outputStream.close();
+ this.inputStream.close();
+ }
};
-// __io.onLineFromOnMessage(onMessage)__.
-// Converts a callback that expects incoming control port multiline message strings to a
-// callback that expects individual lines.
-io.onLineFromOnMessage = function (onMessage) {
- // A private variable that stores the last unfinished line.
- let pendingLines = [],
- // A private variable to monitor whether we are receiving a multiline
- // value, beginning with ###+ and ending with a single ".".
- multilineValueInProgress = false;
- // Return a callback that expects individual lines.
- return function (line) {
- // Add to the list of pending lines.
- pendingLines.push(line);
- // 'Multiline values' are possible. We avoid interrupting one by detecting it
- // and waiting for a terminating "." on its own line.
- // (See control-spec section 3.9 and https://trac.torproject.org/16990#comment:28
- if (line.match(/^\d\d\d\+.+?=$/) && pendingLines.length === 1) {
- multilineValueInProgress = true;
+class ControlSocket {
+ constructor(asyncSocket) {
+ this.socket = asyncSocket;
+ this._isOpen = true;
+ this.pendingData = "";
+ this.pendingLines = [];
+
+ this.mainDispatcher = io.callbackDispatcher();
+ this.notificationDispatcher = io.callbackDispatcher();
+ // mainDispatcher pushes only async notifications (650) to notificationDispatcher
+ this.mainDispatcher.addCallback(/^650/, this._handleNotification.bind(this));
+ // callback for handling responses and errors
+ this.mainDispatcher.addCallback(/^[245]\d\d/, this._handleCommandReply.bind(this) );
+
+ this.commandQueue = [];
+
+ this._startMessagePump();
+ }
+
+ // blocks until an entire line is read and returns it
+ // immediately returns next line in queue (pendingLines) if present
+ async _readLine() {
+ // keep reading from socket until we have a full line to return
+ while(this.pendingLines.length == 0) {
+ // read data from our socket and spit on newline tokens
+ this.pendingData += await this.socket.read();
+ let lines = this.pendingData.split("\r\n");
+
+ // the last line will either be empty string, or a partial read of a response/event
+ // so save it off for the next socket read
+ this.pendingData = lines.pop();
+
+ // copy remaining full lines to our pendingLines list
+ this.pendingLines = this.pendingLines.concat(lines);
+
}
- if (multilineValueInProgress && line.match(/^\.$/)) {
- multilineValueInProgress = false;
+ return this.pendingLines.shift();
+ }
+
+ // blocks until an entire message is ready and returns it
+ async _readMessage() {
+ // whether we are searching for the end of a multi-line values
+ // See control-spec section 3.9
+ let handlingMultlineValue = false;
+ let endOfMessageFound = false;
+ const message = [];
+
+ do {
+ const line = await this._readLine();
+ message.push(line);
+
+ if (handlingMultlineValue) {
+ // look for end of multiline
+ if (line.match(/^\.$/)) {
+ handlingMultlineValue = false;
+ }
+ } else {
+ // 'Multiline values' are possible. We avoid interrupting one by detecting it
+ // and waiting for a terminating "." on its own line.
+ // (See control-spec section 3.9 and https://trac.torproject.org/16990#comment:28
+ // Ensure this is the first line of a new message
+ if (message.length === 1 && line.match(/^\d\d\d\+.+?=$/)) {
+ handlingMultlineValue = true;
+ }
+ // look for end of message (note the space character at end of the regex)
+ else if(line.match(/^\d\d\d /)) {
+ if (message.length == 1) {
+ endOfMessageFound = true;
+ } else {
+ let firstReplyCode = message[0].substring(0,3);
+ let lastReplyCode = line.substring(0,3);
+ if (firstReplyCode == lastReplyCode) {
+ endOfMessageFound = true;
+ }
+ }
+ }
+ }
+ } while(!endOfMessageFound);
+
+ // join our lines back together to form one message
+ return message.join("\r\n");
+ }
+
+ async _startMessagePump() {
+ try {
+ while(true) {
+ let message = await this._readMessage();
+ log("controlPort >> " + message);
+ this.mainDispatcher.pushMessage(message);
+ }
+ } catch (err) {
+ this._isOpen = false;
+ for(const cmd of this.commandQueue) {
+ cmd.reject(err);
+ }
+ this.commandQueue = [];
}
- // If line is the last in a message, then pass on the full multiline message.
- if (!multilineValueInProgress &&
- line.match(/^\d\d\d /) &&
- (pendingLines.length === 1 ||
- pendingLines[0].substring(0,3) === line.substring(0,3))) {
- // Combine pending lines to form message.
- let message = pendingLines.join("\r\n");
- log("controlPort >> " + message);
- // Wipe pendingLines before we call onMessage, in case onMessage throws an error.
- pendingLines = [];
- // Pass multiline message to onMessage.
- onMessage(message);
+ }
+
+ _writeNextCommand() {
+ let cmd = this.commandQueue[0];
+ log("controlPort << " + cmd.commandString);
+ this.socket.write(`${cmd.commandString}\r\n`).catch(cmd.reject);
+ }
+
+ async sendCommand(commandString) {
+ if (!this.isOpen()) {
+ throw new Error("ControlSocket not open");
}
- };
+
+ // this promise is resolved either in _handleCommandReply, or
+ // in _startMessagePump (on stream error)
+ return new Promise((resolve, reject) => {
+ let command = {
+ commandString: commandString,
+ resolve: resolve,
+ reject: reject,
+ };
+
+ this.commandQueue.push(command);
+ if (this.commandQueue.length == 1) {
+ this._writeNextCommand();
+ }
+ });
+ }
+
+ _handleCommandReply(message) {
+ let cmd = this.commandQueue.shift();
+ if (message.match(/^2/)) {
+ cmd.resolve(message);
+ } else if (message.match(/^[45]/)) {
+ let myErr = new Error(cmd.commandString + " -> " + message);
+ // Add Tor-specific information to the Error object.
+ let idx = message.indexOf(' ');
+ if (idx > 0) {
+ myErr.torStatusCode = message.substring(0, idx);
+ myErr.torMessage = message.substring(idx);
+ } else {
+ myErr.torStatusCode = message;
+ }
+ cmd.reject(myErr);
+ } else {
+ cmd.reject(new Error(`ControlSocket::_handleCommandReply received unexpected message:\n----\n${message}\n----`));
+ }
+
+ // send next command if one is available
+ if (this.commandQueue.length > 0) {
+ this._writeNextCommand();
+ }
+ }
+
+ _handleNotification(message) {
+ this.notificationDispatcher.pushMessage(message);
+ }
+
+ close() {
+ this.socket.close();
+ this._isOpen = false;
+ }
+
+ addNotificationCallback(regex, callback) {
+ this.notificationDispatcher.addCallback(regex, callback);
+ }
+
+ isOpen() {
+ return this._isOpen;
+ }
};
+// ## io
+// I/O utilities namespace
+
+let io = {};
+
// __io.callbackDispatcher()__.
// Returns dispatcher object with three member functions:
// dispatcher.addCallback(regex, callback), dispatcher.removeCallback(callback),
@@ -222,77 +360,30 @@ io.callbackDispatcher = function () {
addCallback : addCallback };
};
-// __io.matchRepliesToCommands(asyncSend, dispatcher)__.
-// Takes asyncSend(message), an asynchronous send function, and the callback
-// dispatcher, and returns a function Promise<response> sendCommand(command).
-io.matchRepliesToCommands = function (asyncSend, dispatcher) {
- let commandQueue = [],
- sendCommand = function (command, replyCallback, errorCallback) {
- commandQueue.push([command, replyCallback, errorCallback]);
- asyncSend(command);
- };
- // Watch for responses (replies or error messages)
- dispatcher.addCallback(/^[245]\d\d/, function (message) {
- let [command, replyCallback, errorCallback] = commandQueue.shift();
- if (message.match(/^2/) && replyCallback) replyCallback(message);
- if (message.match(/^[45]/) && errorCallback) {
- let myErr = new Error(command + " -> " + message);
- // Add Tor-specific information to the Error object.
- let idx = message.indexOf(' ');
- if (idx > 0) {
- myErr.torStatusCode = message.substring(0, idx);
- myErr.torMessage = message.substring(idx);
- } else {
- myErr.torStatusCode = message;
- }
- errorCallback(myErr);
- }
- });
- // Create and return a version of sendCommand that returns a Promise.
- return command => new Promise(function (replyCallback, errorCallback) {
- sendCommand(command, replyCallback, errorCallback);
- });
-};
-
-// __io.controlSocket(ipcFile, host, port, password, onError)__.
+// __io.controlSocket(ipcFile, host, port, password)__.
// Instantiates and returns a socket to a tor ControlPort at ipcFile or
-// host:port, authenticating with the given password. onError is called with an
-// error object as its single argument whenever an error occurs. Example:
+// host:port, authenticating with the given password. Example:
//
// // Open the socket
-// let socket = controlSocket(undefined, "127.0.0.1", 9151, "MyPassw0rd",
-// function (error) { console.log(error.message || error); });
-// // Send command and receive "250" reply or error message
-// socket.sendCommand(commandText, replyCallback, errorCallback);
+// let socket = await io.controlSocket(undefined, "127.0.0.1", 9151, "MyPassw0rd");
+// // Send command and receive "250" response reply or error is thrown
+// await socket.sendCommand(commandText);
// // Register or deregister for "650" notifications
// // that match regex
// socket.addNotificationCallback(regex, callback);
// socket.removeNotificationCallback(callback);
// // Close the socket permanently
// socket.close();
-io.controlSocket = function (ipcFile, host, port, password, onError) {
- // Produce a callback dispatcher for Tor messages.
- let mainDispatcher = io.callbackDispatcher(),
- // Open the socket and convert format to Tor messages.
- socket = io.asyncSocket(ipcFile, host, port,
- io.onDataFromOnLine(
- io.onLineFromOnMessage(mainDispatcher.pushMessage)),
- onError),
- // Controllers should send commands terminated by CRLF.
- writeLine = function (text) { socket.write(text + "\r\n"); },
- // Create a sendCommand method from writeLine.
- sendCommand = io.matchRepliesToCommands(writeLine, mainDispatcher),
- // Create a secondary callback dispatcher for Tor notification messages.
- notificationDispatcher = io.callbackDispatcher();
- // Pass asynchronous notifications to notification dispatcher.
- mainDispatcher.addCallback(/^650/, notificationDispatcher.pushMessage);
+io.controlSocket = async function (ipcFile, host, port, password) {
+ let socket = new AsyncSocket(ipcFile, host, port);
+ let controlSocket = new ControlSocket(socket);
+
// Log in to control port.
- sendCommand("authenticate " + (password || "")).catch(onError);
+ await controlSocket.sendCommand("authenticate " + (password || ""));
// Activate needed events.
- sendCommand("setevents stream").catch(onError);
- return { close : socket.close, sendCommand : sendCommand,
- addNotificationCallback : notificationDispatcher.addCallback,
- removeNotificationCallback : notificationDispatcher.removeCallback };
+ await controlSocket.sendCommand("setevents stream");
+
+ return controlSocket;
};
// ## utils
@@ -684,13 +775,11 @@ let tor = {};
// redundant instantiation of control sockets.
tor.controllerCache = new Map();
-// __tor.controller(ipcFile, host, port, password, onError)__.
+// __tor.controller(ipcFile, host, port, password)__.
// Creates a tor controller at the given ipcFile or host and port, with the
// given password.
-// onError returns asynchronously whenever a connection error occurs.
-tor.controller = function (ipcFile, host, port, password, onError) {
- let socket = io.controlSocket(ipcFile, host, port, password, onError),
- isOpen = true;
+tor.controller = async function (ipcFile, host, port, password) {
+ let socket = await io.controlSocket(ipcFile, host, port, password);
return { getInfo : key => info.getInfo(socket, key),
getConf : key => info.getConf(socket, key),
onionAuthViewKeys : () => onionAuth.viewKeys(socket),
@@ -701,8 +790,8 @@ tor.controller = function (ipcFile, host, port, password, onError) {
onionAuth.remove(socket, hsAddress),
watchEvent : (type, filter, onData, raw=false) =>
event.watchEvent(socket, type, filter, onData, raw),
- isOpen : () => isOpen,
- close : () => { isOpen = false; socket.close(); },
+ isOpen : () => socket.isOpen(),
+ close : () => { socket.close(); },
sendCommand: cmd => socket.sendCommand(cmd),
};
};
@@ -722,23 +811,24 @@ var configureControlPortModule = function (ipcFile, host, port, password) {
controlPortInfo.password = password;
};
-// __controller(onError)__.
+// __controller(avoidCache)__.
// Instantiates and returns a controller object that is connected and
// authenticated to a Tor ControlPort using the connection parameters
// provided in the most recent call to configureControlPortModule(), if
// the controller doesn't yet exist. Otherwise returns the existing
-// controller to the given ipcFile or host:port.
-// onError is called with an error object as its single argument whenever
-// an error occurs. Example:
+// controller to the given ipcFile or host:port. Throws on error.
//
-// // Get the controller
-// let c = controller(
-// function (error) { console.log(error.message || error); });
+// Example:
+//
+// // Get a new controller
+// const avoidCache = true;
+// let c = controller(avoidCache);
// // Send command and receive `250` reply or error message in a promise:
// let replyPromise = c.getInfo("ip-to-country/16.16.16.16");
// // Close the controller permanently
// c.close();
-var controller = function (onError, avoidCache) {
+var controller = async function (avoidCache) {
+
if (!controlPortInfo.ipcFile && !controlPortInfo.host)
throw new Error("Please call configureControlPortModule first");
@@ -748,18 +838,17 @@ var controller = function (onError, avoidCache) {
// constructor shorthand
const newTorController =
- () => {
- return tor.controller(
+ async () => {
+ return await tor.controller(
controlPortInfo.ipcFile,
controlPortInfo.host,
controlPortInfo.port,
- controlPortInfo.password,
- onError);
+ controlPortInfo.password);
};
// avoid cache so always return a new controller
if (avoidCache) {
- return newTorController();
+ return await newTorController();
}
// first check our cache and see if we already have one
@@ -769,10 +858,44 @@ var controller = function (onError, avoidCache) {
}
// create a new one and store in the map
- cachedController = newTorController();
+ cachedController = await newTorController();
+ // overwrite the close() function to prevent consumers from closing a shared/cached controller
+ cachedController.close = () => {
+ throw new Error("May not close cached Tor Controller as it may be in use");
+ };
+
tor.controllerCache.set(dest, cachedController);
return cachedController;
};
+// __wait_for_controller(avoidCache)
+// Same as controller() function, but explicitly waits until there is a tor daemon
+// to connect to (either launched by tor-launcher, or if we have an existing system
+// tor daemon)
+var wait_for_controller = async function(avoidCache) {
+ // if tor process is running (either ours or system) immediately return controller
+ if (!TorProtocolService.ownsTorDaemon ||
+ TorProtocolService.torProcessStatus == TorProcessStatus.Running) {
+ return await controller(avoidCache);
+ }
+
+ // otherwise we must wait for tor to finish launching before resolving
+ return new Promise((resolve, reject) => {
+ let observer = {
+ observe : async (subject, topic, data) => {
+ if (topic === TorTopics.ProcessIsReady) {
+ try {
+ resolve(await controller(avoidCache));
+ } catch (err) {
+ reject(err);
+ }
+ Services.obs.removeObserver(observer, TorTopics.ProcessIsReady);
+ }
+ },
+ };
+ Services.obs.addObserver(observer, TorTopics.ProcessIsReady);
+ });
+};
+
// Export functions for external use.
-var EXPORTED_SYMBOLS = ["configureControlPortModule", "controller"];
+var EXPORTED_SYMBOLS = ["configureControlPortModule", "controller", "wait_for_controller"];
1
0
commit 50646698e3e213fd9e714c327463eed87c4fb5f3
Author: Shelikhoo <xiaokangwang(a)outlook.com>
Date: Thu Jan 6 20:31:15 2022 +0000
Suppress connection end log output
This is an amendment of https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snow…
---
server/lib/snowflake.go | 3 ++-
server/server.go | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/server/lib/snowflake.go b/server/lib/snowflake.go
index 8942286..31b6a20 100644
--- a/server/lib/snowflake.go
+++ b/server/lib/snowflake.go
@@ -38,6 +38,7 @@ package snowflake_server
import (
"crypto/tls"
+ "errors"
"fmt"
"io"
"log"
@@ -262,7 +263,7 @@ func (l *SnowflakeListener) acceptSessions(ln *kcp.Listener) error {
go func() {
defer conn.Close()
err := l.acceptStreams(conn)
- if err != nil && err != io.ErrClosedPipe {
+ if err != nil && !errors.Is(err, io.ErrClosedPipe) {
log.Printf("acceptStreams: %v", err)
}
}()
diff --git a/server/server.go b/server/server.go
index 820a0a5..4b53c86 100644
--- a/server/server.go
+++ b/server/server.go
@@ -3,6 +3,7 @@
package main
import (
+ "errors"
"flag"
"fmt"
"io"
@@ -47,7 +48,7 @@ func proxy(local *net.TCPConn, conn net.Conn) {
wg.Add(2)
go func() {
- if _, err := io.Copy(conn, local); err != nil && err != io.ErrClosedPipe {
+ if _, err := io.Copy(conn, local); err != nil && !errors.Is(err, io.ErrClosedPipe) {
log.Printf("error copying ORPort to WebSocket %v", err)
}
local.CloseRead()
@@ -55,7 +56,7 @@ func proxy(local *net.TCPConn, conn net.Conn) {
wg.Done()
}()
go func() {
- if _, err := io.Copy(local, conn); err != nil && err != io.ErrClosedPipe {
+ if _, err := io.Copy(local, conn); err != nil && !errors.Is(err, io.ErrClosedPipe) {
log.Printf("error copying WebSocket to ORPort %v", err)
}
local.CloseWrite()
1
0
commit d2f6ea5417566966bedf8fef261199f0ebc360a2
Author: Shelikhoo <xiaokangwang(a)outlook.com>
Date: Thu Jan 6 20:40:21 2022 +0000
increase clientIDAddrMapCapacity
See also:
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snow…
---
server/lib/http.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/lib/http.go b/server/lib/http.go
index 939a816..5f214a1 100644
--- a/server/lib/http.go
+++ b/server/lib/http.go
@@ -29,7 +29,7 @@ const clientMapTimeout = 1 * time.Minute
// How big to make the map of ClientIDs to IP addresses. The map is used in
// turbotunnelMode to store a reasonable IP address for a client session that
// may outlive any single WebSocket connection.
-const clientIDAddrMapCapacity = 1024
+const clientIDAddrMapCapacity = 10240
// How long to wait for ListenAndServe or ListenAndServeTLS to return an error
// before deciding that it's not going to return.
1
0

18 Jan '22
commit b35a79ac247e53ca0a2dd25625e083e9bba395fa
Author: Cecylia Bocovich <cohosh(a)torproject.org>
Date: Wed Jan 12 10:53:58 2022 -0500
Validate client and proxy supplied strings
Malicious clients and proxies can provide potentially malicious strings
in the polls. This validates the NAT type and proxy type strings to
ensure that malformed strings are not displayed on a web page
or passed to any of our monitoring infrastructure.
If a client or proxy supplies an invalid NAT type, we return an error
message. If a proxy supplies an unknown proxy type, we set the proxy
type to unknown.
---
common/messages/client.go | 12 ++++++++++--
common/messages/messages_test.go | 2 +-
common/messages/proxy.go | 35 ++++++++++++++++++++++++++++++-----
3 files changed, 41 insertions(+), 8 deletions(-)
diff --git a/common/messages/client.go b/common/messages/client.go
index b40c582..edb7115 100644
--- a/common/messages/client.go
+++ b/common/messages/client.go
@@ -6,6 +6,8 @@ package messages
import (
"encoding/json"
"fmt"
+
+ "git.torproject.org/pluggable-transports/snowflake.git/v2/common/nat"
)
const ClientVersion = "1.0"
@@ -73,8 +75,14 @@ func DecodeClientPollRequest(data []byte) (*ClientPollRequest, error) {
return nil, fmt.Errorf("no supplied offer")
}
- if message.NAT == "" {
- message.NAT = "unknown"
+ switch message.NAT {
+ case "":
+ message.NAT = nat.NATUnknown
+ case nat.NATUnknown:
+ case nat.NATRestricted:
+ case nat.NATUnrestricted:
+ default:
+ return nil, fmt.Errorf("invalid NAT type")
}
return &message, nil
diff --git a/common/messages/messages_test.go b/common/messages/messages_test.go
index abb978d..a38746b 100644
--- a/common/messages/messages_test.go
+++ b/common/messages/messages_test.go
@@ -22,7 +22,7 @@ func TestDecodeProxyPollRequest(t *testing.T) {
{
//Version 1.0 proxy message
"ymbcCMto7KHNGYlp",
- "",
+ "unknown",
"unknown",
0,
`{"Sid":"ymbcCMto7KHNGYlp","Version":"1.0"}`,
diff --git a/common/messages/proxy.go b/common/messages/proxy.go
index 3817c04..83606d3 100644
--- a/common/messages/proxy.go
+++ b/common/messages/proxy.go
@@ -7,9 +7,18 @@ import (
"encoding/json"
"fmt"
"strings"
+
+ "git.torproject.org/pluggable-transports/snowflake.git/v2/common/nat"
)
-const version = "1.2"
+const (
+ version = "1.2"
+
+ ProxyStandalone = "standalone"
+ ProxyWebext = "webext"
+ ProxyBadge = "badge"
+ ProxyUnknown = "unknown"
+)
/* Version 1.2 specification:
@@ -116,12 +125,28 @@ func DecodePollRequest(data []byte) (sid string, proxyType string, natType strin
return
}
- natType = message.NAT
- if natType == "" {
- natType = "unknown"
+ switch message.NAT {
+ case "":
+ message.NAT = nat.NATUnknown
+ case nat.NATUnknown:
+ case nat.NATRestricted:
+ case nat.NATUnrestricted:
+ default:
+ err = fmt.Errorf("invalid NAT type")
+ return
+ }
+
+ // we don't reject polls with an unknown proxy type because we encourage
+ // projects that embed proxy code to include their own type
+ switch message.Type {
+ case ProxyStandalone:
+ case ProxyWebext:
+ case ProxyBadge:
+ default:
+ message.Type = ProxyUnknown
}
- return message.Sid, message.Type, natType, message.Clients, nil
+ return message.Sid, message.Type, message.NAT, message.Clients, nil
}
type ProxyPollResponse struct {
1
0

18 Jan '22
commit b9c06718a871cc9bfe57c7b59e5228183d71d992
Author: David Goulet <dgoulet(a)torproject.org>
Date: Tue Jan 18 12:51:52 2022 -0500
main: Update a dead URL in a log notice
Change https://www.torproject.org/download/download#warning to
https://support.torproject.org/faq/staying-anonymous/
Closes #40544
Signed-off-by: David Goulet <dgoulet(a)torproject.org>
---
changes/ticket40544 | 3 +++
src/app/main/main.c | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/changes/ticket40544 b/changes/ticket40544
new file mode 100644
index 0000000000..b0754f0fd4
--- /dev/null
+++ b/changes/ticket40544
@@ -0,0 +1,3 @@
+ o Minor bugfix (logging):
+ - Update a log notice dead URL to a working one. Fixes bug 40544; bugfix on
+ 0.3.5.1-alpha.
diff --git a/src/app/main/main.c b/src/app/main/main.c
index 8a5d4cfd15..ca3148e7fc 100644
--- a/src/app/main/main.c
+++ b/src/app/main/main.c
@@ -618,7 +618,7 @@ tor_init(int argc, char *argv[])
log_notice(LD_GENERAL, "Tor can't help you if you use it wrong! "
"Learn how to be safe at "
- "https://www.torproject.org/download/download#warning");
+ "https://support.torproject.org/faq/staying-anonymous/");
if (strstr(version, "alpha") || strstr(version, "beta"))
log_notice(LD_GENERAL, "This version is not a stable Tor release. "
1
0
commit d6c2da663029f4da94a9b7ff68f830e6e7f80e7d
Author: Jérôme Charaoui <jerome(a)riseup.net>
Date: Mon Jan 10 15:16:24 2022 +0000
Update new relay blogpost URL
This removes the '/blog/' URL component which relies on a
redirection since the blog has been migrated to Lektor
---
src/feature/relay/router.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/feature/relay/router.c b/src/feature/relay/router.c
index 7ea2a4e719..c4170cd720 100644
--- a/src/feature/relay/router.c
+++ b/src/feature/relay/router.c
@@ -525,8 +525,8 @@ log_new_relay_greeting(void)
tor_log(LOG_NOTICE, LD_GENERAL, "You are running a new relay. "
"Thanks for helping the Tor network! If you wish to know "
"what will happen in the upcoming weeks regarding its usage, "
- "have a look at https://blog.torproject.org/blog/lifecycle-of"
- "-a-new-relay");
+ "have a look at https://blog.torproject.org/lifecycle-of-a"
+ "-new-relay");
already_logged = 1;
}
1
0

[tor/release-0.4.5] relay: Don't advertise HSv2 protocol version
by dgoulet@torproject.org 18 Jan '22
by dgoulet@torproject.org 18 Jan '22
18 Jan '22
commit 72041c63064b461e2eb9102f12c4fe217e9066dd
Author: David Goulet <dgoulet(a)torproject.org>
Date: Thu Nov 4 14:44:58 2021 -0400
relay: Don't advertise HSv2 protocol version
We removed HSIntro=3 and HSDir=1 that are v2 specific. Since 0.3.5.17,
we do not support introducing or being a directory for onion service v2.
Closes #40509
Signed-off-by: David Goulet <dgoulet(a)torproject.org>
---
changes/ticket40509 | 4 ++++
src/core/or/protover.c | 12 ++++++------
src/test/test_protover.c | 4 ++--
3 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/changes/ticket40509 b/changes/ticket40509
new file mode 100644
index 0000000000..ba4502ff3b
--- /dev/null
+++ b/changes/ticket40509
@@ -0,0 +1,4 @@
+ o Minor bugfix (relay):
+ - Remove the HSDir and HSIntro onion service v2 protocol versions so relay
+ stop advertising that they support them. Fixes bug 40509; bugfix on
+ 0.3.5.17.
diff --git a/src/core/or/protover.c b/src/core/or/protover.c
index 82e4f64c94..e047bfe200 100644
--- a/src/core/or/protover.c
+++ b/src/core/or/protover.c
@@ -423,8 +423,8 @@ protover_get_supported_protocols(void)
"Cons=1-2 "
"Desc=1-2 "
"DirCache=1-2 "
- "HSDir=1-2 "
- "HSIntro=3-4 "
+ "HSDir=2 "
+ "HSIntro=4 "
"HSRend=1-2 "
"Link=1-5 "
#ifdef HAVE_WORKING_TOR_TLS_GET_TLSSECRETS
@@ -475,7 +475,7 @@ protover_get_supported_protocols(void)
const char *
protover_get_recommended_client_protocols(void)
{
- return "Cons=1-2 Desc=1-2 DirCache=1 HSDir=1 HSIntro=3 HSRend=1 "
+ return "Cons=1-2 Desc=1-2 DirCache=1 HSDir=2 HSIntro=4 HSRend=1 "
"Link=4 Microdesc=1-2 Relay=2";
}
@@ -484,7 +484,7 @@ protover_get_recommended_client_protocols(void)
const char *
protover_get_recommended_relay_protocols(void)
{
- return "Cons=1-2 Desc=1-2 DirCache=1 HSDir=1 HSIntro=3 HSRend=1 "
+ return "Cons=1-2 Desc=1-2 DirCache=1 HSDir=2 HSIntro=4 HSRend=1 "
"Link=4 Microdesc=1-2 Relay=2";
}
@@ -493,7 +493,7 @@ protover_get_recommended_relay_protocols(void)
const char *
protover_get_required_client_protocols(void)
{
- return "Cons=1-2 Desc=1-2 DirCache=1 HSDir=1 HSIntro=3 HSRend=1 "
+ return "Cons=1-2 Desc=1-2 DirCache=1 HSDir=2 HSIntro=4 HSRend=1 "
"Link=4 Microdesc=1-2 Relay=2";
}
@@ -502,7 +502,7 @@ protover_get_required_client_protocols(void)
const char *
protover_get_required_relay_protocols(void)
{
- return "Cons=1 Desc=1 DirCache=1 HSDir=1 HSIntro=3 HSRend=1 "
+ return "Cons=1 Desc=1 DirCache=1 HSDir=2 HSIntro=4 HSRend=1 "
"Link=3-4 Microdesc=1 Relay=1-2";
}
diff --git a/src/test/test_protover.c b/src/test/test_protover.c
index b4689045cf..3fbfe3a682 100644
--- a/src/test/test_protover.c
+++ b/src/test/test_protover.c
@@ -369,12 +369,12 @@ test_protover_supports_version(void *arg)
/* Highest supported HSv2 introduce protocol version.
* Hard-coded here, because it does not appear anywhere in the code.
* It's not clear if we actually support version 2, see #25068. */
-#define PROTOVER_HSINTRO_V2 3
+#define PROTOVER_HSINTRO_V2 4
/* HSv2 Rend and HSDir protocol versions.
* Hard-coded here, because they do not appear anywhere in the code. */
#define PROTOVER_HS_RENDEZVOUS_POINT_V2 1
-#define PROTOVER_HSDIR_V2 1
+#define PROTOVER_HSDIR_V2 2
/* DirCache, Desc, Microdesc, and Cons protocol versions.
* Hard-coded here, because they do not appear anywhere in the code. */
1
0

[tor/release-0.4.5] Merge branch 'maint-0.3.5' into maint-0.4.5
by dgoulet@torproject.org 18 Jan '22
by dgoulet@torproject.org 18 Jan '22
18 Jan '22
commit aac5731f86399a3ac37720f9d0c4cffacd8eb38a
Merge: 882fd1f0d4 72041c6306
Author: David Goulet <dgoulet(a)torproject.org>
Date: Tue Jan 18 13:12:13 2022 -0500
Merge branch 'maint-0.3.5' into maint-0.4.5
changes/ticket40509 | 4 ++++
src/core/or/protover.c | 4 ++--
src/test/test_protover.c | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --cc src/core/or/protover.c
index cb9a03d6ec,e047bfe200..d45246cb83
--- a/src/core/or/protover.c
+++ b/src/core/or/protover.c
@@@ -435,10 -422,9 +435,10 @@@ protover_get_supported_protocols(void
return
"Cons=1-2 "
"Desc=1-2 "
- "DirCache=1-2 "
+ "DirCache=2 "
+ "FlowCtrl=1 "
- "HSDir=1-2 "
- "HSIntro=3-5 "
+ "HSDir=2 "
- "HSIntro=4 "
++ "HSIntro=4-5 "
"HSRend=1-2 "
"Link=1-5 "
#ifdef HAVE_WORKING_TOR_TLS_GET_TLSSECRETS
diff --cc src/test/test_protover.c
index 016cee7f15,3fbfe3a682..44febe0fa6
--- a/src/test/test_protover.c
+++ b/src/test/test_protover.c
@@@ -342,21 -361,23 +342,21 @@@ test_protover_supports_version(void *ar
* Hard-coded here, because they are not in the code, or not exposed in the
* headers. */
#define PROTOVER_LINKAUTH_V1 1
-#define PROTOVER_LINKAUTH_V3 3
-
+#define PROTOVER_LINKAUTH_V2 2
#define PROTOVER_RELAY_V1 1
-#define PROTOVER_RELAY_V2 2
+/* Deprecated HSIntro versions */
+#define PROTOVER_HS_INTRO_DEPRECATED_1 1
+#define PROTOVER_HS_INTRO_DEPRECATED_2 2
/* Highest supported HSv2 introduce protocol version.
- * Hard-coded here, because it does not appear anywhere in the code.
* It's not clear if we actually support version 2, see #25068. */
-#define PROTOVER_HSINTRO_V2 4
+#define PROTOVER_HS_INTRO_V2 3
-/* HSv2 Rend and HSDir protocol versions.
- * Hard-coded here, because they do not appear anywhere in the code. */
+/* HSv2 Rend and HSDir protocol versions. */
#define PROTOVER_HS_RENDEZVOUS_POINT_V2 1
- #define PROTOVER_HSDIR_V2 1
+ #define PROTOVER_HSDIR_V2 2
-/* DirCache, Desc, Microdesc, and Cons protocol versions.
- * Hard-coded here, because they do not appear anywhere in the code. */
+/* DirCache, Desc, Microdesc, and Cons protocol versions. */
#define PROTOVER_DIRCACHE_V1 1
#define PROTOVER_DIRCACHE_V2 2
1
0

[tor/release-0.4.5] Merge branch 'maint-0.4.5' into release-0.4.5
by dgoulet@torproject.org 18 Jan '22
by dgoulet@torproject.org 18 Jan '22
18 Jan '22
commit c2029e1da999fef10452f28a55fd6a44da670da3
Merge: 6470aed5ae aac5731f86
Author: David Goulet <dgoulet(a)torproject.org>
Date: Tue Jan 18 13:12:35 2022 -0500
Merge branch 'maint-0.4.5' into release-0.4.5
changes/ticket40509 | 4 ++++
src/core/or/protover.c | 4 ++--
src/test/test_protover.c | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
1
0