Merge pull request #959 from micahflee/958_verbose

Rename --debug to --verbose
This commit is contained in:
Micah Lee 2019-04-19 09:48:39 -07:00 committed by GitHub
commit e5366bdf0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
50 changed files with 65 additions and 65 deletions

View File

@ -61,7 +61,7 @@ def main(cwd=None):
parser.add_argument('--stealth', action='store_true', dest='stealth', help=strings._("help_stealth"))
parser.add_argument('--receive', action='store_true', dest='receive', help=strings._("help_receive"))
parser.add_argument('--config', metavar='config', default=False, help=strings._('help_config'))
parser.add_argument('--debug', action='store_true', dest='debug', help=strings._("help_debug"))
parser.add_argument('-v', '--verbose', action='store_true', dest='verbose', help=strings._("help_verbose"))
parser.add_argument('filename', metavar='filename', nargs='*', help=strings._('help_filename'))
args = parser.parse_args()
@ -70,7 +70,7 @@ def main(cwd=None):
filenames[i] = os.path.abspath(filenames[i])
local_only = bool(args.local_only)
debug = bool(args.debug)
verbose = bool(args.verbose)
stay_open = bool(args.stay_open)
autostart_timer = int(args.autostart_timer)
autostop_timer = int(args.autostop_timer)
@ -108,8 +108,8 @@ def main(cwd=None):
# Re-load the strings, in case the provided config has changed locale
strings.load_strings(common)
# Debug mode?
common.debug = debug
# Verbose mode?
common.verbose = verbose
# Create the Web object
web = Web(common, False, mode)

View File

@ -36,8 +36,8 @@ class Common(object):
"""
The Common object is shared amongst all parts of OnionShare.
"""
def __init__(self, debug=False):
self.debug = debug
def __init__(self, verbose=False):
self.verbose = verbose
# The platform OnionShare is running on
self.platform = platform.system()
@ -57,9 +57,9 @@ class Common(object):
def log(self, module, func, msg=None):
"""
If debug mode is on, log error messages to stdout
If verbose mode is on, log error messages to stdout
"""
if self.debug:
if self.verbose:
timestamp = time.strftime("%b %d %Y %X")
final_msg = "[{}] {}.{}".format(timestamp, module, func)

View File

@ -54,9 +54,9 @@ class Web(object):
template_folder=self.common.get_resource_path('templates'))
self.app.secret_key = self.common.random_string(8)
# Debug mode?
if self.common.debug:
self.debug_mode()
# Verbose mode?
if self.common.verbose:
self.verbose_mode()
# Are we running in GUI mode?
self.is_gui = is_gui
@ -196,12 +196,12 @@ class Web(object):
self.slug = self.common.build_slug()
self.common.log('Web', 'generate_slug', 'built random slug: "{}"'.format(self.slug))
def debug_mode(self):
def verbose_mode(self):
"""
Turn on debugging mode, which will log flask errors to a debug file.
Turn on verbose mode, which will log flask errors to a file.
"""
flask_debug_filename = os.path.join(self.common.build_data_dir(), 'flask_debug.log')
log_handler = logging.FileHandler(flask_debug_filename)
flask_log_filename = os.path.join(self.common.build_data_dir(), 'flask.log')
log_handler = logging.FileHandler(flask_log_filename)
log_handler.setLevel(logging.WARNING)
self.app.logger.addHandler(log_handler)

View File

@ -81,7 +81,7 @@ def main():
# Parse arguments
parser = argparse.ArgumentParser(formatter_class=lambda prog: argparse.HelpFormatter(prog,max_help_position=48))
parser.add_argument('--local-only', action='store_true', dest='local_only', help=strings._("help_local_only"))
parser.add_argument('--debug', action='store_true', dest='debug', help=strings._("help_debug"))
parser.add_argument('-v', '--verbose', action='store_true', dest='verbose', help=strings._("help_verbose"))
parser.add_argument('--filenames', metavar='filenames', nargs='+', help=strings._('help_filename'))
parser.add_argument('--config', metavar='config', default=False, help=strings._('help_config'))
args = parser.parse_args()
@ -98,10 +98,10 @@ def main():
strings.load_strings(common)
local_only = bool(args.local_only)
debug = bool(args.debug)
verbose = bool(args.verbose)
# Debug mode?
common.debug = debug
# Verbose mode?
common.verbose = verbose
# Validation
if filenames:

