mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-06 13:24:24 -04:00
Merge branch 'develop' into 663_zip_away
This commit is contained in:
commit
33d7e112b7
19 changed files with 23 additions and 43 deletions
|
@ -47,22 +47,14 @@ class TestLoadStrings:
|
|||
self, common_obj, locale_en, sys_onionshare_dev_mode):
|
||||
""" load_strings() loads English by default """
|
||||
strings.load_strings(common_obj)
|
||||
assert strings._('wait_for_hs') == "Waiting for HS to be ready:"
|
||||
assert strings._('preparing_files') == "Preparing files to share."
|
||||
|
||||
|
||||
def test_load_strings_loads_other_languages(
|
||||
self, common_obj, locale_fr, sys_onionshare_dev_mode):
|
||||
""" load_strings() loads other languages in different locales """
|
||||
strings.load_strings(common_obj, "fr")
|
||||
assert strings._('wait_for_hs') == "En attente du HS:"
|
||||
|
||||
def test_load_partial_strings(
|
||||
self, common_obj, locale_ru, sys_onionshare_dev_mode):
|
||||
strings.load_strings(common_obj)
|
||||
assert strings._("give_this_url") == (
|
||||
"Отправьте эту ссылку тому человеку, "
|
||||
"которому вы хотите передать файл:")
|
||||
assert strings._('wait_for_hs') == "Waiting for HS to be ready:"
|
||||
assert strings._('preparing_files') == "Préparation des fichiers à partager."
|
||||
|
||||
def test_load_invalid_locale(
|
||||
self, common_obj, locale_invalid, sys_onionshare_dev_mode):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue