mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-16 01:37:25 -05:00
fixed test_load_strings_loads_other_languages, because french strings were updated
This commit is contained in:
parent
8c9bcdad6d
commit
e4f0e5e8b3
@ -1,3 +1,4 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
OnionShare | https://onionshare.org/
|
OnionShare | https://onionshare.org/
|
||||||
|
|
||||||
@ -34,6 +35,5 @@ def test_load_strings_loads_other_languages():
|
|||||||
"load_strings() loads other languages in different locales"
|
"load_strings() loads other languages in different locales"
|
||||||
locale.getdefaultlocale = lambda: ('fr_FR', 'UTF-8')
|
locale.getdefaultlocale = lambda: ('fr_FR', 'UTF-8')
|
||||||
strings.load_strings("fr")
|
strings.load_strings("fr")
|
||||||
assert strings._('calculating_sha1') == "Calculer un hachage SHA-1."
|
assert strings._('calculating_sha1') == "Calculer une somme de contrôle SHA-1."
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user