View File

@ -29,7 +29,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "أوقف المشاركة بعد ثواني محددة",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "قائمة الملفات أو المجلدات للمشاركة",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -29,7 +29,7 @@
"help_autostop_timer": "Спри споделянето след дадено количество секунди",
"help_stealth": "Използвай клиент авторизация (напреднал)",
"help_receive": "Получаване на дялове вместо изпращане",
"help_debug": "Протоколирай OnionShare грешки на stdout и уеб грешки на диск",
"help_verbose": "Протоколирай OnionShare грешки на stdout и уеб грешки на диск",
"help_filename": "Списък на документи или папки за споделяне",
"help_config": "Персонализирано местоположение на JSON конфигурационен файл (незадължително)",
"gui_drag_and_drop": "Плъзнете и пуснете файлове и папки, \nза да започнете споделяне",

View File

@ -29,7 +29,7 @@
"help_autostop_timer": "নির্দিষ্ট সেকেন্ডের পর শেয়ার করা বন্ধ করে দিও",
"help_stealth": "ক্লায়েন্ট অনুমোদন ব্যবহার করুন (উন্নততর)",
"help_receive": "কোনকিছু শেয়ার না করে শুধু গ্রহণ করবে",
"help_debug": "OnionShare-এর এররগুলো stdout-এ দেখাও, আর ওয়েব এররগুলো ডিস্কে লগ করো",
"help_verbose": "OnionShare-এর এররগুলো stdout-এ দেখাও, আর ওয়েব এররগুলো ডিস্কে লগ করো",
"help_filename": "শেয়ার করার জন্য ফাইল বা ফোল্ডারের লিস্ট",
"help_config": "কাস্টম JSON কনফিগারেশন ফাইলের লোকেশন (যদি থাকে)",
"gui_drag_and_drop": "শেয়ার করা শুরু করতে\nফাইল এবং ফোল্ডারগুলো ড্র্যাগ করে ড্রপ করুন",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "Deixa de compartir al cap de tants segons",
"help_stealth": "Fes servir autorització de client (avançat)",
"help_receive": "Rep recursos en comptes d'enviar-los",
"help_debug": "Envia els errors d'OnionShare a stdout i els errors web al disc",
"help_verbose": "Envia els errors d'OnionShare a stdout i els errors web al disc",
"help_filename": "Llista d'arxius o carpetes a compartir",
"help_config": "Ubicació de la configuració JSON personalitzada",
"gui_drag_and_drop": "Arrossega arxius i carpetes\nper començar a compartir",

View File

@ -11,7 +11,7 @@
"help_local_only": "Nepoužívat Tor: jen pro vývoj",
"help_stay_open": "Nechat běžet onion service po skončení stahování",
"help_stealth": "Create stealth onion service (advanced)",
"help_debug": "Zaznamenat chyby na disk",
"help_verbose": "Zaznamenat chyby na disk",
"help_filename": "Seznam souborů a složek ke sdílení",
"gui_drag_and_drop": "Táhni a pusť\nsoubory sem",
"gui_add": "Přidat",

View File

@ -23,7 +23,7 @@
"help_stay_open": "Fortsæt deling efter filerne er blevet sendt",
"help_autostop_timer": "Stop deling efter et vist antal sekunder",
"help_stealth": "Brug klientautentifikation (avanceret)",
"help_debug": "Log OnionShare-fejl til stdout, og webfejl til disk",
"help_verbose": "Log OnionShare-fejl til stdout, og webfejl til disk",
"help_filename": "Liste over filer eller mapper som skal deles",
"help_config": "Tilpasset placering af JSON-konfigurationsfil (valgfri)",
"gui_drag_and_drop": "Træk og slip filer og mapper her\nfor at starte deling",

