tor-commits
Threads by month
- ----- 2026 -----
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- 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
- 1 participants
- 216171 discussions
[translation/gettor_completed] Update translations for gettor_completed
by translation@torproject.org 17 Apr '13
by translation@torproject.org 17 Apr '13
17 Apr '13
commit 70c374dc632bc8fe2eb47c8279e63c55d146170b
Author: Translation commit bot <translation(a)torproject.org>
Date: Wed Apr 17 16:45:10 2013 +0000
Update translations for gettor_completed
---
ar/gettor.po | 84 +++++++++++++++++++++++++++++-----------------------------
1 files changed, 42 insertions(+), 42 deletions(-)
diff --git a/ar/gettor.po b/ar/gettor.po
index 1bce750..19b6703 100644
--- a/ar/gettor.po
+++ b/ar/gettor.po
@@ -20,7 +20,7 @@ msgstr ""
"Project-Id-Version: The Tor Project\n"
"Report-Msgid-Bugs-To: https://trac.torproject.org/projects/tor\n"
"POT-Creation-Date: 2013-01-19 13:40+0100\n"
-"PO-Revision-Date: 2013-04-17 14:58+0000\n"
+"PO-Revision-Date: 2013-04-17 16:44+0000\n"
"Last-Translator: Sherief <sheriefalaa.w(a)gmail.com>\n"
"Language-Team: LANGUAGE <LL(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -62,7 +62,7 @@ msgstr "(نعتذر إذا لم تطلب هذا البريد. حيث ان مزو
msgid ""
"If you have any questions or it doesn't work, you can contact a\n"
"human at this support email address: help(a)rt.torproject.org"
-msgstr "اذا كانت لديك أي أسئلة، يمكنك مراسله فريق الدعم الفني على:\n\nhelp@rt.torproject.org"
+msgstr "اذا كانت لديك آي أسئلة، يمكنك مراسله فريق الدعم الفني على:\n\nhelp@rt.torproject.org"
#: lib/gettor/i18n.py:46
msgid ""
@@ -86,7 +86,7 @@ msgstr "سأرسل لك رزمة من برنامج تور اذا اخبرتني
msgid ""
"Please reply to this mail, and tell me a single package name anywhere \n"
"in the body of your email."
-msgstr "الرجاء الإجابة على هذا البريد، وأخبرني باسم رزمة واحدة فقط في اي مكان في نص رسالتك."
+msgstr "الرجاء الرد على هذا البريد، وأخبرني باسم رزمة واحدة فقط في اي مكان في نص رسالتك."
#: lib/gettor/i18n.py:64
msgid ""
@@ -107,11 +107,11 @@ msgid ""
"This example will give you the requested package in a localized\n"
"version for Farsi (Persian). Check below for a list of supported language\n"
"codes. "
-msgstr "هذا المثال سيرسل لك النسخة مترجمة للفارسية (إيراني). راجع القائمة أدناه لرموز اللغات المدعومة."
+msgstr "هذا المثال سيرسل لك النسخة مترجمة للفارسية (إيراني). راجع القائمة أدناه لرموز اللغات الآخري المدعومة."
#: lib/gettor/i18n.py:76
msgid " List of supported locales:"
-msgstr "قائمة اللغات المعتمدة :"
+msgstr "قائمة اللغات المدعومة:"
#: lib/gettor/i18n.py:78
msgid "Here is a list of all available languages:"
@@ -134,7 +134,7 @@ msgstr "gettor+ar(a)torproject.org: العربية\ngettor+de(a)torproject.org: ال
#: lib/gettor/i18n.py:92
msgid "If you select no language, you will receive the English version."
-msgstr "إذا لم تقوم بتحديد أي لغة ، سوف تتلقى النسخة الإنجليزية."
+msgstr "إذا لم تقوم بتحديد آي لغة ، سوف تتسلم النسخة الإنجليزية."
#: lib/gettor/i18n.py:94
msgid ""
@@ -147,7 +147,7 @@ msgid ""
"If your bandwith is low or your provider doesn't allow you to\n"
"receive large attachments in your email, GetTor can send you several\n"
"small packages instead of one big one."
-msgstr "إن كانت سرعة الإنترنت لديك بطيئة أو كان مزود الخدمة لديك لا يسمح باستقبال مرفقات كبيرة في الرسائل، يمكن لـ\"GetTor \" أن يرسل لك مجموعة من الملفات الصغيرة عوضاً عن ملف واحد كبير."
+msgstr "اذا كانت سرعة الإنترنت لديك بطيئة أو مزود الخدمة لديك لا يسمح باستقبال مرفقات كبيرة في الرسائل، يمكن لـ\"GetTor \" أن يرسل لك مجموعة من الملفات الصغيرة عوضاً عن ملف واحد كبير."
#: lib/gettor/i18n.py:101
msgid ""
@@ -156,13 +156,13 @@ msgid ""
" \n"
" windows\n"
" split"
-msgstr "ببساطة أضف الكلمة \"split\" لوحدها في سطر مستقل (هذا الجزء مهم)، مثال:\n\n windows\n split"
+msgstr "ببساطة أضف الكلمة 'split' لوحدها في سطر مستقل (هذا الجزء مهم!)، مثال:\n\n windows\n split"
#: lib/gettor/i18n.py:107
msgid ""
"Sending this text in an email to GetTor will cause it to send you \n"
"the Tor Browser Bundle in a number of 1,4MB attachments."
-msgstr "إرسال هذا النص في بريد إلكتروني إلى GetTor سيؤدي إلى إرسال\n لكم حزمة متصفح تور في عدد من المرفقات 1،4 ميجابايت."
+msgstr "إرسال هذا النص في بريد إلكتروني إلى 'GetTor' سيؤدي إلى إرسال\n لكم حزمة متصفح تور في عدد من المرفقات 1،4 ميجابايت."
#: lib/gettor/i18n.py:110
msgid ""
@@ -179,27 +179,27 @@ msgid ""
"2.) Unzip all files ending in \".z\". If you saved all attachments to\n"
"a fresh folder before, simply unzip all files in that folder. If you don't\n"
"know how to unzip the .z files, please see the UNPACKING THE FILES section."
-msgstr "2- قم بفك ضغط كل الملفات ذات اللاحقة \".z\". إن قمت بحفظ الملفات في مجلد جديد، قم ببساطة بفك ضغط كل الملفات في ذاك المجلد. إن كنت لا تعرف كيف تفك ضغط الملفات .z، قم بمراجعة الفقرة \"فك ضغط الملفات\"."
+msgstr "2- قم بفك ضغط كل الملفات ذات اللاحقة \"z.\". إذا قمت بحفظ الملفات في مجلد جديد، قم ببساطة بفك ضغط كل الملفات في ذاك المجلد. إذا كنت لا تعرف كيف تفك ضغط الملفات z. ، الرجاء قم بمراجعة فقرة \"فك ضغط الملفات\"."
#: lib/gettor/i18n.py:119
msgid ""
"3.) Verify all files as described in the mail you received with \n"
"each package. (gpg --verify)"
-msgstr "3.) تحقق من أن كل الملفات الموضحة في البريد الذي تلقيته مع\nكل حزمة. (gpg --verify)"
+msgstr "3.) تحقق من أن كل الملفات الموضحة في البريد الذي استلمته مع\nكل حزمة. (gpg --verify)"
#: lib/gettor/i18n.py:122
msgid ""
"4.) Now unpack the multi-volume archive into one file by double-\n"
"clicking the file ending in \"..split.part01.exe\". This should start the \n"
"process automatically."
-msgstr "4-) الآن قم بفك ضغط الأرشيف متعدد الملفات بالضغط المزدوج على هذا الملف \".split.part01.exe\". من المفترض بدء هذه العملية بشكل آلي."
+msgstr "4-) الآن قم بفك ضغط الأرشيف متعدد الملفات إلي ملف واحد عن طريق الضغط المزدوج على هذا الملف \".split.part01.exe\". من المفترض بدء هذه العملية بشكل آلي."
#: lib/gettor/i18n.py:126
msgid ""
"5.) After unpacking is finished, you should find a newly created \n"
"\".exe\" file in your destination folder. Simply doubleclick\n"
"that and Tor Browser Bundle should start within a few seconds."
-msgstr "5) بعد الانتهاء من فك الحزم، يمكنك العثور على ملف جديد\nملف \".exe\" في مجلد الوجه. إضغط مرتين\n على الملف سيبدأ متصفح تور في غضون ثوان قليلة."
+msgstr "5) بعد الانتهاء من فك ضغط الملفات، يمكنك العثور على ملف \".exe\" جديد في مجلد الوجه. إضغط مرتين\n على الملف سيبدأ متصفح تور في غضون ثوان قليلة."
#: lib/gettor/i18n.py:130
msgid "6.) That's it. You're done. Thanks for using Tor and have fun!"
@@ -209,13 +209,13 @@ msgstr "6.) هذا كل شيء. شكرا لاستخدام تور و تمتع ب
msgid ""
"SUPPORT\n"
"======="
-msgstr "الدعم الفني\n======"
+msgstr "الدعم\n==="
#: lib/gettor/i18n.py:138
msgid ""
"Here's your requested software as a zip file. Please unzip the\n"
"package and verify the signature."
-msgstr "هنا البرنامج الذي طلبته على شكل ملف مضغوط. لطفاً, قم بفك ضغط \nالحزمة و تحقق من التوقيع."
+msgstr "هذا هو البرنامج الذي طلبته على شكل ملف مضغوط. لطفاً, قم بفك ضغط \nالرزمة و تحقق من التوقيع."
#: lib/gettor/i18n.py:141
msgid ""
@@ -225,7 +225,7 @@ msgid ""
"tool as follows after unpacking the zip file:\n"
"\n"
" gpg --verify tor-browser-1.3.24_en-US.exe.asc tor-browser-1.3.24_en-US.exe"
-msgstr "التأكد من التوقيع\n=========\nإن كان حاسبك يحوي غنو بي جي، قم باستخدام الأمر gpg بالشكل التالي بعد فك ضغط ملف zip:\n\n gpg --verify tor-browser-1.3.24_en-US.exe.asc tor-browser-1.3.24-en-US.exe"
+msgstr "التأكد من التوقيع\n=========\nإن كان حاسبك يوجد به 'GnuPG' مثبت، قم باستخدام الأمر gpg بالشكل التالي بعد فك ضغط الملف:\n\n gpg --verify tor-browser-1.3.24_en-US.exe.asc tor-browser-1.3.24-en-US.exe"
#: lib/gettor/i18n.py:148
msgid ""
@@ -240,7 +240,7 @@ msgid ""
"a graphical user interface for GnuPG on this website:\n"
"\n"
" http://www.gnupg.org/related_software/frontends.html"
-msgstr "إن لم تكن معتاداً على استخدام أدوات سطر الأوامر، حاول البحث عن\nواجهة رسومية لغنو بي جي على هذا الموقع:\n\nhttp://www.gnupg.org/related_software/frontends.html"
+msgstr "إن لم تكن معتاداً على استخدام أدوات سطر الأوامر، حاول البحث عن\nواجهة رسومية 'GnuPG' على هذا الموقع:\n\nhttp://www.gnupg.org/related_software/frontends.html"
#: lib/gettor/i18n.py:157
msgid ""
@@ -256,7 +256,7 @@ msgid ""
"is no complete public list of them, even if your ISP is filtering\n"
"connections to all the known Tor relays, they probably won't be able\n"
"to block all the bridges."
-msgstr "في حالة ان اتصالك بلإنترنت يمنع الوصول إلى شبكة تور ، قد تحتاج\nإلى جسر مرحّل. الجسور المرحّله (أو \"جسور\" للاختصار)\nهي جسور تور التي لم تسرد في الدليل الرئيسي. حيث لا توجد قائمة عامة كاملة منهم، \nحتى لو كان مزودك بخدمة الإنترنت يصفي جميع الأتصالات لمرحّلات تور\nالمعروفة ، هم في الغالب لن يستطيعوا منع كل الجسور."
+msgstr "في حالة أن اتصالك بالإنترنت يمنع الوصول إلى شبكة تور ، قد تحتاج\nإلى جسر مرحّل. الجسور المرحّله (أو \"الجسور\" للاختصار)\nهي جسور تور التي لم تسرد في الدليل الرئيسي. حيث لا توجد قائمة عامة كاملة منهم، \nحتى لو كان مزودك بخدمة الإنترنت يصفي جميع الاتصالات لمرحّلات تور\nالمعروفة ، هم في الغالب لن يستطيعوا منع كل الجسور."
#: lib/gettor/i18n.py:167
msgid ""
@@ -264,20 +264,20 @@ msgid ""
"in the body of the email to the following email address:\n"
"\n"
" bridges(a)torproject.org"
-msgstr "يمكنك الحصول على جسر بإرسال بريد يحوي \"get bridges\"\nفي قلب البريد وعنونه للبريد التالي:\n\nbridges@torproject.org"
+msgstr "يمكنك الحصول على جسر بإرسال بريد يحوي \"get bridges\"\nفي قلب الرسالة إلي البريد التالي:\n\nbridges@torproject.org"
#: lib/gettor/i18n.py:172
msgid ""
"It is also possible to fetch bridges with a web browser at the following\n"
"url: https://bridges.torproject.org/"
-msgstr "من الممكن أيضا الحصول علي الجسور من متصفح الإنترنت على العنوان التالي:\nurl: https://bridges.torproject.org/"
+msgstr "من الممكن أيضاً الحصول علي الجسور من متصفح الإنترنت على العنوان التالي:\nurl: https://bridges.torproject.org/"
#: lib/gettor/i18n.py:175
msgid ""
"Another censorship circumvention tool you can request from GetTor is\n"
"the Tor Obfsproxy Browser Bundle. Please read the package descriptions for\n"
"which package you should request to receive this."
-msgstr "أداة أخرى لتخطي الحجب والرقابة يمكنك طلبها من تور هي حزمة متصفح تور لتوصيل النقل. فضلاً اقرأ تفاصيل الحزمة لمعرفة أي نسخة يجب ان تطلب."
+msgstr "أداة أخرى لتخطي الحجب والرقابة يمكنك طلبها من تور هي حزمة متصفح تور لتوصيل النقل. فضلاً اقرأ تفاصيل الرزمة لمعرفة آي رزمة يجب ان تطلب."
#: lib/gettor/i18n.py:179
msgid ""
@@ -286,32 +286,32 @@ msgid ""
"all split files to be received by you before you can save them all\n"
"into the same directory and unpack them by double-clicking the\n"
"first file."
-msgstr "ملاحظة هامة:\nبما أن هذا هو جزء من طلب تقسيم الملف، قبل ان تخفظ جميع الملفات المقسمة\nيجب ان تنتظر ان تصلك كلها و بعد استلامك جميع الملفات اجمعها في دليل واحد\nثم أنقر مرتين علي الملف الأول."
+msgstr "ملاحظة هامة:\nبما أن هذا هو جزء من طلب تقسيم الملف،\nيجب ان تنتظر إلي ان تصلك جميع الملفات المقسمة حتي تجمعها في دليل واحد و تستطيع فك تغطهم إذا ضغط\n مرتين علي الملف الأول."
#: lib/gettor/i18n.py:185
msgid ""
"Packages might arrive out of order! Please make sure you received\n"
"all packages before you attempt to unpack them!"
-msgstr "قد تصلك الحزم غير مرتبة! الرجاء التأكد من إستقبال كافة الحزم\nقبل محاولة فكها!"
+msgstr "قد تصلك الحزم غير مرتبة! الرجاء التأكد من استلام كافة الحزم\nقبل محاولة فكها!"
#: lib/gettor/i18n.py:188
#, python-format
msgid ""
"It was successfully understood. Your request is currently being processed.\n"
"Your package (%s) should arrive within the next ten minutes."
-msgstr "تم الفهم بنجاح. تتم حالياً معالجة طلبك. ستصلك حزمتك (%s) خلال الدقائق العشر التالية."
+msgstr "تم الفهم بنجاح. تتم حالياً معالجة طلبك. ستصلك رزمتك (%s) خلال الدقائق العشر التالية."
#: lib/gettor/i18n.py:191
msgid ""
"If it doesn't arrive, the package might be too big for your mail provider.\n"
"Try resending the mail from a GMAIL.COM, YAHOO.CN or YAHOO.COM account."
-msgstr "إن لم تصل، لا بد أن الحزمة أكبر مما يسمح به مزود بريدك.\nحاول أن تعيد إرسال الرسالة من حساب بريد من GMAIL.COM، YAHOO.CN أو YAHOO.COM."
+msgstr "قد لا تصلك الرزمة، وقد يكون السبب انها اكبر مما يسمح به مزود بريدك الإلكتروني.\nحاول أن تعيد إرسال الرسالة من حساب بريد من GMAIL.COM، YAHOO.CN أو YAHOO.COM."
#: lib/gettor/i18n.py:194
msgid ""
"Unfortunately we are currently experiencing problems and we can't fulfill\n"
"your request right now. Please be patient as we try to resolve this issue."
-msgstr "للأسف نعاني حاليا من مشاكل ونحن لا نستطيع تلبية طلبك في الوقت الحالي.\nيرجى التحلي بالصبر حتى نحل هذه المشكلة."
+msgstr "للأسف نعاني حاليا من مشاكل ونحن لا نستطيع تلبية طلبك في الوقت الحالي.\nيرجى التحلي بالصبر ونحن نحاول حل هذه المشكلة."
#: lib/gettor/i18n.py:197
msgid ""
@@ -319,7 +319,7 @@ msgid ""
"requested. Please send us another package name or request the same package \n"
"again, but remove the 'split' keyword. In that case we'll send you the whole \n"
"package. Make sure this is what you want."
-msgstr "لسوء الحظ لا توجد أية حزمة مقسمة متاحة للحزمة الذي طلبتها.\nالرجاء ارسال لنا اسم حزمة اخرى أو اعد طلب الحزمة نفسها مرة أخرى\n، ولكن أحذف كلمة 'split'. وفي هذه الحالة سوف نرسل لك الحزمة كاملة. تأكد من أن هذا هو ما تريد."
+msgstr "لسوء الحظ لا توجد اي رزمة مقسمة متاحة للرزمة التي طلبتها.\nالرجاء ارسال لنا اسم رزمة اخرى أو اعد طلب الرزمة نفسها مرة أخرى\n، ولكن أحذف كلمة 'split'. وفي هذه الحالة سوف نرسل لك الرزمة كاملة. تأكد من أن هذا هو ما تريد."
#: lib/gettor/i18n.py:202
msgid ""
@@ -334,13 +334,13 @@ msgid ""
"your computer yet, you can download it here:\n"
"\n"
" http://www.7-zip.org/"
-msgstr "أسهل طريقة لفتح الملفات التي حملتها هي باستخدام برنامج 7-Zip\nو هو برنامج مجاني لفك ضغط الملفات. إذا لم يكن مثبت اصلاً \nعلي جهازك, يمكنك تحميله من هنا:\n\nhttp://www.7-zip.org/"
+msgstr "أسهل طريقة لفك ضغط الملفات التي استلمتها هي باستخدام برنامج 7-Zip\nو هو برنامج مجاني لفك ضغط الملفات. إذا لم يكن مثبت اصلاً \nعلي جهازك، يمكنك تحميل هذا البرنامج من هنا:\n\nhttp://www.7-zip.org/"
#: lib/gettor/i18n.py:211
msgid ""
"When 7-Zip is installed, you can open the .z archive you received from\n"
"us by double-clicking on it."
-msgstr "عندما ينتهي 7-zip من تثبيت نفسه, تستطيع أن تفتح ملف .z المضغوط الذي تسلمته منا بالنقر المضاعف عليه."
+msgstr "عندما ينتهي 7-zip من تثبيت نفسه، تستطيع أن تفتح ملف .z المضغوط الذي تسلمته منا بالنقر المضاعف عليه."
#: lib/gettor/i18n.py:214
msgid ""
@@ -354,7 +354,7 @@ msgstr "أحد الطرق البديلة لفك ضغط ملفات بصيغة z.
msgid ""
"Please reply to this mail, and tell me a single package name anywhere\n"
"in your reply. Here's a short explanation of what these packages are:"
-msgstr "يرجى الرد على هذه الرسالة البريدية، و أعطني اسم حزمة واحدة في اي اي مكان\nفي مضمون الرسالة. هذا شرح بسيط عن ماهية هذه الحزم:"
+msgstr "يرجى الرد على هذه الرسالة البريدية، و أعطني اسم رزمة واحدة في اي مكان\nفي مضمون الرسالة. هذا شرح بسيط عن ماهية هذه الرزم:"
#: lib/gettor/i18n.py:222
msgid ""
@@ -362,14 +362,14 @@ msgid ""
"The Tor Browser Bundle package for Windows operating systems. If you're \n"
"running some version of Windows, like Windows XP, Windows Vista or \n"
"Windows 7, this is the package you should get."
-msgstr "ويندوز:\nحزمة متصفح تور لنظام تشغيل ويندوز.\nلا يهم بأي نسخة من ويندوز تستعمل xp, 7 أو ڤيستا, هذه هي الحزمة الذي من المفترض ان تستخدمها."
+msgstr "windows:\nحزمة متصفح تور لنظام تشغيل ويندوز.\nتعمل هذه الرزمة علي نسخ ويندوز اكس بي, 7 أو ڤيستا."
#: lib/gettor/i18n.py:227
msgid ""
"macos-i386:\n"
"The Tor Browser Bundle package for OS X, Intel CPU architecture. In \n"
"general, newer Mac hardware will require you to use this package."
-msgstr "ماكنتوش-انتل i386 :\nحزمة متصفح تور للماكنتوش, معالج انتل. بشكل\nعام, اجهزة الماك الجديدة سوف تطلب منك استخدام هذه الحزمة."
+msgstr "macos-i386:\nحزمة متصفح تور للماكنتوش, معالج انتل. بشكل\nعام, اجهزة الماك الجديدة سوف تطلب منك استخدام هذه الرزمة."
#: lib/gettor/i18n.py:231
msgid ""
@@ -388,7 +388,7 @@ msgstr "linux-i386:\nحزمة متصفح تور لنظام لينكس 32بت."
msgid ""
"Note that this package is rather large and needs your email provider to \n"
"allow for attachments of about 30MB in size."
-msgstr " لاحظ بأن هذه الحزمة حجمها كبير و تحتاج الى مزود خدمة الايميل لديك بالسماح بمرفقات للايميل بحجم 30 ميغابايت تقريباً."
+msgstr " لاحظ بأن هذه الحزمة حجمها كبير و تحتاج الى مزود خدمة البريد الالكتروني لديك بالسماح بمرفقات بحجم 30 ميجابايت تقريباً."
#: lib/gettor/i18n.py:241
msgid ""
@@ -403,14 +403,14 @@ msgid ""
"strong censorship circumvention and you are running some version of the \n"
"Windows, like Windows XP, Windows Vista or Windows 7, this is the package\n"
"you should get."
-msgstr "obfs-windows:\nنسخة متصفح تور لتوصيل النقل لنظام الوندوز. اذا كنت تريد قدرة عالية لتخطي الحجب و الرقابة ولديك واحد من انظمة ويندوز مثل ڤيستا, اكس بي او 7، قم بتنزيل هذه النسخة."
+msgstr "obfs-windows:\nنسخة متصفح تور لتوصيل النقل لنظام الوندوز. اذا كنت تريد قدرة عالية لتخطي الحجب و الرقابة ولديك واحد من انظمة ويندوز مثل ڤيستا, اكس بي او 7، قم بتنزيل هذه الرزمة."
#: lib/gettor/i18n.py:250
msgid ""
"obfs-macos-i386:\n"
"The Tor Obfsproxy Browser Bundle package for OS X, 32bit Intel CPU \n"
"architecture."
-msgstr "obfs-macos-i386:\nنسخة متصفح تور لتوصيل النقل لنظام الماك نسخة 32بت. "
+msgstr "obfs-macos-i386:\nحزمة متصفح تور لتوصيل النقل لنظام الماك نسخة 32بت. "
#: lib/gettor/i18n.py:254
msgid ""
@@ -424,14 +424,14 @@ msgid ""
"obfs-linux-i386:\n"
"The Tor Obfsproxy Browser Bundle package for Linux, 32bit Intel CPU \n"
"architecture."
-msgstr "obfs-linux-i386:\nنسخة متصفح تور لتوصيل النقل لنظام لينكس نسخة 32بت. "
+msgstr "obfs-linux-i386:\nحزمة متصفح تور لتوصيل النقل لنظام لينكس نسخة 32بت. "
#: lib/gettor/i18n.py:262
msgid ""
"obfs-linux-x86_64:\n"
"The Tor Obfsproxy Browser Bundle package for Linux, 64bit Intel CPU \n"
"architecture."
-msgstr "obfs-linux-x86_64:\nنسخة متصفح تور لتوصيل النقل لنظام لينكس نسخة 64بت. "
+msgstr "obfs-linux-x86_64:\nحزمة متصفح تور لتوصيل النقل لنظام لينكس نسخة 64بت. "
#: lib/gettor/i18n.py:266
msgid ""
@@ -464,7 +464,7 @@ msgid ""
"Tor network. You can read more about how Tor works here:\n"
"\n"
" https://www.torproject.org/about/overview.html.en"
-msgstr "برنامج تور هو برنامج تستطيع تشغيله على جهاز الكمبيوتر وهو يساعدك علي البقاء آمناً على الانترنت. يحميك تور عن طريق تحويل اتصالاتك إلي شبكة موزعة من المرحّلات والتي يتم تشغيلها من قبل متطوعين حول العالم: هو يمنع أي شخص من مراقبة اتصالك و معرفة المواقع التي تزورها، و ايضاً يمنع المواقع من معرفة موقعك الجغرافي. تسمي تلك المجموعة من المرحّلات المدعومة من المتطوعين بشبكة تور. تستطيع قراءة المزيد عن كيفية عمل تور هنا: \n\nhttps://www.torproject.org/about/overview.html.en"
+msgstr "برنامج تور هو برنامج تستطيع تشغيله على جهاز الكمبيوتر وهو يساعدك علي البقاء آمناً على الانترنت. يحميك تور عن طريق تحويل اتصالاتك إلي شبكة موزعة من المرحّلات والتي يتم تشغيلها من قبل متطوعين حول العالم: هو يمنع أي شخص من مراقبة اتصالك و معرفة المواقع التي تزورها، و ايضاً يمنع المواقع من معرفة موقعك الجغرافي. تسمي تلك المجموعة من المرحّلات المدعومة من المتطوعين بشبكة تور. تستطيع قراءة المزيد عن كيفية عمل تور هنا: \n\nhttps://www.torproject.org/about/overview.html.en"
#: lib/gettor/i18n.py:286
msgid "What is the Tor Browser Bundle?"
@@ -475,11 +475,11 @@ msgid ""
"The Browser Bundle (TBB) is the package we recommend to most users. \n"
"The bundle comes with everything you need to safely browse the Internet.\n"
"Just extract it and run."
-msgstr "حزمة متصفح تور (TBB) هي الحزمة التي ننصح بها لأغلب المستخدمين.\nتآتي الحزمة بكل ما تحتاجه لبحث شبكة الانترنت بأمان، فكل ما هو عليك انك تفك ضغط الحزمة و تشغلها."
+msgstr "حزمة متصفح تور (TBB) هي الرزمة التي ننصح بها لأغلب المستخدمين.\nتآتي الحزمة بكل ما تحتاجه لبحث شبكة الانترنت بأمان، فكل ما هو عليك انك تفك ضغط الرزمة و تشغلها."
#: lib/gettor/i18n.py:292
msgid "What package should I request?"
-msgstr "ماهي الحزم التي يجب علي طلبها؟"
+msgstr "ماهي الرزمة التي يجب علي طلبها؟"
#: lib/gettor/i18n.py:294
msgid ""
@@ -487,7 +487,7 @@ msgid ""
"operating system is Microsoft Windows, you should request \"windows\". Here\n"
"is a short explanation of all packages to request and what operating \n"
"systems there are suitable for:"
-msgstr "وهذا يعتمد على نظام التشغيل الذي تستخدمه. على سبيل المثال، إذا كان نظام التشغيل لديك هو مايكروسوفت ويندوز، يجب أن تطلب \"windows\". إليك شرحاً موجزاً عن كيفية طلب كافة الحزم ، وما هي نظم التشغيل التي تناسبها:"
+msgstr "وهذا يعتمد على نظام التشغيل الذي تستخدمه. على سبيل المثال، إذا كان نظام التشغيل لديك هو مايكروسوفت ويندوز، يجب أن تطلب \"windows\". إليك شرحاً موجزاً عن كيفية طلب كافة الرزم ، وما هي نظم التشغيل التي تناسبها:"
#: lib/gettor/i18n.py:299
msgid "How do I extract the file(s) you sent me?"
@@ -511,4 +511,4 @@ msgid ""
" https://www.oignon.net/dist/torbrowser/\n"
" https://tor.beme-it.de/dist/torbrowser/\n"
" https://www.torservers.net/mirrors/torproject.org/dist/torbrowser/"
-msgstr "عفواً، و لكن الحزمة التي طلبتها (%s) آكبر من الحجم المسموح به من مزود البريد لديك. \n\nحاول استخدم مزود بريد يسمح بإضافات أكبر حجماً بالبريد، أو جرب هذه الروابط البديلة للتحميل:\n\nhttps://www.oignon.net/dist/torbrowser/\n\nhttps://tor.beme-it.… https://www.torservers.net/mirrors/torproject.org/dist/torbrowser/"
+msgstr "عفواً، و لكن الرزمة التي طلبتها (%s) آكبر من الحجم المسموح به من مزود البريد لديك. \n\nحاول استخدم مزود بريد يسمح بإضافات أكبر حجماً بالبريد، أو جرب هذه الروابط البديلة للتحميل:\n\n https://www.oignon.net/dist/torbrowser/\n https://tor.beme-it.de/dist/torbrowser/\n https://www.torservers.net/mirrors/torproject.org/dist/torbrowser/"
1
0
17 Apr '13
commit fbdbad0632f6f962a153028c2b8b17d307124e31
Author: Translation commit bot <translation(a)torproject.org>
Date: Wed Apr 17 16:45:07 2013 +0000
Update translations for gettor
---
ar/gettor.po | 84 +++++++++++++++++++++++++++++-----------------------------
1 files changed, 42 insertions(+), 42 deletions(-)
diff --git a/ar/gettor.po b/ar/gettor.po
index 1bce750..19b6703 100644
--- a/ar/gettor.po
+++ b/ar/gettor.po
@@ -20,7 +20,7 @@ msgstr ""
"Project-Id-Version: The Tor Project\n"
"Report-Msgid-Bugs-To: https://trac.torproject.org/projects/tor\n"
"POT-Creation-Date: 2013-01-19 13:40+0100\n"
-"PO-Revision-Date: 2013-04-17 14:58+0000\n"
+"PO-Revision-Date: 2013-04-17 16:44+0000\n"
"Last-Translator: Sherief <sheriefalaa.w(a)gmail.com>\n"
"Language-Team: LANGUAGE <LL(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -62,7 +62,7 @@ msgstr "(نعتذر إذا لم تطلب هذا البريد. حيث ان مزو
msgid ""
"If you have any questions or it doesn't work, you can contact a\n"
"human at this support email address: help(a)rt.torproject.org"
-msgstr "اذا كانت لديك أي أسئلة، يمكنك مراسله فريق الدعم الفني على:\n\nhelp@rt.torproject.org"
+msgstr "اذا كانت لديك آي أسئلة، يمكنك مراسله فريق الدعم الفني على:\n\nhelp@rt.torproject.org"
#: lib/gettor/i18n.py:46
msgid ""
@@ -86,7 +86,7 @@ msgstr "سأرسل لك رزمة من برنامج تور اذا اخبرتني
msgid ""
"Please reply to this mail, and tell me a single package name anywhere \n"
"in the body of your email."
-msgstr "الرجاء الإجابة على هذا البريد، وأخبرني باسم رزمة واحدة فقط في اي مكان في نص رسالتك."
+msgstr "الرجاء الرد على هذا البريد، وأخبرني باسم رزمة واحدة فقط في اي مكان في نص رسالتك."
#: lib/gettor/i18n.py:64
msgid ""
@@ -107,11 +107,11 @@ msgid ""
"This example will give you the requested package in a localized\n"
"version for Farsi (Persian). Check below for a list of supported language\n"
"codes. "
-msgstr "هذا المثال سيرسل لك النسخة مترجمة للفارسية (إيراني). راجع القائمة أدناه لرموز اللغات المدعومة."
+msgstr "هذا المثال سيرسل لك النسخة مترجمة للفارسية (إيراني). راجع القائمة أدناه لرموز اللغات الآخري المدعومة."
#: lib/gettor/i18n.py:76
msgid " List of supported locales:"
-msgstr "قائمة اللغات المعتمدة :"
+msgstr "قائمة اللغات المدعومة:"
#: lib/gettor/i18n.py:78
msgid "Here is a list of all available languages:"
@@ -134,7 +134,7 @@ msgstr "gettor+ar(a)torproject.org: العربية\ngettor+de(a)torproject.org: ال
#: lib/gettor/i18n.py:92
msgid "If you select no language, you will receive the English version."
-msgstr "إذا لم تقوم بتحديد أي لغة ، سوف تتلقى النسخة الإنجليزية."
+msgstr "إذا لم تقوم بتحديد آي لغة ، سوف تتسلم النسخة الإنجليزية."
#: lib/gettor/i18n.py:94
msgid ""
@@ -147,7 +147,7 @@ msgid ""
"If your bandwith is low or your provider doesn't allow you to\n"
"receive large attachments in your email, GetTor can send you several\n"
"small packages instead of one big one."
-msgstr "إن كانت سرعة الإنترنت لديك بطيئة أو كان مزود الخدمة لديك لا يسمح باستقبال مرفقات كبيرة في الرسائل، يمكن لـ\"GetTor \" أن يرسل لك مجموعة من الملفات الصغيرة عوضاً عن ملف واحد كبير."
+msgstr "اذا كانت سرعة الإنترنت لديك بطيئة أو مزود الخدمة لديك لا يسمح باستقبال مرفقات كبيرة في الرسائل، يمكن لـ\"GetTor \" أن يرسل لك مجموعة من الملفات الصغيرة عوضاً عن ملف واحد كبير."
#: lib/gettor/i18n.py:101
msgid ""
@@ -156,13 +156,13 @@ msgid ""
" \n"
" windows\n"
" split"
-msgstr "ببساطة أضف الكلمة \"split\" لوحدها في سطر مستقل (هذا الجزء مهم)، مثال:\n\n windows\n split"
+msgstr "ببساطة أضف الكلمة 'split' لوحدها في سطر مستقل (هذا الجزء مهم!)، مثال:\n\n windows\n split"
#: lib/gettor/i18n.py:107
msgid ""
"Sending this text in an email to GetTor will cause it to send you \n"
"the Tor Browser Bundle in a number of 1,4MB attachments."
-msgstr "إرسال هذا النص في بريد إلكتروني إلى GetTor سيؤدي إلى إرسال\n لكم حزمة متصفح تور في عدد من المرفقات 1،4 ميجابايت."
+msgstr "إرسال هذا النص في بريد إلكتروني إلى 'GetTor' سيؤدي إلى إرسال\n لكم حزمة متصفح تور في عدد من المرفقات 1،4 ميجابايت."
#: lib/gettor/i18n.py:110
msgid ""
@@ -179,27 +179,27 @@ msgid ""
"2.) Unzip all files ending in \".z\". If you saved all attachments to\n"
"a fresh folder before, simply unzip all files in that folder. If you don't\n"
"know how to unzip the .z files, please see the UNPACKING THE FILES section."
-msgstr "2- قم بفك ضغط كل الملفات ذات اللاحقة \".z\". إن قمت بحفظ الملفات في مجلد جديد، قم ببساطة بفك ضغط كل الملفات في ذاك المجلد. إن كنت لا تعرف كيف تفك ضغط الملفات .z، قم بمراجعة الفقرة \"فك ضغط الملفات\"."
+msgstr "2- قم بفك ضغط كل الملفات ذات اللاحقة \"z.\". إذا قمت بحفظ الملفات في مجلد جديد، قم ببساطة بفك ضغط كل الملفات في ذاك المجلد. إذا كنت لا تعرف كيف تفك ضغط الملفات z. ، الرجاء قم بمراجعة فقرة \"فك ضغط الملفات\"."
#: lib/gettor/i18n.py:119
msgid ""
"3.) Verify all files as described in the mail you received with \n"
"each package. (gpg --verify)"
-msgstr "3.) تحقق من أن كل الملفات الموضحة في البريد الذي تلقيته مع\nكل حزمة. (gpg --verify)"
+msgstr "3.) تحقق من أن كل الملفات الموضحة في البريد الذي استلمته مع\nكل حزمة. (gpg --verify)"
#: lib/gettor/i18n.py:122
msgid ""
"4.) Now unpack the multi-volume archive into one file by double-\n"
"clicking the file ending in \"..split.part01.exe\". This should start the \n"
"process automatically."
-msgstr "4-) الآن قم بفك ضغط الأرشيف متعدد الملفات بالضغط المزدوج على هذا الملف \".split.part01.exe\". من المفترض بدء هذه العملية بشكل آلي."
+msgstr "4-) الآن قم بفك ضغط الأرشيف متعدد الملفات إلي ملف واحد عن طريق الضغط المزدوج على هذا الملف \".split.part01.exe\". من المفترض بدء هذه العملية بشكل آلي."
#: lib/gettor/i18n.py:126
msgid ""
"5.) After unpacking is finished, you should find a newly created \n"
"\".exe\" file in your destination folder. Simply doubleclick\n"
"that and Tor Browser Bundle should start within a few seconds."
-msgstr "5) بعد الانتهاء من فك الحزم، يمكنك العثور على ملف جديد\nملف \".exe\" في مجلد الوجه. إضغط مرتين\n على الملف سيبدأ متصفح تور في غضون ثوان قليلة."
+msgstr "5) بعد الانتهاء من فك ضغط الملفات، يمكنك العثور على ملف \".exe\" جديد في مجلد الوجه. إضغط مرتين\n على الملف سيبدأ متصفح تور في غضون ثوان قليلة."
#: lib/gettor/i18n.py:130
msgid "6.) That's it. You're done. Thanks for using Tor and have fun!"
@@ -209,13 +209,13 @@ msgstr "6.) هذا كل شيء. شكرا لاستخدام تور و تمتع ب
msgid ""
"SUPPORT\n"
"======="
-msgstr "الدعم الفني\n======"
+msgstr "الدعم\n==="
#: lib/gettor/i18n.py:138
msgid ""
"Here's your requested software as a zip file. Please unzip the\n"
"package and verify the signature."
-msgstr "هنا البرنامج الذي طلبته على شكل ملف مضغوط. لطفاً, قم بفك ضغط \nالحزمة و تحقق من التوقيع."
+msgstr "هذا هو البرنامج الذي طلبته على شكل ملف مضغوط. لطفاً, قم بفك ضغط \nالرزمة و تحقق من التوقيع."
#: lib/gettor/i18n.py:141
msgid ""
@@ -225,7 +225,7 @@ msgid ""
"tool as follows after unpacking the zip file:\n"
"\n"
" gpg --verify tor-browser-1.3.24_en-US.exe.asc tor-browser-1.3.24_en-US.exe"
-msgstr "التأكد من التوقيع\n=========\nإن كان حاسبك يحوي غنو بي جي، قم باستخدام الأمر gpg بالشكل التالي بعد فك ضغط ملف zip:\n\n gpg --verify tor-browser-1.3.24_en-US.exe.asc tor-browser-1.3.24-en-US.exe"
+msgstr "التأكد من التوقيع\n=========\nإن كان حاسبك يوجد به 'GnuPG' مثبت، قم باستخدام الأمر gpg بالشكل التالي بعد فك ضغط الملف:\n\n gpg --verify tor-browser-1.3.24_en-US.exe.asc tor-browser-1.3.24-en-US.exe"
#: lib/gettor/i18n.py:148
msgid ""
@@ -240,7 +240,7 @@ msgid ""
"a graphical user interface for GnuPG on this website:\n"
"\n"
" http://www.gnupg.org/related_software/frontends.html"
-msgstr "إن لم تكن معتاداً على استخدام أدوات سطر الأوامر، حاول البحث عن\nواجهة رسومية لغنو بي جي على هذا الموقع:\n\nhttp://www.gnupg.org/related_software/frontends.html"
+msgstr "إن لم تكن معتاداً على استخدام أدوات سطر الأوامر، حاول البحث عن\nواجهة رسومية 'GnuPG' على هذا الموقع:\n\nhttp://www.gnupg.org/related_software/frontends.html"
#: lib/gettor/i18n.py:157
msgid ""
@@ -256,7 +256,7 @@ msgid ""
"is no complete public list of them, even if your ISP is filtering\n"
"connections to all the known Tor relays, they probably won't be able\n"
"to block all the bridges."
-msgstr "في حالة ان اتصالك بلإنترنت يمنع الوصول إلى شبكة تور ، قد تحتاج\nإلى جسر مرحّل. الجسور المرحّله (أو \"جسور\" للاختصار)\nهي جسور تور التي لم تسرد في الدليل الرئيسي. حيث لا توجد قائمة عامة كاملة منهم، \nحتى لو كان مزودك بخدمة الإنترنت يصفي جميع الأتصالات لمرحّلات تور\nالمعروفة ، هم في الغالب لن يستطيعوا منع كل الجسور."
+msgstr "في حالة أن اتصالك بالإنترنت يمنع الوصول إلى شبكة تور ، قد تحتاج\nإلى جسر مرحّل. الجسور المرحّله (أو \"الجسور\" للاختصار)\nهي جسور تور التي لم تسرد في الدليل الرئيسي. حيث لا توجد قائمة عامة كاملة منهم، \nحتى لو كان مزودك بخدمة الإنترنت يصفي جميع الاتصالات لمرحّلات تور\nالمعروفة ، هم في الغالب لن يستطيعوا منع كل الجسور."
#: lib/gettor/i18n.py:167
msgid ""
@@ -264,20 +264,20 @@ msgid ""
"in the body of the email to the following email address:\n"
"\n"
" bridges(a)torproject.org"
-msgstr "يمكنك الحصول على جسر بإرسال بريد يحوي \"get bridges\"\nفي قلب البريد وعنونه للبريد التالي:\n\nbridges@torproject.org"
+msgstr "يمكنك الحصول على جسر بإرسال بريد يحوي \"get bridges\"\nفي قلب الرسالة إلي البريد التالي:\n\nbridges@torproject.org"
#: lib/gettor/i18n.py:172
msgid ""
"It is also possible to fetch bridges with a web browser at the following\n"
"url: https://bridges.torproject.org/"
-msgstr "من الممكن أيضا الحصول علي الجسور من متصفح الإنترنت على العنوان التالي:\nurl: https://bridges.torproject.org/"
+msgstr "من الممكن أيضاً الحصول علي الجسور من متصفح الإنترنت على العنوان التالي:\nurl: https://bridges.torproject.org/"
#: lib/gettor/i18n.py:175
msgid ""
"Another censorship circumvention tool you can request from GetTor is\n"
"the Tor Obfsproxy Browser Bundle. Please read the package descriptions for\n"
"which package you should request to receive this."
-msgstr "أداة أخرى لتخطي الحجب والرقابة يمكنك طلبها من تور هي حزمة متصفح تور لتوصيل النقل. فضلاً اقرأ تفاصيل الحزمة لمعرفة أي نسخة يجب ان تطلب."
+msgstr "أداة أخرى لتخطي الحجب والرقابة يمكنك طلبها من تور هي حزمة متصفح تور لتوصيل النقل. فضلاً اقرأ تفاصيل الرزمة لمعرفة آي رزمة يجب ان تطلب."
#: lib/gettor/i18n.py:179
msgid ""
@@ -286,32 +286,32 @@ msgid ""
"all split files to be received by you before you can save them all\n"
"into the same directory and unpack them by double-clicking the\n"
"first file."
-msgstr "ملاحظة هامة:\nبما أن هذا هو جزء من طلب تقسيم الملف، قبل ان تخفظ جميع الملفات المقسمة\nيجب ان تنتظر ان تصلك كلها و بعد استلامك جميع الملفات اجمعها في دليل واحد\nثم أنقر مرتين علي الملف الأول."
+msgstr "ملاحظة هامة:\nبما أن هذا هو جزء من طلب تقسيم الملف،\nيجب ان تنتظر إلي ان تصلك جميع الملفات المقسمة حتي تجمعها في دليل واحد و تستطيع فك تغطهم إذا ضغط\n مرتين علي الملف الأول."
#: lib/gettor/i18n.py:185
msgid ""
"Packages might arrive out of order! Please make sure you received\n"
"all packages before you attempt to unpack them!"
-msgstr "قد تصلك الحزم غير مرتبة! الرجاء التأكد من إستقبال كافة الحزم\nقبل محاولة فكها!"
+msgstr "قد تصلك الحزم غير مرتبة! الرجاء التأكد من استلام كافة الحزم\nقبل محاولة فكها!"
#: lib/gettor/i18n.py:188
#, python-format
msgid ""
"It was successfully understood. Your request is currently being processed.\n"
"Your package (%s) should arrive within the next ten minutes."
-msgstr "تم الفهم بنجاح. تتم حالياً معالجة طلبك. ستصلك حزمتك (%s) خلال الدقائق العشر التالية."
+msgstr "تم الفهم بنجاح. تتم حالياً معالجة طلبك. ستصلك رزمتك (%s) خلال الدقائق العشر التالية."
#: lib/gettor/i18n.py:191
msgid ""
"If it doesn't arrive, the package might be too big for your mail provider.\n"
"Try resending the mail from a GMAIL.COM, YAHOO.CN or YAHOO.COM account."
-msgstr "إن لم تصل، لا بد أن الحزمة أكبر مما يسمح به مزود بريدك.\nحاول أن تعيد إرسال الرسالة من حساب بريد من GMAIL.COM، YAHOO.CN أو YAHOO.COM."
+msgstr "قد لا تصلك الرزمة، وقد يكون السبب انها اكبر مما يسمح به مزود بريدك الإلكتروني.\nحاول أن تعيد إرسال الرسالة من حساب بريد من GMAIL.COM، YAHOO.CN أو YAHOO.COM."
#: lib/gettor/i18n.py:194
msgid ""
"Unfortunately we are currently experiencing problems and we can't fulfill\n"
"your request right now. Please be patient as we try to resolve this issue."
-msgstr "للأسف نعاني حاليا من مشاكل ونحن لا نستطيع تلبية طلبك في الوقت الحالي.\nيرجى التحلي بالصبر حتى نحل هذه المشكلة."
+msgstr "للأسف نعاني حاليا من مشاكل ونحن لا نستطيع تلبية طلبك في الوقت الحالي.\nيرجى التحلي بالصبر ونحن نحاول حل هذه المشكلة."
#: lib/gettor/i18n.py:197
msgid ""
@@ -319,7 +319,7 @@ msgid ""
"requested. Please send us another package name or request the same package \n"
"again, but remove the 'split' keyword. In that case we'll send you the whole \n"
"package. Make sure this is what you want."
-msgstr "لسوء الحظ لا توجد أية حزمة مقسمة متاحة للحزمة الذي طلبتها.\nالرجاء ارسال لنا اسم حزمة اخرى أو اعد طلب الحزمة نفسها مرة أخرى\n، ولكن أحذف كلمة 'split'. وفي هذه الحالة سوف نرسل لك الحزمة كاملة. تأكد من أن هذا هو ما تريد."
+msgstr "لسوء الحظ لا توجد اي رزمة مقسمة متاحة للرزمة التي طلبتها.\nالرجاء ارسال لنا اسم رزمة اخرى أو اعد طلب الرزمة نفسها مرة أخرى\n، ولكن أحذف كلمة 'split'. وفي هذه الحالة سوف نرسل لك الرزمة كاملة. تأكد من أن هذا هو ما تريد."
#: lib/gettor/i18n.py:202
msgid ""
@@ -334,13 +334,13 @@ msgid ""
"your computer yet, you can download it here:\n"
"\n"
" http://www.7-zip.org/"
-msgstr "أسهل طريقة لفتح الملفات التي حملتها هي باستخدام برنامج 7-Zip\nو هو برنامج مجاني لفك ضغط الملفات. إذا لم يكن مثبت اصلاً \nعلي جهازك, يمكنك تحميله من هنا:\n\nhttp://www.7-zip.org/"
+msgstr "أسهل طريقة لفك ضغط الملفات التي استلمتها هي باستخدام برنامج 7-Zip\nو هو برنامج مجاني لفك ضغط الملفات. إذا لم يكن مثبت اصلاً \nعلي جهازك، يمكنك تحميل هذا البرنامج من هنا:\n\nhttp://www.7-zip.org/"
#: lib/gettor/i18n.py:211
msgid ""
"When 7-Zip is installed, you can open the .z archive you received from\n"
"us by double-clicking on it."
-msgstr "عندما ينتهي 7-zip من تثبيت نفسه, تستطيع أن تفتح ملف .z المضغوط الذي تسلمته منا بالنقر المضاعف عليه."
+msgstr "عندما ينتهي 7-zip من تثبيت نفسه، تستطيع أن تفتح ملف .z المضغوط الذي تسلمته منا بالنقر المضاعف عليه."
#: lib/gettor/i18n.py:214
msgid ""
@@ -354,7 +354,7 @@ msgstr "أحد الطرق البديلة لفك ضغط ملفات بصيغة z.
msgid ""
"Please reply to this mail, and tell me a single package name anywhere\n"
"in your reply. Here's a short explanation of what these packages are:"
-msgstr "يرجى الرد على هذه الرسالة البريدية، و أعطني اسم حزمة واحدة في اي اي مكان\nفي مضمون الرسالة. هذا شرح بسيط عن ماهية هذه الحزم:"
+msgstr "يرجى الرد على هذه الرسالة البريدية، و أعطني اسم رزمة واحدة في اي مكان\nفي مضمون الرسالة. هذا شرح بسيط عن ماهية هذه الرزم:"
#: lib/gettor/i18n.py:222
msgid ""
@@ -362,14 +362,14 @@ msgid ""
"The Tor Browser Bundle package for Windows operating systems. If you're \n"
"running some version of Windows, like Windows XP, Windows Vista or \n"
"Windows 7, this is the package you should get."
-msgstr "ويندوز:\nحزمة متصفح تور لنظام تشغيل ويندوز.\nلا يهم بأي نسخة من ويندوز تستعمل xp, 7 أو ڤيستا, هذه هي الحزمة الذي من المفترض ان تستخدمها."
+msgstr "windows:\nحزمة متصفح تور لنظام تشغيل ويندوز.\nتعمل هذه الرزمة علي نسخ ويندوز اكس بي, 7 أو ڤيستا."
#: lib/gettor/i18n.py:227
msgid ""
"macos-i386:\n"
"The Tor Browser Bundle package for OS X, Intel CPU architecture. In \n"
"general, newer Mac hardware will require you to use this package."
-msgstr "ماكنتوش-انتل i386 :\nحزمة متصفح تور للماكنتوش, معالج انتل. بشكل\nعام, اجهزة الماك الجديدة سوف تطلب منك استخدام هذه الحزمة."
+msgstr "macos-i386:\nحزمة متصفح تور للماكنتوش, معالج انتل. بشكل\nعام, اجهزة الماك الجديدة سوف تطلب منك استخدام هذه الرزمة."
#: lib/gettor/i18n.py:231
msgid ""
@@ -388,7 +388,7 @@ msgstr "linux-i386:\nحزمة متصفح تور لنظام لينكس 32بت."
msgid ""
"Note that this package is rather large and needs your email provider to \n"
"allow for attachments of about 30MB in size."
-msgstr " لاحظ بأن هذه الحزمة حجمها كبير و تحتاج الى مزود خدمة الايميل لديك بالسماح بمرفقات للايميل بحجم 30 ميغابايت تقريباً."
+msgstr " لاحظ بأن هذه الحزمة حجمها كبير و تحتاج الى مزود خدمة البريد الالكتروني لديك بالسماح بمرفقات بحجم 30 ميجابايت تقريباً."
#: lib/gettor/i18n.py:241
msgid ""
@@ -403,14 +403,14 @@ msgid ""
"strong censorship circumvention and you are running some version of the \n"
"Windows, like Windows XP, Windows Vista or Windows 7, this is the package\n"
"you should get."
-msgstr "obfs-windows:\nنسخة متصفح تور لتوصيل النقل لنظام الوندوز. اذا كنت تريد قدرة عالية لتخطي الحجب و الرقابة ولديك واحد من انظمة ويندوز مثل ڤيستا, اكس بي او 7، قم بتنزيل هذه النسخة."
+msgstr "obfs-windows:\nنسخة متصفح تور لتوصيل النقل لنظام الوندوز. اذا كنت تريد قدرة عالية لتخطي الحجب و الرقابة ولديك واحد من انظمة ويندوز مثل ڤيستا, اكس بي او 7، قم بتنزيل هذه الرزمة."
#: lib/gettor/i18n.py:250
msgid ""
"obfs-macos-i386:\n"
"The Tor Obfsproxy Browser Bundle package for OS X, 32bit Intel CPU \n"
"architecture."
-msgstr "obfs-macos-i386:\nنسخة متصفح تور لتوصيل النقل لنظام الماك نسخة 32بت. "
+msgstr "obfs-macos-i386:\nحزمة متصفح تور لتوصيل النقل لنظام الماك نسخة 32بت. "
#: lib/gettor/i18n.py:254
msgid ""
@@ -424,14 +424,14 @@ msgid ""
"obfs-linux-i386:\n"
"The Tor Obfsproxy Browser Bundle package for Linux, 32bit Intel CPU \n"
"architecture."
-msgstr "obfs-linux-i386:\nنسخة متصفح تور لتوصيل النقل لنظام لينكس نسخة 32بت. "
+msgstr "obfs-linux-i386:\nحزمة متصفح تور لتوصيل النقل لنظام لينكس نسخة 32بت. "
#: lib/gettor/i18n.py:262
msgid ""
"obfs-linux-x86_64:\n"
"The Tor Obfsproxy Browser Bundle package for Linux, 64bit Intel CPU \n"
"architecture."
-msgstr "obfs-linux-x86_64:\nنسخة متصفح تور لتوصيل النقل لنظام لينكس نسخة 64بت. "
+msgstr "obfs-linux-x86_64:\nحزمة متصفح تور لتوصيل النقل لنظام لينكس نسخة 64بت. "
#: lib/gettor/i18n.py:266
msgid ""
@@ -464,7 +464,7 @@ msgid ""
"Tor network. You can read more about how Tor works here:\n"
"\n"
" https://www.torproject.org/about/overview.html.en"
-msgstr "برنامج تور هو برنامج تستطيع تشغيله على جهاز الكمبيوتر وهو يساعدك علي البقاء آمناً على الانترنت. يحميك تور عن طريق تحويل اتصالاتك إلي شبكة موزعة من المرحّلات والتي يتم تشغيلها من قبل متطوعين حول العالم: هو يمنع أي شخص من مراقبة اتصالك و معرفة المواقع التي تزورها، و ايضاً يمنع المواقع من معرفة موقعك الجغرافي. تسمي تلك المجموعة من المرحّلات المدعومة من المتطوعين بشبكة تور. تستطيع قراءة المزيد عن كيفية عمل تور هنا: \n\nhttps://www.torproject.org/about/overview.html.en"
+msgstr "برنامج تور هو برنامج تستطيع تشغيله على جهاز الكمبيوتر وهو يساعدك علي البقاء آمناً على الانترنت. يحميك تور عن طريق تحويل اتصالاتك إلي شبكة موزعة من المرحّلات والتي يتم تشغيلها من قبل متطوعين حول العالم: هو يمنع أي شخص من مراقبة اتصالك و معرفة المواقع التي تزورها، و ايضاً يمنع المواقع من معرفة موقعك الجغرافي. تسمي تلك المجموعة من المرحّلات المدعومة من المتطوعين بشبكة تور. تستطيع قراءة المزيد عن كيفية عمل تور هنا: \n\nhttps://www.torproject.org/about/overview.html.en"
#: lib/gettor/i18n.py:286
msgid "What is the Tor Browser Bundle?"
@@ -475,11 +475,11 @@ msgid ""
"The Browser Bundle (TBB) is the package we recommend to most users. \n"
"The bundle comes with everything you need to safely browse the Internet.\n"
"Just extract it and run."
-msgstr "حزمة متصفح تور (TBB) هي الحزمة التي ننصح بها لأغلب المستخدمين.\nتآتي الحزمة بكل ما تحتاجه لبحث شبكة الانترنت بأمان، فكل ما هو عليك انك تفك ضغط الحزمة و تشغلها."
+msgstr "حزمة متصفح تور (TBB) هي الرزمة التي ننصح بها لأغلب المستخدمين.\nتآتي الحزمة بكل ما تحتاجه لبحث شبكة الانترنت بأمان، فكل ما هو عليك انك تفك ضغط الرزمة و تشغلها."
#: lib/gettor/i18n.py:292
msgid "What package should I request?"
-msgstr "ماهي الحزم التي يجب علي طلبها؟"
+msgstr "ماهي الرزمة التي يجب علي طلبها؟"
#: lib/gettor/i18n.py:294
msgid ""
@@ -487,7 +487,7 @@ msgid ""
"operating system is Microsoft Windows, you should request \"windows\". Here\n"
"is a short explanation of all packages to request and what operating \n"
"systems there are suitable for:"
-msgstr "وهذا يعتمد على نظام التشغيل الذي تستخدمه. على سبيل المثال، إذا كان نظام التشغيل لديك هو مايكروسوفت ويندوز، يجب أن تطلب \"windows\". إليك شرحاً موجزاً عن كيفية طلب كافة الحزم ، وما هي نظم التشغيل التي تناسبها:"
+msgstr "وهذا يعتمد على نظام التشغيل الذي تستخدمه. على سبيل المثال، إذا كان نظام التشغيل لديك هو مايكروسوفت ويندوز، يجب أن تطلب \"windows\". إليك شرحاً موجزاً عن كيفية طلب كافة الرزم ، وما هي نظم التشغيل التي تناسبها:"
#: lib/gettor/i18n.py:299
msgid "How do I extract the file(s) you sent me?"
@@ -511,4 +511,4 @@ msgid ""
" https://www.oignon.net/dist/torbrowser/\n"
" https://tor.beme-it.de/dist/torbrowser/\n"
" https://www.torservers.net/mirrors/torproject.org/dist/torbrowser/"
-msgstr "عفواً، و لكن الحزمة التي طلبتها (%s) آكبر من الحجم المسموح به من مزود البريد لديك. \n\nحاول استخدم مزود بريد يسمح بإضافات أكبر حجماً بالبريد، أو جرب هذه الروابط البديلة للتحميل:\n\nhttps://www.oignon.net/dist/torbrowser/\n\nhttps://tor.beme-it.… https://www.torservers.net/mirrors/torproject.org/dist/torbrowser/"
+msgstr "عفواً، و لكن الرزمة التي طلبتها (%s) آكبر من الحجم المسموح به من مزود البريد لديك. \n\nحاول استخدم مزود بريد يسمح بإضافات أكبر حجماً بالبريد، أو جرب هذه الروابط البديلة للتحميل:\n\n https://www.oignon.net/dist/torbrowser/\n https://tor.beme-it.de/dist/torbrowser/\n https://www.torservers.net/mirrors/torproject.org/dist/torbrowser/"
1
0
commit 3ba0e6571bd0593c547bf27dd702679e12f802ef
Author: Damian Johnson <atagar(a)torproject.org>
Date: Wed Apr 17 09:26:32 2013 -0700
Adding a :spec: role
Generalising our roles to also support a :spec: alias for torspec commits.
---
docs/change_log.rst | 4 ++-
docs/conf.py | 3 +-
docs/roles.py | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++
docs/trac.py | 72 -------------------------------------
4 files changed, 104 insertions(+), 74 deletions(-)
diff --git a/docs/change_log.rst b/docs/change_log.rst
index ff5dd21..d9fe02e 100644
--- a/docs/change_log.rst
+++ b/docs/change_log.rst
@@ -40,7 +40,8 @@ The following are only available within stem's `git repository
* **Controller**
- * :class:`~stem.response.events.AddrMapEvent` support for the new CACHED argument (:trac:`8596`, `spec <https://gitweb.torproject.org/torspec.git/commitdiff/25b0d43>`_)
+ * :class:`~stem.response.events.AddrMapEvent` support for the new CACHED argument (:trac:`8596`, :spec:`25b0d43`)
+ * :func:`~stem.control.Controller.attach_stream` could encounter an undocumented 555 response (:trac:`8701`, :spec:`7286576`)
* **Website**
@@ -48,6 +49,7 @@ The following are only available within stem's `git repository
improvements, most notably the addition of PyPI, FreeBSD, and RedHat.
* Replaced default sphinx header with a navbar menu.
* Added this change log.
+ * Added the `FAQ page <faq.html>`_.
* Settled on a `logo
<http://www.wpclipart.com/plants/assorted/P/plant_stem.png.html>`_ for
stem.
diff --git a/docs/conf.py b/docs/conf.py
index 074fd89..801ef91 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -26,7 +26,7 @@ needs_sphinx = '1.1' # required for the sphinx-apidoc command
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'trac']
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'roles']
autodoc_member_order = 'bysource'
autodoc_default_flags = ['members', 'show-inheritance', 'undoc-members']
@@ -230,3 +230,4 @@ man_pages = [
]
trac_url = 'https://trac.torproject.org'
+spec_url = 'https://gitweb.torproject.org/torspec.git/commitdiff'
diff --git a/docs/roles.py b/docs/roles.py
new file mode 100644
index 0000000..0130ea3
--- /dev/null
+++ b/docs/roles.py
@@ -0,0 +1,99 @@
+import re
+
+from docutils.utils import unescape
+from docutils.nodes import reference
+from docutils.parsers.rst.roles import set_classes
+
+
+def role_trac(name, rawtext, text, lineno, inliner, options={}, content=[]):
+ """
+ Aliases :trac:`1234` to 'https://trac.torproject.org/1234'.
+
+ :param name: the role name used in the document
+ :param rawtext: the entire markup snippet, with role
+ :param text: the text marked with the role
+ :param lineno: the line number where rawtext appears in the input
+ :param inliner: the inliner instance that called us
+ :param options: directive options for customization
+ :param content: the directive content for customization
+ """
+
+ # checking if the number is valid
+ try:
+ ticket_num = int(text)
+
+ if ticket_num <= 0:
+ raise ValueError
+ except ValueError:
+ msg = inliner.reporter.error(
+ 'Invalid trac ticket: %s' % text, line=lineno)
+ prb = inliner.problematic(rawtext, rawtext, msg)
+
+ return ([prb], [msg])
+
+ app = inliner.document.settings.env.app
+ link_text = 'ticket %s' % unescape(str(ticket_num))
+
+ return (
+ [make_link_node(rawtext, app, 'trac_url', link_text, str(ticket_num), options)],
+ [],
+ )
+
+
+def role_spec(name, rawtext, text, lineno, inliner, options={}, content=[]):
+ """
+ Aliases :spec:`25b0d43` to 'https://gitweb.torproject.org/torspec.git/commitdiff/25b0d43'.
+ """
+
+ # checking if the input is a valid short commit id
+
+ if not re.match('^[0-9a-f]{7}$', text):
+ msg = inliner.reporter.error(
+ 'Spec tag expects a short commit id (seven hex characters): %s' % text, line=lineno)
+ prb = inliner.problematic(rawtext, rawtext, msg)
+
+ return ([prb], [msg])
+
+ app = inliner.document.settings.env.app
+
+ return (
+ [make_link_node(rawtext, app, 'spec_url', 'spec', text, options)],
+ [],
+ )
+
+
+def make_link_node(rawtext, app, url_type, link_text, slug, options):
+ """
+ Creates a link to a trac ticket.
+
+ :param rawtext: text being replaced with link node
+ :param app: sphinx application context
+ :param url_type: base for our url
+ :param link_text: text for the link
+ :param slug: ID of the thing to link to
+ :param options: options dictionary passed to role func
+ """
+
+ base_url = getattr(app.config, url_type, None)
+
+ if not base_url:
+ raise ValueError("'%s' isn't set in our config" % url_type)
+
+ ref = base_url.rstrip('/') + '/' + slug
+ set_classes(options)
+
+ return reference(rawtext, link_text, refuri = ref, **options)
+
+
+def setup(app):
+ """
+ Installs the plugin.
+
+ :param app: sphinx application context
+ """
+
+ app.add_role('trac', role_trac)
+ app.add_config_value('trac_url', None, 'env')
+
+ app.add_role('spec', role_spec)
+ app.add_config_value('spec_url', None, 'env')
diff --git a/docs/trac.py b/docs/trac.py
deleted file mode 100644
index 7af5440..0000000
--- a/docs/trac.py
+++ /dev/null
@@ -1,72 +0,0 @@
-from docutils.utils import unescape
-from docutils.nodes import reference
-from docutils.parsers.rst.roles import set_classes
-
-
-def role_trac(name, rawtext, text, lineno, inliner, options={}, content=[]):
- """
- Returns two part tuple consisting of node and system messages. Both allowed
- to be empty.
-
- :param name: the role name used in the document
- :param rawtext: the entire markup snippet, with role
- :param text: the text marked with the role
- :param lineno: the line number where rawtext appears in the input
- :param inliner: the inliner instance that called us
- :param options: directive options for customization
- :param content: the directive content for customization
- """
-
- # checking if the number is valid
- try:
- ticket_num = int(text)
-
- if ticket_num <= 0:
- raise ValueError
- except ValueError:
- msg = inliner.reporter.error(
- 'Invalid trac ticket: %s' % (text), line=lineno)
- prb = inliner.problematic(rawtext, rawtext, msg)
-
- return ([prb], [msg])
-
- app = inliner.document.settings.env.app
-
- return (
- [make_link_node(rawtext, app, 'ticket', str(ticket_num), options)],
- [],
- )
-
-
-def make_link_node(rawtext, app, link_type, slug, options):
- """
- Creates a link to a trac ticket.
-
- :param rawtext: text being replaced with link node
- :param app: sphinx application context
- :param link_type: link type (issue, changeset, etc.)
- :param slug: ID of the thing to link to
- :param options: options dictionary passed to role func
- """
-
- trac_base_url = getattr(app.config, 'trac_url', None)
-
- if not trac_base_url:
- raise ValueError('trac_url is not set')
-
- ref = trac_base_url.rstrip('/') + '/' + slug
- set_classes(options)
- name = link_type + ' ' + unescape(slug) # sets the text to 'ticket 345'
-
- return reference(rawtext, name, refuri = ref, **options)
-
-
-def setup(app):
- """
- Installs the plugin.
-
- :param app: sphinx application context
- """
-
- app.add_role('trac', role_trac)
- app.add_config_value('trac_url', None, 'env')
1
0
[translation/liveusb-creator] Update translations for liveusb-creator
by translation@torproject.org 17 Apr '13
by translation@torproject.org 17 Apr '13
17 Apr '13
commit 0242e4c60bc35c9bbc9bee97da65b0ff78991b3e
Author: Translation commit bot <translation(a)torproject.org>
Date: Wed Apr 17 15:16:12 2013 +0000
Update translations for liveusb-creator
---
eu/eu.po | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/eu/eu.po b/eu/eu.po
index 9195d88..d9d0066 100644
--- a/eu/eu.po
+++ b/eu/eu.po
@@ -3,14 +3,14 @@
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
-# Antxon Baldarra <baldarra(a)euskalerria.org>, 2012.
-# <totorika93(a)gmail.com>, 2012.
+# Antxon Baldarra <baldarra(a)euskalerria.org>, 2012-2013
+# totorika93 <totorika93(a)gmail.com>, 2012
msgid ""
msgstr ""
"Project-Id-Version: The Tor Project\n"
"Report-Msgid-Bugs-To: https://trac.torproject.org/projects/tor\n"
"POT-Creation-Date: 2013-02-14 16:07+0100\n"
-"PO-Revision-Date: 2013-02-15 14:42+0000\n"
+"PO-Revision-Date: 2013-04-17 14:56+0000\n"
"Last-Translator: Antxon Baldarra <baldarra(a)euskalerria.org>\n"
"Language-Team: LANGUAGE <LL(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -22,7 +22,7 @@ msgstr ""
#: ../liveusb/dialog.py:150 ../liveusb/launcher_ui.py:149
#, python-format
msgid "%(distribution)s LiveUSB Creator"
-msgstr ""
+msgstr "%(distribution)s LiveUSB sortzailea"
#: ../liveusb/gui.py:758
#, python-format
@@ -72,11 +72,11 @@ msgstr ""
#: ../liveusb/dialog.py:154
msgid "Alt+B"
-msgstr ""
+msgstr "Alt+B"
#: ../liveusb/dialog.py:153
msgid "Browse"
-msgstr ""
+msgstr "Arakatu"
#: ../liveusb/dialog.py:160
msgid ""
@@ -105,18 +105,18 @@ msgid ""
"Clone\n"
"&&\n"
"Install"
-msgstr ""
+msgstr "Klonatu\n&&\nInstall"
#: ../liveusb/launcher_ui.py:152
msgid ""
"Clone\n"
"&&\n"
"Upgrade"
-msgstr ""
+msgstr "Klonatu\n&&\nBerritu"
#: ../liveusb/dialog.py:165
msgid "Create Live USB"
-msgstr ""
+msgstr "Live USBa sortu"
#: ../liveusb/creator.py:429
#, python-format
@@ -137,7 +137,7 @@ msgstr "Gailua txikiegia da: gutxienez %s MiBekoa izan behar da."
#: ../liveusb/dialog.py:157
#, python-format
msgid "Download %(distribution)s"
-msgstr ""
+msgstr "Deskargatu %(distribution)s"
#: ../liveusb/gui.py:732
msgid "Download complete!"
@@ -259,7 +259,7 @@ msgstr "Biltegiratze iraunkorra"
#: ../liveusb/dialog.py:161
msgid "Persistent Storage (0 MB)"
-msgstr ""
+msgstr "Biltegiratze iraunkorra (0 MB)"
#: ../liveusb/gui.py:661 ../liveusb/gui.py:678
msgid "Press 'Next' if you wish to continue."
@@ -476,7 +476,7 @@ msgstr "Onartu gabeko fitxategi sistema: %s\nMesedez babeskopia bat egin eta for
#: ../liveusb/launcher_ui.py:154
msgid "Upgrade from ISO"
-msgstr ""
+msgstr "ISOtik berritu"
#: ../liveusb/dialog.py:152
msgid "Use existing Live system ISO"
@@ -548,4 +548,4 @@ msgstr "Zure gailuak LiveOS bat dauka jadanik.\nJarraitzen baduzu, hau gainidatz
#: ../liveusb/dialog.py:155
msgid "or"
-msgstr ""
+msgstr "edo"
1
0
commit 48bb10588a68912ce5aeea5697d9fe2bb6a59816
Author: Translation commit bot <translation(a)torproject.org>
Date: Wed Apr 17 15:15:17 2013 +0000
Update translations for tsum
---
eu/short-user-manual_eu_noimg.xhtml | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/eu/short-user-manual_eu_noimg.xhtml b/eu/short-user-manual_eu_noimg.xhtml
index f1d0c00..e363673 100644
--- a/eu/short-user-manual_eu_noimg.xhtml
+++ b/eu/short-user-manual_eu_noimg.xhtml
@@ -27,14 +27,14 @@
<p>Tor Browser Bundlea exekutatu baino lehen,bertsio egokia duzula egiaztatu beharko zenuke.</p>
<p>The software you receive is accompanied by a file with the same name as the bundle and the extension <strong>.asc</strong>. This .asc file is a GPG signature, and will allow you to verify the file you've downloaded is exactly the one that we intended you to get.</p>
<p>Sinadura egiaztatu ahal baino lehen, GnuPG deskargatu eta instalatu beharko duzu:</p>
- <p><strong>Windows</strong>: <a href="http://gpg4win.org/download.html">http://gpg4win.org/download.html</a><br/><strong>Mac OS X</strong>: <a href="http://macgpg.sourceforge.net/">http://macgpg.sourceforge.net/</a><br/><strong>Linux</strong>: Most Linux distributions come with GnuPG preinstalled.</p>
+ <p><strong>Windows</strong>: <a href="http://gpg4win.org/download.html">http://gpg4win.org/download.html</a><br/><strong>Mac OS X</strong>: <a href="http://macgpg.sourceforge.net/">http://macgpg.sourceforge.net/</a><br/><strong>Linux</strong>: Linux banaketa gehienek GnuPG aurreinstalatuta dute.</p>
<p>Please note that you may need to edit the paths and the commands used below to get it to work on your system.</p>
- <p>Erinn Clark signs the Tor Browser Bundles with key 0x63FEE659. To import Erinn's key, run:</p>
+ <p>Erinn Clarkek 0x63FEE659 gakoarekin sinatzen ditu Tor Browser Bundleak. Erinnen gakoa inportatzeko, exekutatu:</p>
<pre>
<code>gpg --keyserver hkp://keys.gnupg.net --recv-keys 0x63FEE659
</code>
</pre>
- <p>After importing the key, verify that the fingerprint is correct:</p>
+ <p>Gakoa inportatu ondoren, egiaztatu hatz-marka zuzena dela:</p>
<pre>
<code>gpg --fingerprint 0x63FEE659
</code>
@@ -42,15 +42,15 @@
<p>Hau ikusi beharko zenuke:</p>
<pre>
<code>pub 2048R/63FEE659 2003-10-16
- Key fingerprint = 8738 A680 B84B 3031 A630 F2DB 416F 0610 63FE E659
-uid Erinn Clark <erinn(a)torproject.org>
-uid Erinn Clark <erinn(a)debian.org>
+Key fingerprint = 8738 A680 B84B 3031 A630 F2DB 416F 0610 63FE E659
+uid Erinn Clark <erinn(a)torproject.org>
+uid Erinn Clark <erinn(a)debian.org>
-uid Erinn Clark <erinn(a)double-helix.org>
-sub 2048R/EB399FD7 2003-10-16
+uid Erinn Clark <erinn(a)double-helix.org>
+sub 2048R/EB399FD7 2003-10-16
</code>
</pre>
- <p>To verify the signature of the package you downloaded, run the following command:</p>
+ <p>Deskargatu duzun paketearen sinadura egiaztatzeko, exekutatu hurrengo komandoa:</p>
<pre>
<code>gpg --verify tor-browser-2.2.33-2_en-US.exe.asc tor-browser-2.2.33-2_en-US.exe
</code>
@@ -61,7 +61,7 @@ sub 2048R/EB399FD7 2003-10-16
<p>After downloading the Tor Browser Bundle and extracting the package, you should have a directory with a few files in it. One of the files is an executable called "Start Tor Browser" (or "start-tor-browser", depending on your operating system).</p>
<p>When you start the Tor Browser Bundle, you will first see Vidalia start up and connect you to the Tor network. After that, you will see a browser confirming that you are now using Tor. This is done by displaying <a href="https://check.torproject.org/">https://check.torproject.org/</a>. You can now browse the Internet through Tor.</p>
<p>
- <em>Please note that it is important that you use the browser that comes with the bundle, and not your own browser.</em>
+ <em>Mesedez kontuan izan garrantzitsua dela paketean datorren nabigatzailea erabiltzea, eta ez zure nabigatzailea.</em>
</p>
<h3 id="what-to-do-when-tor-does-not-connect">Zer egin Tor konektatzen ez denean</h3>
<p>Some users will notice that Vidalia gets stuck when trying to connect to the Tor network. If this happens, make sure that you are connected to the Internet. If you need to connect to a proxy server, see <em>How to use an open proxy</em> below.</p>
@@ -91,7 +91,7 @@ sub 2048R/EB399FD7 2003-10-16
<h2 id="frequently-asked-questions">Maiz Egindako Galderak</h2>
<p>This section will answer some of the most common questions. If your question is not mentioned here, please send an email to help(a)rt.torproject.org.</p>
<h3 id="unable-to-extract-the-archive">Ezin izan da artxiboa erauzi</h3>
- <p>If you are using Windows and find that you cannot extract the archive, download and install <a href="http://www.7-zip.org/">7-Zip</a>.</p>
+ <p>Windows erabiltzen baduzu eta artxiboa ezin duzula erauzi ikusten baduzu, deskargatu eta instalatu <a href="http://www.7-zip.org/">7-Zip</a>.</p>
<p>If you are unable to download 7-Zip, try to rename the file from .z to .zip and use winzip to extract the archive. Before renaming the file, tell Windows to show file extensions:</p>
<h4 id="windows-xp">Windows XP</h4>
<ol style="list-style-type: decimal">
1
0
[translation/gettor_completed] Update translations for gettor_completed
by translation@torproject.org 17 Apr '13
by translation@torproject.org 17 Apr '13
17 Apr '13
commit cf4c6cdfdf2dc3122553621ca3bd302c3c0a5abf
Author: Translation commit bot <translation(a)torproject.org>
Date: Wed Apr 17 15:15:09 2013 +0000
Update translations for gettor_completed
---
ar/gettor.po | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/ar/gettor.po b/ar/gettor.po
index 5dc0449..1bce750 100644
--- a/ar/gettor.po
+++ b/ar/gettor.po
@@ -20,7 +20,7 @@ msgstr ""
"Project-Id-Version: The Tor Project\n"
"Report-Msgid-Bugs-To: https://trac.torproject.org/projects/tor\n"
"POT-Creation-Date: 2013-01-19 13:40+0100\n"
-"PO-Revision-Date: 2013-04-17 14:31+0000\n"
+"PO-Revision-Date: 2013-04-17 14:58+0000\n"
"Last-Translator: Sherief <sheriefalaa.w(a)gmail.com>\n"
"Language-Team: LANGUAGE <LL(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -42,7 +42,7 @@ msgid ""
"Unfortunately, we won't answer you at this address. You should make\n"
"an account with GMAIL.COM, YAHOO.COM or YAHOO.CN and send the mail from\n"
"one of those."
-msgstr "للأسف، لن نجيبك على هذا العنوان. عليك أن تنشيء حساب على gmail.com، yahoo.com أو yahoo.cn وأرسل البريد من ذاك العنوان."
+msgstr "للأسف، لن نجيبك على هذا العنوان. عليك أن تنشيء حساب على gmail.com، yahoo.com أو yahoo.cn \nوأرسل البريد من ذاك العنوان."
#: lib/gettor/i18n.py:35
msgid ""
@@ -56,7 +56,7 @@ msgid ""
"(We apologize if you didn't ask for this mail. Since your email is from\n"
"a service that doesn't use DKIM, we're sending a short explanation,\n"
"and then we'll ignore this email address for the next day or so.)"
-msgstr "(نعتذر إذا لم تطلب هذا البريد. حيث ان مزود خدمة بريدك الإلكتروني الخاص بك لا يستخدم\n DKIM ، نحن نرسل لك شرحا موجزا،\nوبعد ذلك سوف نتجاهل عنوان بريدك الإلكتروني لليوم التالي أو نحو ذلك .)"
+msgstr "(نعتذر إذا لم تطلب هذا البريد. حيث ان مزود خدمة البريد الإلكتروني الخاص بك لا يستخدم\n DKIM ، نحن نرسل لك شرحا موجزاً،\nوبعد ذلك سوف نتجاهل عنوان بريدك الإلكتروني لليوم التالي أو نحو ذلك.)"
#: lib/gettor/i18n.py:43 lib/gettor/i18n.py:135
msgid ""
@@ -80,19 +80,19 @@ msgid ""
" obfs-linux-i386\n"
" obfs-linux-x86_64\n"
" source"
-msgstr "سأرسل لك نسخة من برنامج تور اذا اخبرتني أي واحدة تريد.\nفضلاً اختر واحدة من القائمة التالية:\n\nwindows\nmacos-i386\nmacos-ppc\nlinux-i386\nlinux-x86_64\nobfs-windows\nobfs-macos-i386\nobfs-macos-x86_64\nobfs-linux-i386\nobfs-linux-x86_64\nsource"
+msgstr "سأرسل لك رزمة من برنامج تور اذا اخبرتني اي واحدة تريد.\nفضلاً اختر واحدة من القائمة التالية:\n\nwindows\nmacos-i386\nmacos-ppc\nlinux-i386\nlinux-x86_64\nobfs-windows\nobfs-macos-i386\nobfs-macos-x86_64\nobfs-linux-i386\nobfs-linux-x86_64\nsource"
#: lib/gettor/i18n.py:61
msgid ""
"Please reply to this mail, and tell me a single package name anywhere \n"
"in the body of your email."
-msgstr "الرجاء الإجابة على هذا البريد، وأخبرني باسم نسخة واحدة فقط في أي مكان في نص رسالتك."
+msgstr "الرجاء الإجابة على هذا البريد، وأخبرني باسم رزمة واحدة فقط في اي مكان في نص رسالتك."
#: lib/gettor/i18n.py:64
msgid ""
"OBTAINING LOCALIZED VERSIONS OF TOR\n"
"==================================="
-msgstr "الحصول على نسخ مترجمة من تور\n===================="
+msgstr "الحصول على نسخ مترجمة من تور\n=================="
#: lib/gettor/i18n.py:67
msgid ""
@@ -162,7 +162,7 @@ msgstr "ببساطة أضف الكلمة \"split\" لوحدها في سطر مس
msgid ""
"Sending this text in an email to GetTor will cause it to send you \n"
"the Tor Browser Bundle in a number of 1,4MB attachments."
-msgstr "إرسال هذا النص في بريد إلكتروني إلى GetTor سيؤدي إلى إرسال\n لكم حزمة متصفح تور في عدد من المرفقات 1،4 ميغابايت."
+msgstr "إرسال هذا النص في بريد إلكتروني إلى GetTor سيؤدي إلى إرسال\n لكم حزمة متصفح تور في عدد من المرفقات 1،4 ميجابايت."
#: lib/gettor/i18n.py:110
msgid ""
1
0
17 Apr '13
commit 8ce785e7c56518666aaf94fd69401c987fb62737
Author: Translation commit bot <translation(a)torproject.org>
Date: Wed Apr 17 15:15:06 2013 +0000
Update translations for gettor
---
ar/gettor.po | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/ar/gettor.po b/ar/gettor.po
index 5dc0449..1bce750 100644
--- a/ar/gettor.po
+++ b/ar/gettor.po
@@ -20,7 +20,7 @@ msgstr ""
"Project-Id-Version: The Tor Project\n"
"Report-Msgid-Bugs-To: https://trac.torproject.org/projects/tor\n"
"POT-Creation-Date: 2013-01-19 13:40+0100\n"
-"PO-Revision-Date: 2013-04-17 14:31+0000\n"
+"PO-Revision-Date: 2013-04-17 14:58+0000\n"
"Last-Translator: Sherief <sheriefalaa.w(a)gmail.com>\n"
"Language-Team: LANGUAGE <LL(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -42,7 +42,7 @@ msgid ""
"Unfortunately, we won't answer you at this address. You should make\n"
"an account with GMAIL.COM, YAHOO.COM or YAHOO.CN and send the mail from\n"
"one of those."
-msgstr "للأسف، لن نجيبك على هذا العنوان. عليك أن تنشيء حساب على gmail.com، yahoo.com أو yahoo.cn وأرسل البريد من ذاك العنوان."
+msgstr "للأسف، لن نجيبك على هذا العنوان. عليك أن تنشيء حساب على gmail.com، yahoo.com أو yahoo.cn \nوأرسل البريد من ذاك العنوان."
#: lib/gettor/i18n.py:35
msgid ""
@@ -56,7 +56,7 @@ msgid ""
"(We apologize if you didn't ask for this mail. Since your email is from\n"
"a service that doesn't use DKIM, we're sending a short explanation,\n"
"and then we'll ignore this email address for the next day or so.)"
-msgstr "(نعتذر إذا لم تطلب هذا البريد. حيث ان مزود خدمة بريدك الإلكتروني الخاص بك لا يستخدم\n DKIM ، نحن نرسل لك شرحا موجزا،\nوبعد ذلك سوف نتجاهل عنوان بريدك الإلكتروني لليوم التالي أو نحو ذلك .)"
+msgstr "(نعتذر إذا لم تطلب هذا البريد. حيث ان مزود خدمة البريد الإلكتروني الخاص بك لا يستخدم\n DKIM ، نحن نرسل لك شرحا موجزاً،\nوبعد ذلك سوف نتجاهل عنوان بريدك الإلكتروني لليوم التالي أو نحو ذلك.)"
#: lib/gettor/i18n.py:43 lib/gettor/i18n.py:135
msgid ""
@@ -80,19 +80,19 @@ msgid ""
" obfs-linux-i386\n"
" obfs-linux-x86_64\n"
" source"
-msgstr "سأرسل لك نسخة من برنامج تور اذا اخبرتني أي واحدة تريد.\nفضلاً اختر واحدة من القائمة التالية:\n\nwindows\nmacos-i386\nmacos-ppc\nlinux-i386\nlinux-x86_64\nobfs-windows\nobfs-macos-i386\nobfs-macos-x86_64\nobfs-linux-i386\nobfs-linux-x86_64\nsource"
+msgstr "سأرسل لك رزمة من برنامج تور اذا اخبرتني اي واحدة تريد.\nفضلاً اختر واحدة من القائمة التالية:\n\nwindows\nmacos-i386\nmacos-ppc\nlinux-i386\nlinux-x86_64\nobfs-windows\nobfs-macos-i386\nobfs-macos-x86_64\nobfs-linux-i386\nobfs-linux-x86_64\nsource"
#: lib/gettor/i18n.py:61
msgid ""
"Please reply to this mail, and tell me a single package name anywhere \n"
"in the body of your email."
-msgstr "الرجاء الإجابة على هذا البريد، وأخبرني باسم نسخة واحدة فقط في أي مكان في نص رسالتك."
+msgstr "الرجاء الإجابة على هذا البريد، وأخبرني باسم رزمة واحدة فقط في اي مكان في نص رسالتك."
#: lib/gettor/i18n.py:64
msgid ""
"OBTAINING LOCALIZED VERSIONS OF TOR\n"
"==================================="
-msgstr "الحصول على نسخ مترجمة من تور\n===================="
+msgstr "الحصول على نسخ مترجمة من تور\n=================="
#: lib/gettor/i18n.py:67
msgid ""
@@ -162,7 +162,7 @@ msgstr "ببساطة أضف الكلمة \"split\" لوحدها في سطر مس
msgid ""
"Sending this text in an email to GetTor will cause it to send you \n"
"the Tor Browser Bundle in a number of 1,4MB attachments."
-msgstr "إرسال هذا النص في بريد إلكتروني إلى GetTor سيؤدي إلى إرسال\n لكم حزمة متصفح تور في عدد من المرفقات 1،4 ميغابايت."
+msgstr "إرسال هذا النص في بريد إلكتروني إلى GetTor سيؤدي إلى إرسال\n لكم حزمة متصفح تور في عدد من المرفقات 1،4 ميجابايت."
#: lib/gettor/i18n.py:110
msgid ""
1
0
[tor-launcher/master] Fix TOR_SKIP_LAUNCH=1 regression (don't show "Waiting for Tor to start").
by brade@torproject.org 17 Apr '13
by brade@torproject.org 17 Apr '13
17 Apr '13
commit e80360ccdcdb48ab1dcb0f9bf6a0774c1e8fdf8c
Author: Kathy Brade <brade(a)torproject.org>
Date: Wed Apr 17 11:10:37 2013 -0400
Fix TOR_SKIP_LAUNCH=1 regression (don't show "Waiting for Tor to start").
---
src/chrome/content/network-settings.js | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/chrome/content/network-settings.js b/src/chrome/content/network-settings.js
index 069b8d1..9bdd527 100644
--- a/src/chrome/content/network-settings.js
+++ b/src/chrome/content/network-settings.js
@@ -82,18 +82,19 @@ function initDialog()
gObsService = Cc["@mozilla.org/observer-service;1"]
.getService(Ci.nsIObserverService);
- if (gTorProcessService.TorIsProcessReady)
+ if (TorLauncherUtil.shouldStartAndOwnTor &&
+ !gTorProcessService.TorIsProcessReady)
{
- showOrHideSettings(true, false);
- readTorSettings();
- }
- else
- {
- showOrHideSettings(false, true);
+ showOrHideSettings(false, true); // Show "Waiting for tor to start"
gObsService.addObserver(gObserver, kTorProcessReadyTopic, false);
gObsService.addObserver(gObserver, kTorProcessExitedTopic, false);
gObsService.addObserver(gObserver, kTorProcessDidNotStartTopic, false);
}
+ else
+ {
+ showOrHideSettings(true, false);
+ readTorSettings();
+ }
TorLauncherLogger.log(2, "initDialog done");
}
1
0
[tor-launcher/master] Add "Copy Tor Log To Clipboard" button to network settings dialog.
by brade@torproject.org 17 Apr '13
by brade@torproject.org 17 Apr '13
17 Apr '13
commit d91c02620cd8960d11a073f4fb3f0f0ce031bb53
Author: Kathy Brade <brade(a)torproject.org>
Date: Wed Apr 17 10:48:17 2013 -0400
Add "Copy Tor Log To Clipboard" button to network settings dialog.
Use SETEVENTS with a non-blocking control connection to capture log messages.
Add logic to wait until tor control port is ready before reading settings, etc.
Close progress dialog if tor exits while dialog is open.
---
src/chrome/content/network-settings.js | 106 +++++++++-
src/chrome/content/network-settings.xul | 219 ++++++++++---------
src/chrome/content/progress.js | 18 ++-
src/chrome/locale/en/network-settings.dtd | 3 +
src/chrome/locale/en/torlauncher.properties | 1 +
src/chrome/skin/network-settings.css | 11 +-
src/components/tl-process.js | 95 ++++++++-
src/components/tl-protocol.js | 305 +++++++++++++++++++++++----
8 files changed, 584 insertions(+), 174 deletions(-)
diff --git a/src/chrome/content/network-settings.js b/src/chrome/content/network-settings.js
index 85f7422..069b8d1 100644
--- a/src/chrome/content/network-settings.js
+++ b/src/chrome/content/network-settings.js
@@ -15,6 +15,10 @@ XPCOMUtils.defineLazyModuleGetter(this, "TorLauncherUtil",
XPCOMUtils.defineLazyModuleGetter(this, "TorLauncherLogger",
"resource://torlauncher/modules/tl-logger.jsm");
+const kTorProcessReadyTopic = "TorProcessIsReady";
+const kTorProcessExitedTopic = "TorProcessExited";
+const kTorProcessDidNotStartTopic = "TorProcessDidNotStart";
+
const kUseProxyCheckbox = "useProxy";
const kProxyTypeMenulist = "proxyType";
const kProxyAddr = "proxyAddr";
@@ -39,13 +43,13 @@ const kTorConfKeyBridgeList = "Bridge";
var gProtocolSvc = null;
var gTorProcessService = null;
+var gObsService = null;
var gIsInitialBootstrap = false;
var gIsBootstrapComplete = false;
function initDialog()
{
- var okBtn = document.documentElement.getButton("accept");
gIsInitialBootstrap = window.arguments[0];
if (gIsInitialBootstrap)
{
@@ -55,11 +59,10 @@ function initDialog()
var quitKey = (TorLauncherUtil.isWindows) ? "quit_win" : "quit";
cancelBtn.label = TorLauncherUtil.getLocalizedString(quitKey);
+ var okBtn = document.documentElement.getButton("accept");
okBtn.label = TorLauncherUtil.getLocalizedString("connect");
}
- okBtn.focus();
-
try
{
var svc = Cc["@torproject.org/torlauncher-protocol-service;1"]
@@ -76,8 +79,50 @@ function initDialog()
}
catch (e) { dump(e + "\n"); }
- TorLauncherLogger.log(2, "initDialog retrieving tor settings " +
- "----------------------------------------------");
+ gObsService = Cc["@mozilla.org/observer-service;1"]
+ .getService(Ci.nsIObserverService);
+
+ if (gTorProcessService.TorIsProcessReady)
+ {
+ showOrHideSettings(true, false);
+ readTorSettings();
+ }
+ else
+ {
+ showOrHideSettings(false, true);
+ gObsService.addObserver(gObserver, kTorProcessReadyTopic, false);
+ gObsService.addObserver(gObserver, kTorProcessExitedTopic, false);
+ gObsService.addObserver(gObserver, kTorProcessDidNotStartTopic, false);
+ }
+
+ TorLauncherLogger.log(2, "initDialog done");
+}
+
+
+var gObserver = {
+ observe: function(aSubject, aTopic, aData)
+ {
+ gObsService.removeObserver(gObserver, kTorProcessReadyTopic);
+ gObsService.removeObserver(gObserver, kTorProcessExitedTopic);
+ gObsService.removeObserver(gObserver, kTorProcessDidNotStartTopic);
+
+ if (kTorProcessReadyTopic == aTopic)
+ {
+ showOrHideSettings(true, false);
+ readTorSettings();
+ }
+ else if (kTorProcessDidNotStartTopic == aTopic)
+ showOrHideSettings(false, false);
+ else
+ close();
+ }
+};
+
+
+function readTorSettings()
+{
+ TorLauncherLogger.log(2, "readTorSettings " +
+ "----------------------------------------------");
var didSucceed = false;
try
@@ -86,14 +131,12 @@ function initDialog()
didSucceed = initProxySettings() && initFirewallSettings() &&
initBridgeSettings();
}
- catch (e) { TorLauncherLogger.safelog(4, "Error in initDialog: ", e); }
+ catch (e) { TorLauncherLogger.safelog(4, "Error in readTorSettings: ", e); }
if (!didSucceed)
{
// Unable to communicate with tor. Hide settings and display an error.
- setElemValue(kUseProxyCheckbox, false);
- setElemValue(kUseFirewallPortsCheckbox, false);
- setElemValue(kUseBridgesCheckbox, false);
+ showOrHideSettings(false, false);
setTimeout(function()
{
@@ -105,11 +148,44 @@ function initDialog()
close();
}, 0);
}
+ TorLauncherLogger.log(2, "readTorSettings done");
+}
+
+
+function showOrHideSettings(aShow, aIsStartingTor)
+{
+ showOrHideElem("settings", aShow);
+ showOrHideElem("startingTor", !aShow && aIsStartingTor);
- TorLauncherLogger.log(2, "initDialog done\n\n\n");
+ var okBtn = document.documentElement.getButton("accept");
+ if (okBtn)
+ {
+ if (aShow)
+ {
+ okBtn.removeAttribute("hidden");
+ okBtn.focus();
+ }
+ else
+ okBtn.setAttribute("hidden", true);
+ }
}
+function showOrHideElem(aID, aShow)
+{
+ if (!aID)
+ return;
+
+ var e = document.getElementById(aID);
+ if (e)
+ {
+ if (aShow)
+ e.removeAttribute("hidden");
+ else
+ e.setAttribute("hidden", true);
+ }
+}
+
function onCancel()
{
if (gIsInitialBootstrap) try
@@ -123,6 +199,14 @@ function onCancel()
}
+function onCopyLog()
+{
+ var chSvc = Cc["@mozilla.org/widget/clipboardhelper;1"]
+ .getService(Ci.nsIClipboardHelper);
+ chSvc.copyString(gProtocolSvc.TorGetLog());
+}
+
+
// Returns true if successful.
function initProxySettings()
{
@@ -281,7 +365,7 @@ function applySettings()
close();
}
- TorLauncherLogger.log(2, "applySettings done\n\n\n");
+ TorLauncherLogger.log(2, "applySettings done");
return false;
}
diff --git a/src/chrome/content/network-settings.xul b/src/chrome/content/network-settings.xul
index 5daabac..06e817b 100644
--- a/src/chrome/content/network-settings.xul
+++ b/src/chrome/content/network-settings.xul
@@ -15,118 +15,131 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&torsettings.dialog.title;"
persist="screenX screenY"
- buttons="accept,cancel"
+ buttons="accept,cancel,extra1"
+ buttonlabelextra1="&torsettings.copyLog;"
ondialogaccept="return applySettings();"
ondialogcancel="return onCancel();"
+ ondialogextra1="onCopyLog();"
onload="initDialog();">
- <script type="application/x-javascript"
- src="chrome://torlauncher/content/network-settings.js"/>
+ <script type="application/x-javascript"
+ src="chrome://torlauncher/content/network-settings.js"/>
- <vbox>
- <vbox flex="1">
- <hbox id="tbb-header">
- <vbox>
- <spacer flex="1" />
- <image id="tbb-logo" />
- <spacer flex="1" />
- </vbox>
- <separator orient="vertical" />
- <groupbox>
- <description>&torsettings.prompt1;</description>
+ <stack>
+ <vbox id="settings">
+ <vbox flex="1">
+ <hbox id="tbb-header">
+ <vbox>
+ <spacer flex="1" />
+ <image id="tbb-logo" />
+ <spacer flex="1" />
+ </vbox>
+ <separator orient="vertical" />
+ <groupbox>
+ <description>&torsettings.prompt1;</description>
+ <separator orient="horizontal" class="thin" />
+ <description>&torsettings.prompt2;</description>
+ <description>&torsettings.prompt3;</description>
+ <description>&torsettings.prompt4;</description>
+ </groupbox>
+ </hbox>
<separator orient="horizontal" class="thin" />
- <description>&torsettings.prompt2;</description>
- <description>&torsettings.prompt3;</description>
- <description>&torsettings.prompt4;</description>
- </groupbox>
- </hbox>
- <separator orient="horizontal" class="thin" />
- <checkbox id="useProxy" groupboxID="proxySpecificSettings"
- label="&torsettings.useProxy.checkbox;"
- oncommand="toggleElemUI(this)"/>
- <groupbox id="proxySpecificSettings">
- <grid flex="1">
- <columns>
- <column/>
- <column/>
- </columns>
- <rows>
- <row align="center">
- <label value="&torsettings.useProxy.address;" control="proxyAddr"
- style="text-align:right" />
- <hbox align="center">
- <textbox id="proxyAddr" size="30" flex="1" />
- <label value="&torsettings.useProxy.port;" control="proxyPort"/>
- <textbox id="proxyPort" size="5" />
- </hbox>
- </row>
- <row align="center">
- <label value="&torsettings.useProxy.username;"
- control="proxyUsername" style="text-align:right" />
- <hbox align="center">
- <textbox id="proxyUsername" flex="1" />
- <label value="&torsettings.useProxy.password;"
- control="proxyPassword"/>
- <textbox id="proxyPassword" type="password" />
- </hbox>
- </row>
- <row align="center">
- <label value="&torsettings.useProxy.type;" control="proxyType"
- style="text-align:right" />
- <hbox align="center">
- <menulist id="proxyType">
- <menupopup id="proxyType_menuPopup">
- <menuitem label="&torsettings.useProxy.type.socks4;"
- value="SOCKS4"/>
- <menuitem label="&torsettings.useProxy.type.socks5;"
- value="SOCKS5"/>
- <menuitem label="&torsettings.useProxy.type.http;"
- value="HTTP"/>
- </menupopup>
- </menulist>
- </hbox>
- </row>
- </rows>
- </grid>
- </groupbox>
- </vbox>
+ <checkbox id="useProxy" groupboxID="proxySpecificSettings"
+ label="&torsettings.useProxy.checkbox;"
+ oncommand="toggleElemUI(this)"/>
+ <groupbox id="proxySpecificSettings">
+ <grid flex="1">
+ <columns>
+ <column/>
+ <column/>
+ </columns>
+ <rows>
+ <row align="center">
+ <label value="&torsettings.useProxy.address;" control="proxyAddr"
+ style="text-align:right" />
+ <hbox align="center">
+ <textbox id="proxyAddr" size="30" flex="1" />
+ <label value="&torsettings.useProxy.port;" control="proxyPort"/>
+ <textbox id="proxyPort" size="5" />
+ </hbox>
+ </row>
+ <row align="center">
+ <label value="&torsettings.useProxy.username;"
+ control="proxyUsername" style="text-align:right" />
+ <hbox align="center">
+ <textbox id="proxyUsername" flex="1" />
+ <label value="&torsettings.useProxy.password;"
+ control="proxyPassword"/>
+ <textbox id="proxyPassword" type="password" />
+ </hbox>
+ </row>
+ <row align="center">
+ <label value="&torsettings.useProxy.type;" control="proxyType"
+ style="text-align:right" />
+ <hbox align="center">
+ <menulist id="proxyType">
+ <menupopup id="proxyType_menuPopup">
+ <menuitem label="&torsettings.useProxy.type.socks4;"
+ value="SOCKS4"/>
+ <menuitem label="&torsettings.useProxy.type.socks5;"
+ value="SOCKS5"/>
+ <menuitem label="&torsettings.useProxy.type.http;"
+ value="HTTP"/>
+ </menupopup>
+ </menulist>
+ </hbox>
+ </row>
+ </rows>
+ </grid>
+ </groupbox>
+ </vbox>
- <vbox flex="1">
- <checkbox id="useFirewallPorts" groupboxID="firewallSpecificSettings"
- label="&torsettings.firewall.checkbox;"
- oncommand="toggleElemUI(this)"/>
- <groupbox id="firewallSpecificSettings">
- <hbox align="center">
- <label value="&torsettings.firewall.allowedPorts;"
- control="firewallAllowedPorts"/>
- <textbox id="firewallAllowedPorts" value="80,443" />
- </hbox>
- </groupbox>
- </vbox>
+ <vbox flex="1">
+ <checkbox id="useFirewallPorts" groupboxID="firewallSpecificSettings"
+ label="&torsettings.firewall.checkbox;"
+ oncommand="toggleElemUI(this)"/>
+ <groupbox id="firewallSpecificSettings">
+ <hbox align="center">
+ <label value="&torsettings.firewall.allowedPorts;"
+ control="firewallAllowedPorts"/>
+ <textbox id="firewallAllowedPorts" value="80,443" />
+ </hbox>
+ </groupbox>
+ </vbox>
- <vbox flex="1">
- <checkbox id="useBridges" groupboxID="bridgeSpecificSettings"
- label="&torsettings.useBridges.checkbox;"
- oncommand="toggleElemUI(this);" />
- <groupbox id="bridgeSpecificSettings">
+ <vbox flex="1">
+ <checkbox id="useBridges" groupboxID="bridgeSpecificSettings"
+ label="&torsettings.useBridges.checkbox;"
+ oncommand="toggleElemUI(this);" />
+ <groupbox id="bridgeSpecificSettings">
+ <hbox>
+ <vbox flex="1">
+ <label value="&torsettings.useBridges.label;" control="bridgeList"/>
+ <textbox id="bridgeList" multiline="true" rows="4" />
+ </vbox>
+ <!--
+ <vbox>
+ <button id="copyBridgeList" label="Copy TODO" style="width: 20px"
+ oncommand="copyBridgeList();"/>
+ <button id="pasteBridgeList" label="Paste TODO" style="width: 20px"
+ oncommand="pasteBridgeList();"/>
+ <button id="howToFindBridges" label="How can I find bridges? TODO" style="width: 20px"
+ oncommand="findBridgeList();"/>
+ </vbox>
+ -->
+ </hbox>
+ </groupbox>
+ </vbox>
+ </vbox>
+ <vbox id="startingTor" flex="1">
+ <spring flex="1" />
<hbox>
- <vbox flex="1">
- <label value="&torsettings.useBridges.label;" control="bridgeList"/>
- <textbox id="bridgeList" multiline="true" rows="4" />
- </vbox>
-<!--
- <vbox>
- <button id="copyBridgeList" label="Copy TODO" style="width: 20px"
- oncommand="copyBridgeList();"/>
- <button id="pasteBridgeList" label="Paste TODO" style="width: 20px"
- oncommand="pasteBridgeList();"/>
- <button id="howToFindBridges" label="How can I find bridges? TODO" style="width: 20px"
- oncommand="findBridgeList();"/>
- </vbox>
--->
+ <spring flex="1" />
+ <label value="&torsettings.startingTor;"/>
+ <spring flex="1" />
</hbox>
- </groupbox>
- </vbox>
- </vbox>
+ <spring flex="1" />
+ </vbox>
+ </stack>
<spring />
</dialog>
diff --git a/src/chrome/content/progress.js b/src/chrome/content/progress.js
index 0f21d4c..865ddec 100644
--- a/src/chrome/content/progress.js
+++ b/src/chrome/content/progress.js
@@ -7,6 +7,7 @@ const Cc = Components.classes;
const Ci = Components.interfaces;
const Cu = Components.utils;
+const kTorProcessExitedTopic = "TorProcessExited";
const kBootstrapStatusTopic = "TorBootstrapStatus";
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
@@ -23,7 +24,8 @@ function initDialog()
{
gObsSvc = Cc["@mozilla.org/observer-service;1"]
.getService(Ci.nsIObserverService);
- gObsSvc.addObserver(BootstrapStatusObserver, kBootstrapStatusTopic, false);
+ gObsSvc.addObserver(gObserver, kTorProcessExitedTopic, false);
+ gObsSvc.addObserver(gObserver, kBootstrapStatusTopic, false);
}
catch (e) {}
@@ -57,7 +59,10 @@ function initDialog()
function cleanup()
{
if (gObsSvc)
- gObsSvc.removeObserver(BootstrapStatusObserver, kBootstrapStatusTopic);
+ {
+ gObsSvc.removeObserver(gObserver, kTorProcessExitedTopic);
+ gObsSvc.removeObserver(gObserver, kBootstrapStatusTopic);
+ }
}
@@ -92,11 +97,16 @@ function onCancel()
}
-var BootstrapStatusObserver = {
+var gObserver = {
// nsIObserver implementation.
observe: function(aSubject, aTopic, aParam)
{
- if (kBootstrapStatusTopic == aTopic)
+ if (kTorProcessExitedTopic == aTopic)
+ {
+ onCancel();
+ window.close();
+ }
+ else if (kBootstrapStatusTopic == aTopic)
{
var statusObj = aSubject.wrappedJSObject;
var labelText = (statusObj.SUMMARY) ? statusObj.SUMMARY : "";
diff --git a/src/chrome/locale/en/network-settings.dtd b/src/chrome/locale/en/network-settings.dtd
index 5d5fa99..3382b17 100644
--- a/src/chrome/locale/en/network-settings.dtd
+++ b/src/chrome/locale/en/network-settings.dtd
@@ -5,6 +5,8 @@
<!ENTITY torsettings.prompt3 "If so, choose those options for further configuration.">
<!ENTITY torsettings.prompt4 "If not, just click Connect.">
+<!ENTITY torsettings.startingTor "Waiting for Tor to start…">
+
<!ENTITY torsettings.useProxy.checkbox "I use a proxy to access the Internet">
<!ENTITY torsettings.useProxy.address "Address:">
<!ENTITY torsettings.useProxy.port "Port:">
@@ -18,3 +20,4 @@
<!ENTITY torsettings.firewall.allowedPorts "Allowed Ports:">
<!ENTITY torsettings.useBridges.checkbox "My ISP blocks connections to the Tor network">
<!ENTITY torsettings.useBridges.label "Enter one or more bridge relays in the form address:port.">
+<!ENTITY torsettings.copyLog "Copy Tor Log To Clipboard">
diff --git a/src/chrome/locale/en/torlauncher.properties b/src/chrome/locale/en/torlauncher.properties
index 9331ecf..0453faa 100644
--- a/src/chrome/locale/en/torlauncher.properties
+++ b/src/chrome/locale/en/torlauncher.properties
@@ -4,6 +4,7 @@
torlauncher.error_title=Tor Launcher
torlauncher.tor_exited=Tor unexpectedly exited.
+torlauncher.tor_controlconn_failed=Could not connect to Tor control port.
torlauncher.tor_failed_to_start=Tor failed to start.
torlauncher.tor_bootstrap_failed=Tor failed to establish a Tor network connection.\n\n%S
diff --git a/src/chrome/skin/network-settings.css b/src/chrome/skin/network-settings.css
index 3297ffc..e165bca 100644
--- a/src/chrome/skin/network-settings.css
+++ b/src/chrome/skin/network-settings.css
@@ -6,7 +6,7 @@
*/
dialog {
- width: 592px;
+ width: 635px;
height: 440px;
font: -moz-dialog;
}
@@ -32,3 +32,12 @@ dialog.initialBootstrap #tbb-header {
width: 120px;
height: 100px;
}
+
+#startingTor {
+ min-height: 300px;
+}
+
+#startingTor label {
+ font-size: 120%;
+ font-weight: bold;
+}
diff --git a/src/components/tl-process.js b/src/components/tl-process.js
index 740c7cf..0148529 100644
--- a/src/components/tl-process.js
+++ b/src/components/tl-process.js
@@ -31,6 +31,9 @@ TorProcessService.prototype =
kClassID: Components.ID("{FE7B4CAF-BCF4-4848-8BFF-EFA66C9AFDA1}"),
kPrefPromptAtStartup: "extensions.torlauncher.prompt_at_startup",
+ kInitialControlConnDelayMS: 25,
+ kMaxControlConnRetryMS: 500,
+ kControlConnTimeoutMS: 30000, // Wait at most 30 seconds for tor to start.
kInitialMonitorDelayMS: 1000, // TODO: how can we avoid this delay?
kMonitorDelayMS: 200,
@@ -103,9 +106,17 @@ TorProcessService.prototype =
}
else if (("process-failed" == aTopic) || ("process-finished" == aTopic))
{
+ if (this.mControlConnTimer)
+ {
+ this.mControlConnTimer.cancel();
+ this.mControlConnTimer = null;
+ }
+
this.TorMonitorBootstrap(false);
this.mTorProcess = null;
+ this.mObsSvc.notifyObservers(null, "TorProcessExited", null);
+
if (!this.mIsQuitting)
{
var s = TorLauncherUtil.getLocalizedString("tor_exited");
@@ -115,9 +126,50 @@ TorProcessService.prototype =
}
else if ("timer-callback" == aTopic)
{
- this._checkBootStrapStatus();
- if (this.mTimer)
- this.mTimer.init(this, this.kMonitorDelayMS, this.mTimer.TYPE_ONE_SHOT);
+ if (aSubject == this.mControlConnTimer)
+ {
+ var haveConnection = this.mProtocolSvc.TorHaveControlConnection();
+ if (haveConnection)
+ {
+ this.mControlConnTimer = null;
+ this.mIsTorProcessReady = true;
+ this.mProtocolSvc.TorStartEventMonitor();
+
+ var isInitialBootstrap =
+ TorLauncherUtil.getBoolPref(this.kPrefPromptAtStartup);
+ if (!isInitialBootstrap)
+ this.TorMonitorBootstrap(true);
+
+ this.mObsSvc.notifyObservers(null, "TorProcessIsReady", null);
+ }
+ else if ((Date.now() - this.mTorProcessStartTime)
+ > this.kControlConnTimeoutMS)
+ {
+ this.mObsSvc.notifyObservers(null, "TorProcessDidNotStart", null);
+ var s = TorLauncherUtil.getLocalizedString("tor_controlconn_failed");
+ TorLauncherUtil.showAlert(null, s);
+ TorLauncherLogger.log(4, s);
+ }
+ else
+ {
+ this.mControlConnDelayMS *= 2;
+ if (this.mControlConnDelayMS > this.kMaxControlConnRetryMS)
+ this.mControlConnDelayMS = this.kMaxControlConnRetryMS;
+ this.mControlConnTimer = Cc["@mozilla.org/timer;1"]
+ .createInstance(Ci.nsITimer);
+ this.mControlConnTimer.init(this, this.mControlConnDelayMS,
+ this.mControlConnTimer .TYPE_ONE_SHOT);
+ }
+ }
+ else if (aSubject == this.mTimer)
+ {
+ this._checkBootStrapStatus();
+ if (this.mTimer)
+ {
+ this.mTimer.init(this, this.kMonitorDelayMS,
+ this.mTimer.TYPE_ONE_SHOT);
+ }
+ }
}
else if (kOpenNetworkSettingsTopic == aTopic)
this._openNetworkSettings(false);
@@ -157,7 +209,12 @@ TorProcessService.prototype =
lockFactory: function (aDoLock) {},
- // Public Constants and Methods ////////////////////////////////////////////
+ // Public Properties and Methods ///////////////////////////////////////////
+ get TorIsProcessReady()
+ {
+ return (this.mTorProcess) ? this.mIsTorProcessReady : false;
+ },
+
TorMonitorBootstrap: function(aEnable)
{
if (!this.mProtocolSvc)
@@ -177,24 +234,32 @@ TorProcessService.prototype =
if (this.mTimer)
return;
- this.mTimer = Components.classes["@mozilla.org/timer;1"]
- .createInstance(Components.interfaces.nsITimer);
+ this.mTimer = Cc["@mozilla.org/timer;1"]
+ .createInstance(Ci.nsITimer);
this.mTimer.init(this, this.kInitialMonitorDelayMS,
this.mTimer.TYPE_ONE_SHOT);
},
+
// Private Member Variables ////////////////////////////////////////////////
+ mIsTorProcessReady: false,
mIsQuitting: false,
mObsSvc: null,
mProtocolSvc: null,
mTorProcess: null, // nsIProcess
+ mTorProcessStartTime: null, // JS Date.now()
mTBBTopDir: null, // nsIFile for top of TBB installation (cached)
+ mControlConnTimer: null,
+ mControlConnDelayMS: 0,
mTimer: null,
mQuitSoon: false, // Quit was requested by the user; do so soon.
+
// Private Methods /////////////////////////////////////////////////////////
_startTor: function()
{
+ this.mIsTorProcessReady = false;
+
var isInitialBootstrap =
TorLauncherUtil.getBoolPref(this.kPrefPromptAtStartup);
@@ -249,8 +314,7 @@ TorProcessService.prototype =
args.push("1");
}
- var p = Components.classes["@mozilla.org/process/util;1"]
- .createInstance(Components.interfaces.nsIProcess);
+ var p = Cc["@mozilla.org/process/util;1"].createInstance(Ci.nsIProcess);
p.init(exeFile);
TorLauncherLogger.log(2, "Starting " + exeFile.path);
@@ -259,6 +323,9 @@ TorProcessService.prototype =
p.runAsync(args, args.length, this, false);
this.mTorProcess = p;
+ this.mTorProcessStartTime = Date.now();
+
+ this._waitForTorProcessStartup();
if (isInitialBootstrap)
{
@@ -273,10 +340,7 @@ TorProcessService.prototype =
this._openNetworkSettings(true); // Blocks until dialog is closed.
}
else
- {
- this.TorMonitorBootstrap(true);
this._openProgressDialog();
- }
// If the user pressed "Quit" within settings/progress, exit.
if (this.mQuitSoon) try
@@ -300,6 +364,15 @@ TorProcessService.prototype =
}
}, // _startTor()
+ _waitForTorProcessStartup: function()
+ {
+ this.mControlConnDelayMS = this.kInitialControlConnDelayMS;
+ this.mControlConnTimer = Cc["@mozilla.org/timer;1"]
+ .createInstance(Ci.nsITimer);
+ this.mControlConnTimer.init(this, this.mControlConnDelayMS,
+ this.mControlConnTimer.TYPE_ONE_SHOT);
+ },
+
_checkBootStrapStatus: function()
{
var statusObj = this.mProtocolSvc.TorGetBootStrapStatus();
diff --git a/src/components/tl-protocol.js b/src/components/tl-protocol.js
index 2dee37f..22df4a6 100644
--- a/src/components/tl-protocol.js
+++ b/src/components/tl-protocol.js
@@ -130,6 +130,7 @@ TorProtocolService.prototype =
// Public Constants and Methods ////////////////////////////////////////////
kCmdStatusOK: 250,
+ kCmdStatusEventNotification: 650,
// Returns Tor password string or null if an error occurs.
TorGetPassword: function(aPleaseHash)
@@ -352,25 +353,96 @@ TorProtocolService.prototype =
// TorCleanupConnection() is called during browser shutdown.
TorCleanupConnection: function()
{
- this._closeConnection();
+ this._closeConnection();
+ this._closeConnection(this.mEventMonitorConnection);
+ this.mEventMonitorConnection = null;
},
+ TorStartEventMonitor: function()
+ {
+ if (this.mEventMonitorConnection)
+ return;
+
+ var conn = this._openAuthenticatedConnection(true);
+ // TODO: optionally monitor INFO and DEBUG log messages.
+ var events = "STATUS_CLIENT NOTICE WARN ERR";
+ var reply = this._sendCommand(conn, "SETEVENTS", events);
+ if (!this.TorCommandSucceeded(reply))
+ {
+ TorLauncherLogger.log(4, "SETEVENTS failed");
+ this._closeConnection(conn);
+ return;
+ }
+
+ this.mEventMonitorConnection = conn;
+ this._waitForEventData();
+ },
+
+ // Returns captured log message as a text string (one message per line).
+ TorGetLog: function()
+ {
+ let s = "";
+ if (this.mTorLog)
+ {
+ let dateFmtSvc = Cc["@mozilla.org/intl/scriptabledateformat;1"]
+ .getService(Ci.nsIScriptableDateFormat);
+ let dateFormat = dateFmtSvc.dateFormatShort;
+ let timeFormat = dateFmtSvc.timeFormatSecondsForce24Hour;
+ for (let i = 0; i < this.mTorLog.length; ++i)
+ {
+ let logObj = this.mTorLog[i];
+ let secs = logObj.date.getSeconds();
+ let timeStr = dateFmtSvc.FormatDateTime("", dateFormat, timeFormat,
+ logObj.date.getFullYear(), logObj.date.getMonth() + 1,
+ logObj.date.getDate(), logObj.date.getHours(),
+ logObj.date.getMinutes(), secs);
+ if (' ' == timeStr.substr(-1))
+ timeStr = timeStr.substr(0, timeStr.length - 1);
+ let fracSecsStr = "" + logObj.date.getMilliseconds();
+ while (fracSecsStr.length < 3)
+ fracSecsStr += "0";
+ timeStr += '.' + fracSecsStr;
+
+ s += timeStr + " [" + logObj.type + "] " + logObj.msg + "\n";
+ }
+ }
+
+ return s;
+ },
+
+
+ // Return true if a control connection is established (will create a
+ // connection if necessary).
+ TorHaveControlConnection: function()
+ {
+ var conn = this._getConnection();
+ this._returnConnection(conn);
+ return (conn != null);
+ },
+
+
// Private Member Variables ////////////////////////////////////////////////
mObsSvc: null,
mControlPort: null,
mControlHost: null,
mControlPassword: null, // JS string that contains hex-encoded password.
mControlConnection: null, // This is cached and reused.
+ mEventMonitorConnection: null,
+ mEventMonitorBuffer: null,
+ mEventMonitorInProgressReply: null,
+ mTorLog: null, // Array of objects with date, type, and msg properties.
+
mCheckPasswordHash: false, // set to true to perform a unit test
// Private Methods /////////////////////////////////////////////////////////
// Returns a JS object that contains these fields:
- // inUse // Boolean
- // useCount // Integer
- // socket // nsISocketTransport
- // inStream // nsIBinaryInputStream
- // outStream // nsIBinaryOutputStream
+ // inUse // Boolean
+ // useCount // Integer
+ // socket // nsISocketTransport
+ // inStream // nsIInputStream
+ // binInStream // nsIBinaryInputStream
+ // binOutStream // nsIBinaryOutputStream
_getConnection: function()
{
if (this.mControlConnection)
@@ -382,8 +454,7 @@ TorProtocolService.prototype =
}
}
else
- this.mControlConnection = this._openAuthenticatedConnection();
-
+ this.mControlConnection = this._openAuthenticatedConnection(false);
if (this.mControlConnection)
this.mControlConnection.inUse = true;
@@ -397,7 +468,7 @@ TorProtocolService.prototype =
this.mControlConnection.inUse = false;
},
- _openAuthenticatedConnection: function()
+ _openAuthenticatedConnection: function(aIsEventConnection)
{
var conn;
try
@@ -408,18 +479,19 @@ TorProtocolService.prototype =
this.mControlHost + ":" + this.mControlPort);
var socket = sts.createTransport(null, 0, this.mControlHost,
this.mControlPort, null);
- const kFlags = socket.OPEN_BLOCKING | socket.OPEN_UNBUFFERED;
- var input = socket.openInputStream(kFlags, 0, 0);
- var output = socket.openOutputStream(kFlags, 0, 0);
+ var flags = (aIsEventConnection) ? 0
+ : socket.OPEN_BLOCKING | socket.OPEN_UNBUFFERED;
+ var inStream = socket.openInputStream(flags, 0, 0);
+ var outStream = socket.openOutputStream(flags, 0, 0);
- var inputStream = Cc["@mozilla.org/binaryinputstream;1"]
+ var binInStream = Cc["@mozilla.org/binaryinputstream;1"]
.createInstance(Ci.nsIBinaryInputStream);
- var outputStream = Cc["@mozilla.org/binaryoutputstream;1"]
+ var binOutStream = Cc["@mozilla.org/binaryoutputstream;1"]
.createInstance(Ci.nsIBinaryOutputStream);
- inputStream.setInputStream(input);
- outputStream.setOutputStream(output);
- conn = { useCount: 0, socket: socket,
- inStream: inputStream, outStream: outputStream };
+ binInStream.setInputStream(inStream);
+ binOutStream.setOutputStream(outStream);
+ conn = { useCount: 0, socket: socket, inStream: inStream,
+ binInStream: binInStream, binOutStream: binOutStream };
// AUTHENTICATE
var pwdArg = this._strEscape(this.mControlPassword);
@@ -437,7 +509,7 @@ TorProtocolService.prototype =
return null;
}
- if (TorLauncherUtil.shouldStartAndOwnTor)
+ if (!aIsEventConnection && TorLauncherUtil.shouldStartAndOwnTor)
{
// Try to become the primary controller (TAKEOWNERSHIP).
reply = this._sendCommand(conn, "TAKEOWNERSHIP", null);
@@ -487,48 +559,48 @@ TorProtocolService.prototype =
cmd += "\r\n";
++aConn.useCount;
- aConn.outStream.writeBytes(cmd, cmd.length);
- reply = this._torReadReply(aConn.inStream);
+ aConn.binOutStream.writeBytes(cmd, cmd.length);
+ reply = this._torReadReply(aConn.binInStream);
}
return reply;
},
- // Returns a reply object.
+ // Returns a reply object. Blocks until entire reply has been received.
_torReadReply: function(aInput)
{
var replyObj = {};
- replyObj.statusCode = 0;
- replyObj.lineArray = [];
-
- var sepChar = '';
do
{
- // TODO: handle + separators (data)
var line = this._torReadLine(aInput);
TorLauncherLogger.safelog(2, "Command response: ", line);
- if (line.length < 4)
- {
- TorLauncherLogger.safelog(4, "Unexpected response: ", line);
- return null;
- }
-
- replyObj.statusCode = parseInt(line.substr(0, 3), 10);
- sepChar = line.charAt(3);
- var s = (line.length < 5) ? "" : line.substr(4);
- if (s != "OK") // Include all lines except simple "250 OK" ones.
- replyObj.lineArray.push(s);
- } while (sepChar != ' ');
+ } while (!this._parseOneReplyLine(line, replyObj));
- return replyObj;
+ return (replyObj._parseError) ? null : replyObj;
},
+ // Returns a string. Blocks until a line has been received.
_torReadLine: function(aInput)
{
var str = "";
- var bytes;
- while ((bytes = aInput.readBytes(1)) != "\n")
- str += bytes;
+ while(true)
+ {
+ try
+ {
+// TODO: readBytes() will sometimes hang if the control connection is opened
+// immediately after tor opens its listener socket. Why?
+ let bytes = aInput.readBytes(1);
+ if ('\n' == bytes)
+ break;
+
+ str += bytes;
+ }
+ catch (e)
+ {
+ if (e.result != Cr.NS_BASE_STREAM_WOULD_BLOCK)
+ throw e;
+ }
+ }
var len = str.length;
if ((len > 0) && ('\r' == str.substr(len - 1)))
@@ -536,6 +608,38 @@ TorProtocolService.prototype =
return str;
},
+ // Returns false if more lines are needed. The first time, callers
+ // should pass an empty aReplyObj.
+ // Parsing errors are indicated by aReplyObj._parseError = true.
+ _parseOneReplyLine: function(aLine, aReplyObj)
+ {
+ if (!aLine || !aReplyObj)
+ return false;
+
+ if (!("_parseError" in aReplyObj))
+ {
+ aReplyObj.statusCode = 0;
+ aReplyObj.lineArray = [];
+ aReplyObj._parseError = false;
+ }
+
+ if (aLine.length < 4)
+ {
+ TorLauncherLogger.safelog(4, "Unexpected response: ", aLine);
+ aReplyObj._parseError = true;
+ return true;
+ }
+
+ // TODO: handle + separators (data)
+ aReplyObj.statusCode = parseInt(aLine.substr(0, 3), 10);
+ var s = (aLine.length < 5) ? "" : aLine.substr(4);
+ // Include all lines except simple "250 OK" ones.
+ if ((aReplyObj.statusCode != this.kCmdStatusOK) || (s != "OK"))
+ aReplyObj.lineArray.push(s);
+
+ return (aLine.charAt(3) == ' ');
+ },
+
// _parseReply() understands simple GETCONF and GETINFO replies.
_parseReply: function(aCmd, aKey, aReply)
{
@@ -948,6 +1052,110 @@ TorProtocolService.prototype =
return this.mRNGService;
},
+ _waitForEventData: function()
+ {
+ if (!this.mEventMonitorConnection)
+ return;
+
+ var _this = this;
+ var eventReader = // An implementation of nsIInputStreamCallback.
+ {
+ onInputStreamReady: function(aInStream)
+ {
+ if (_this.mEventMonitorConnection.inStream != aInStream)
+ return;
+
+ var binStream = _this.mEventMonitorConnection.binInStream;
+ var bytes = binStream.readBytes(binStream.available());
+ if (!_this.mEventMonitorBuffer)
+ _this.mEventMonitorBuffer = bytes;
+ else
+ _this.mEventMonitorBuffer += bytes;
+ _this._processEventData();
+
+ _this._waitForEventData();
+ }
+ };
+
+ var curThread = Cc["@mozilla.org/thread-manager;1"].getService()
+ .currentThread;
+ var asyncInStream = this.mEventMonitorConnection.inStream
+ .QueryInterface(Ci.nsIAsyncInputStream);
+ asyncInStream.asyncWait(eventReader, 0, 0, curThread);
+ },
+
+ _processEventData: function()
+ {
+ var replyData = this.mEventMonitorBuffer;
+ if (!replyData)
+ return;
+
+ var idx = -1;
+ do
+ {
+ idx = replyData.indexOf('\n');
+ if (idx >= 0)
+ {
+ let line = replyData.substring(0, idx);
+ replyData = replyData.substring(idx + 1);
+ let len = line.length;
+ if ((len > 0) && ('\r' == line.substr(len - 1)))
+ line = line.substr(0, len - 1);
+
+ TorLauncherLogger.safelog(2, "Event response: ", line);
+ if (!this.mEventMonitorInProgressReply)
+ this.mEventMonitorInProgressReply = {};
+ var replyObj = this.mEventMonitorInProgressReply;
+ var isComplete = this._parseOneReplyLine(line, replyObj);
+ if (isComplete)
+ {
+ this._processEventReply(replyObj);
+ this.mEventMonitorInProgressReply = null;
+ }
+ }
+ } while ((idx >= 0) && replyData)
+
+ this.mEventMonitorBuffer = replyData;
+ },
+
+ _processEventReply: function(aReply)
+ {
+ if (aReply._parseError || (0 == aReply.lineArray.length))
+ return;
+
+ if (aReply.statusCode != this.kCmdStatusEventNotification)
+ {
+ TorLauncherLogger.log(4, "Unexpected event status code: "
+ + aReply.statusCode);
+ return;
+ }
+
+ // TODO: do we need to handle multiple lines?
+ let s = aReply.lineArray[0];
+ let idx = s.indexOf(' ');
+ if ((idx > 0))
+ {
+ let eventType = s.substring(0, idx);
+ switch (eventType)
+ {
+ case "DEBUG":
+ case "INFO":
+ case "NOTICE":
+ case "WARN":
+ case "ERR":
+ var now = new Date();
+ let logObj = { date: now, type: eventType, msg: s.substr(idx) };
+ if (!this.mTorLog)
+ this.mTorLog = [];
+ this.mTorLog.push(logObj);
+ break;
+ case "STATUS_CLIENT":
+ /*FALLTHRU*/
+ default:
+ this._dumpObj(eventType + "_event", aReply);
+ }
+ }
+ },
// Debugging Methods ///////////////////////////////////////////////////////
_dumpObj: function(aObjDesc, aObj)
@@ -962,7 +1170,16 @@ TorProtocolService.prototype =
}
for (var prop in aObj)
- dump(aObjDesc + "." + prop + ": " + aObj[prop] + "\n");
+ {
+ let val = aObj[prop];
+ if (Array.isArray(val))
+ {
+ for (let i = 0; i < val.length; ++i)
+ dump(aObjDesc + "." + prop + "[" + i + "]: " + val + "\n");
+ }
+ else
+ dump(aObjDesc + "." + prop + ": " + val + "\n");
+ }
},
endOfObject: true
1
0
17 Apr '13
commit bbaeaab13dbfa9416d2624043aba19b4fad28098
Author: Nick Mathewson <nickm(a)torproject.org>
Date: Tue Apr 16 11:39:55 2013 -0400
Document changes from #8273 and #8435
These patches changed how authorities use (and don't use!) advertised
bandwidths when there are also measured bandwidths.
I also note the advisibility of #8710, and document the dubious
behavior that exists until #8710 is fixed.
---
dir-spec.txt | 29 +++++++++++++++++++++++++----
1 files changed, 25 insertions(+), 4 deletions(-)
diff --git a/dir-spec.txt b/dir-spec.txt
index d139808..e1e85f7 100644
--- a/dir-spec.txt
+++ b/dir-spec.txt
@@ -1659,13 +1659,30 @@
3.4. Assigning flags in a vote
(This section describes how directory authorities choose which status
- flags to apply to routers, as of Tor 0.2.0.0-alpha-dev. Later directory
- authorities MAY do things differently, so long as clients keep working
- well. Clients MUST NOT depend on the exact behaviors in this section.)
+ flags to apply to routers. Later directory authorities MAY do things
+ differently, so long as clients keep working well. Clients MUST NOT
+ depend on the exact behaviors in this section.)
In the below definitions, a router is considered "active" if it is
running, valid, and not hibernating.
+ When we speak of a router's bandwidth in this section, we mean either
+ its measured bandwidth, or its advertised bandwidth. If a sufficient
+ threshold (configurable with MinMeasuredBWsForAuthToIgnoreAdvertised,
+ 500 by default) of routers have measured bandwidth values, then the
+ authority bases flags on _measured_ bandwidths, and treats nodes with
+ non-measured bandwidths as if their bandwidths were zero. Otherwise,
+ it uses measured bandwidths for nodes that have them, and advertised
+ bandwidths for other nodes.
+
+ When computing thresholds based on percentiles of nodes, an authority
+ only considers nodes that are active, nodes that have not been
+ omitted as a sybil (see below), and nodes whose bandwidth is at least
+ 4 KB. Nodes that don't meet these criteria do not influence any
+ threshold calculations (including calculation of stability and uptime
+ and bandwidth thresholds) and also do not have their Exit status
+ change.
+
"Valid" -- a router is 'Valid' if it is running a version of Tor not
known to be broken, and the directory authority has not blacklisted
it as suspicious.
@@ -1752,9 +1769,13 @@
Authorities SHOULD 'disable' any relays in excess of 3 on any single IP.
When there are more than 3 to choose from, authorities should first prefer
authorities to non-authorities, then prefer Running to non-Running, and
- then prefer high-bandwidth to low-bandwidth. To 'disable' a relay, the
+ then prefer high-bandwidth to low-bandwidth[*]. To 'disable' a relay, the
authority *should* advertise it without the Running or Valid flag.
+ [*] In this comparison, measured bandwidth is used unless it is not
+ present for a router, in which case advertised bandwidth is used.
+ Bug 8710 has a patch to change this behavior.
+
Thus, the network-status vote includes all non-blacklisted,
non-expired, non-superseded descriptors.
1
0