View File

@ -8,7 +8,7 @@
"large_filesize": "Warnung: Das Hochladen von großen Dateien kann Stunden dauern",
"help_local_only": "Tor nicht verwenden (nur für Entwicklung)",
"help_stay_open": "Den Server weiterlaufen lassen, nachdem die Dateien verschickt wurden",
"help_debug": "Schreibe Fehler von OnionShare nach stdout und Webfehler auf die Festplatte",
"help_verbose": "Schreibe Fehler von OnionShare nach stdout und Webfehler auf die Festplatte",
"help_filename": "Liste der zu teilenden Dateien oder Ordner",
"gui_drag_and_drop": "Dateien und Ordner hierher ziehen\num sie zu teilen",
"gui_add": "Hinzufügen",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "Να τερματιστεί ο διαμοιρασμός μετά από ένα συγκεκριμένο αριθμό δευτερολέπτων",
"help_stealth": "Κάντε χρήση εξουσιοδότησης πελάτη (Για προχωρημένους)",
"help_receive": "Λάβετε διαμοιρασμένα αρχεία αντι να τα στέλνετε",
"help_debug": "Κατέγραψε τα σφάλματα του OnionShare στο stdout (συνήθως οθόνη) και τα σφάλματα web στον δίσκο",
"help_verbose": "Κατέγραψε τα σφάλματα του OnionShare στο stdout (συνήθως οθόνη) και τα σφάλματα web στον δίσκο",
"help_filename": "Λίστα αρχείων ή φακέλων για μοίρασμα",
"help_config": "Ορίστε σημείο αποθήκευσης αρχείου JSON",
"gui_drag_and_drop": "Σύρτε και αφήστε αρχεία και φακέλους\nγια να αρχίσετε να τα μοιράζεστε",

View File

@ -25,7 +25,7 @@
"help_connect_timeout": "Give up connecting to Tor after a given amount of seconds (default: 120)",
"help_stealth": "Use client authorization (advanced)",
"help_receive": "Receive shares instead of sending them",
"help_debug": "Log OnionShare errors to stdout, and web errors to disk",
"help_verbose": "Log OnionShare errors to stdout, and web errors to disk",
"help_filename": "List of files or folders to share",
"help_config": "Custom JSON config file location (optional)",
"gui_drag_and_drop": "Drag and drop files and folders\nto start sharing",

View File

@ -11,7 +11,7 @@
"help_local_only": "Ne strebu uzi tor: nur por evoluado",
"help_stay_open": "Lasu onion service funkcii post fino de elŝuto",
"help_stealth": "Create stealth onion service (advanced)",
"help_debug": "Protokoli erarojn sur disko",
"help_verbose": "Protokoli erarojn sur disko",
"help_filename": "Listo de dosieroj aŭ dosierujoj por kundividi",
"gui_drag_and_drop": "Ŝovu kaj metu\nla dosierojn ĉi tien",
"gui_add": "Aldoni",

View File

@ -7,7 +7,7 @@
"closing_automatically": "Detenido porque la transferencia se completó",
"help_local_only": "No usar Tor (sólo para desarrollo)",
"help_stay_open": "Continuar compartiendo luego que los archivos hayan sido enviados",
"help_debug": "Enviar los errores de OnionShare a stdout, y los errores web al disco",
"help_verbose": "Enviar los errores de OnionShare a stdout, y los errores web al disco",
"help_filename": "Lista de archivos o carpetas para compartir",
"gui_drag_and_drop": "Arrastra y suelta archivos y carpetas\npara empezar a compartir",
"gui_add": "Añadir",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "توقف به اشتراک گذاری پس از میزان ثانیه ای مشخص",
"help_stealth": "استفاده از احراز هویت کلاینت (پیشرفته)",
"help_receive": "دریافت اشتراک به جای ارسال آن",
"help_debug": "لاگ کردن خطاهای OnionShare روی stdout، و خطاهای وب بر روی دیسک",
"help_verbose": "لاگ کردن خطاهای OnionShare روی stdout، و خطاهای وب بر روی دیسک",
"help_filename": "لیست فایل ها یا فولدر ها برای به اشتراک گذاری",
"help_config": "مکان فایل کانفیگ JSON کاستوم (اختیاری)",
"gui_drag_and_drop": "فایل ها و پوشه ها را بکشید و رها کنید\nتا اشتراک گذاری آغاز شود",

View File

@ -8,7 +8,7 @@
"large_filesize": "Varoitus: Ison tiedoston lähetys saattaa kestää tunteja",
"help_local_only": "Älä käytä Toria (vain kehitykseen)",
"help_stay_open": "Jatka jakoa tiedostojen lähetyksen jälkeen",
"help_debug": "Kirjaa OnionShare virheet stdout:tiin, ja verkko virheet levylle",
"help_verbose": "Kirjaa OnionShare virheet stdout:tiin, ja verkko virheet levylle",
"help_filename": "Luettele jaettavat tiedostot tai kansiot",
"gui_drag_and_drop": "Vedä ja pudota\ntiedostot tänne",
"gui_add": "Lisää",

View File

@ -13,7 +13,7 @@
"systray_download_canceled_message": "La personne a annulé le téléchargement",
"help_local_only": "Ne pas utiliser Tor (uniquement pour le développement)",
"help_stay_open": "Continuer le partage après lenvoi des fichiers",
"help_debug": "Journaliser les erreurs dOnionShare sur la sortie standard et les erreurs Web sur le disque",
"help_verbose": "Journaliser les erreurs dOnionShare sur la sortie standard et les erreurs Web sur le disque",
"help_filename": "Liste des fichiers ou dossiers à partager",
"gui_drag_and_drop": "Glisser-déposer des fichiers et dossiers\npour commencer le partage",
"gui_add": "Ajouter",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "Stop ag comhroinnt tar éis líon áirithe soicindí",
"help_stealth": "Úsáid údarú cliaint (ardleibhéal)",
"help_receive": "Glac le comhaid chomhroinnte in áit iad a sheoladh",
"help_debug": "Déan tuairisc ar earráidí OnionShare ar stdout, agus earráidí Gréasáin ar an diosca",
"help_verbose": "Déan tuairisc ar earráidí OnionShare ar stdout, agus earráidí Gréasáin ar an diosca",
"help_filename": "Liosta comhad nó fillteán le comhroinnt",
"help_config": "Suíomh saincheaptha don chomhad cumraíochta JSON (roghnach)",
"gui_drag_and_drop": "Tarraing agus scaoil comhaid agus fillteáin\nchun iad a chomhroinnt",

View File

@ -29,7 +29,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -29,7 +29,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -18,7 +18,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "Berhenti berbagi setelah beberapa detik",
"help_stealth": "Gunakan otorisasi klien (lanjutan)",
"help_receive": "",
"help_debug": "Catat kesalahan OnionShare ke stdout, dan kesalahan web ke disk",
"help_verbose": "Catat kesalahan OnionShare ke stdout, dan kesalahan web ke disk",
"help_filename": "Daftar berkas atau folder untuk dibagikan",
"help_config": "",
"gui_drag_and_drop": "Seret dan lepas berkas dan folder\nuntuk mulai berbagi",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -8,7 +8,7 @@
"large_filesize": "Attenzione: inviare file di grandi dimensioni può richiedere ore",
"help_local_only": "Non usare Tor (solo per lo sviluppo)",
"help_stay_open": "Mantieni la condivisione attiva anche dopo che i file sono stati inviati",
"help_debug": "Registra gli errori sul disco",
"help_verbose": "Registra gli errori sul disco",
"help_filename": "Lista dei file o cartelle da condividere",
"gui_drag_and_drop": "Trascina e rilascia i file e le cartelle per iniziare la condivisione",
"gui_add": "Aggiungi",

View File

@ -29,7 +29,7 @@
"help_autostop_timer": "数秒後に共有が停止されます",
"help_stealth": "クライアント認証を使う(上級者向け)",
"help_receive": "共有を送信する代わりに受信する",
"help_debug": "OnionShareのエラーを標準出力に、Webのエラーをディスクに記録する",
"help_verbose": "OnionShareのエラーを標準出力に、Webのエラーをディスクに記録する",
"help_filename": "共有するファイルとフォルダの一覧",
"help_config": "カスタムJSON設定ファイルの位置任意",
"gui_drag_and_drop": "共有を始めるにはファイルやフォルダをドラッグアンドドロップしてください",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -29,7 +29,7 @@
"help_autostop_timer": "정해진 초단위의 시간이 지난후 공유하는 것을 멈추시오",
"help_stealth": "고객 허가를 사용 (고급 수준의)",
"help_receive": "그것들을 보내는것 대신 공유를 받으시오",
"help_debug": "어니언쉐어 에러들은 표준 출력 장치로 접속하고, 웹 에러들은 디스크로 접속 ",
"help_verbose": "어니언쉐어 에러들은 표준 출력 장치로 접속하고, 웹 에러들은 디스크로 접속 ",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -29,7 +29,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -18,7 +18,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -23,7 +23,7 @@
"help_stay_open": "Blijven delen na afronden van eerste download",
"help_autostop_timer": "Stoppen met delen na het opgegeven aantal seconden",
"help_stealth": "Client-authorisatie gebruiken (geavanceerd)",
"help_debug": "Log OnionShare fouten naar stdout, en web fouten naar disk",
"help_verbose": "Log OnionShare fouten naar stdout, en web fouten naar disk",
"help_filename": "Lijst van bestanden of mappen om te delen",
"help_config": "Instelbaar pad naar JSON configuratie bestand (optioneel)",
"gui_drag_and_drop": "Sleep en zet\nbestanden hier neer om het delen te starten",

View File

@ -29,7 +29,7 @@
"help_autostop_timer": "Stopp deling etter et gitt antall sekunder",
"help_stealth": "Bruk klientidentifisering (avansert)",
"help_receive": "Motta delinger istedenfor å sende dem",
"help_debug": "Log OnionShare-feil til stdout, og vev-feil til disk",
"help_verbose": "Log OnionShare-feil til stdout, og vev-feil til disk",
"help_filename": "Liste over filer eller mapper å dele",
"help_config": "Egendefinert JSON-oppsettsfil (valgfri)",
"gui_drag_and_drop": "Dra og slipp filer og mapper\nfor å starte deling",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "Przestań udostępniać po określonym czasie w sekundach",
"help_stealth": "Korzystaj z weryfikacji klienta (zaawansowane)",
"help_receive": "Odbieraj dane zamiast je wysyłać",
"help_debug": "Zapisz błędy OnionShare do stdout i zapisz błędy sieciowe na dysku",
"help_verbose": "Zapisz błędy OnionShare do stdout i zapisz błędy sieciowe na dysku",
"help_filename": "Lista plików i folderów do udostępnienia",
"help_config": "Lokalizacja niestandarowego pliku konfiguracyjnego JSON (opcjonalne)",
"gui_drag_and_drop": "Przeciągnij i upuść pliki i foldery\naby je udostępnić",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "Parar de compartilhar após um número determinado de segundos",
"help_stealth": "Usar autorização de cliente (avançado)",
"help_receive": "Receber compartilhamentos ao invés de enviá-los",
"help_debug": "Registrar erros do OnionShare no stdout e erros de rede, no disco",
"help_verbose": "Registrar erros do OnionShare no stdout e erros de rede, no disco",
"help_filename": "Lista de arquivos ou pastas a compartilhar",
"help_config": "Personalizar a configuração JSON de localização de arquivos (opcional)",
"gui_drag_and_drop": "Arrastar arquivos e pastas\npara começar a compartilhá-los",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -54,7 +54,7 @@
"help_autostop_timer": "Остановить отправку после заданного количества секунд",
"help_stealth": "Использовать авторизацию клиента (дополнительно)",
"help_receive": "Получать загрузки вместо их отправки",
"help_debug": "Направлять сообщения об ошибках OnionShare в stdout, ошибки сети сохранять на диск",
"help_verbose": "Направлять сообщения об ошибках OnionShare в stdout, ошибки сети сохранять на диск",
"help_filename": "Список файлов или папок для отправки",
"help_config": "Расположение пользовательского конфигурационного JSON-файла (необязательно)",
"gui_drag_and_drop": "Перетащите сюда файлы и/или папки,\nкоторые хотите отправить.",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -29,7 +29,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -29,7 +29,7 @@
"help_autostop_timer": "Sluta dela efter ett bestämt antal sekunder",
"help_stealth": "Använd klient-auktorisering (avancerat)",
"help_receive": "Ta emot delningar istället för att skicka dem",
"help_debug": "Logga OnionShare fel till stdout och webbfel till hårddisken",
"help_verbose": "Logga OnionShare fel till stdout och webbfel till hårddisken",
"help_filename": "Lista filer och mappar att dela",
"help_config": "Egenvald sökväg för JSON konfigurationsfil (valfri)",
"gui_drag_and_drop": "Dra och släpp filer och mappar\nför att börja delning",

View File

@ -8,7 +8,7 @@
"large_filesize": "Uyarı: Büyük dosyaların gönderimi saatler sürebilir",
"help_local_only": "Tor kullanmaya kalkışmayın: sadece geliştirme için",
"help_stay_open": "İndirme tamamlandıktan sonra gizli hizmeti çalıştırmaya devam et",
"help_debug": "Hata kayıtlarını diske kaydet",
"help_verbose": "Hata kayıtlarını diske kaydet",
"help_filename": "Paylaşmak için dosya ve klasörler listesi",
"gui_drag_and_drop": "Dosyaları buraya\n Sürükle ve Bırak",
"gui_add": "Ekle",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -29,7 +29,7 @@
"help_autostop_timer": "",
"help_stealth": "",
"help_receive": "",
"help_debug": "",
"help_verbose": "",
"help_filename": "",
"help_config": "",
"gui_drag_and_drop": "",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "超过给定时间(秒)后终止分享",
"help_stealth": "使用服务端认证(高级选项)",
"help_receive": "仅接收分享的文件,不发送",
"help_debug": "将OnionShare错误日志记录到stdout将web错误日志记录到磁盘",
"help_verbose": "将OnionShare错误日志记录到stdout将web错误日志记录到磁盘",
"help_filename": "要分享的文件或文件夹的列表",
"help_config": "自定义JSON配置文件的路径(可选)",
"gui_drag_and_drop": "将文件或文件夹拖动到这里来开始分享",

View File

@ -28,7 +28,7 @@
"help_autostop_timer": "在所給定的秒數後停止分享",
"help_stealth": "使用客戶端認證 (進階選項)",
"help_receive": "接收分享的檔案而不是傳送他們",
"help_debug": "將OnionShare的錯誤日誌輸出到stdout, 並且將網路錯誤輸出到硬碟",
"help_verbose": "將OnionShare的錯誤日誌輸出到stdout, 並且將網路錯誤輸出到硬碟",
"help_filename": "列舉所要分享的檔案或資料夾",
"help_config": "自定義的JSON設置檔路徑(選擇性)",
"gui_drag_and_drop": "拖曳檔案及資料夾來開始分享",

View File

@ -268,7 +268,7 @@ class TestLog:
def dummy_func():
pass
common_obj.debug = True
common_obj.verbose = True
# From: https://stackoverflow.com/questions/1218933
with io.StringIO() as buf, contextlib.redirect_stdout(buf):