2020-02-23 05:57:02 +01:00
|
|
|
import anki.lang
|
2021-01-31 06:55:08 +01:00
|
|
|
from anki.lang import TR
|
2020-02-23 05:57:02 +01:00
|
|
|
|
|
|
|
|
|
|
|
def test_no_collection_i18n():
|
|
|
|
anki.lang.set_lang("zz", "")
|
|
|
|
tr2 = anki.lang.current_i18n.translate
|
|
|
|
no_uni = anki.lang.without_unicode_isolation
|
2020-02-27 03:25:19 +01:00
|
|
|
assert no_uni(tr2(TR.STATISTICS_REVIEWS, reviews=2)) == "2 reviews"
|
2020-02-23 05:57:02 +01:00
|
|
|
|
|
|
|
anki.lang.set_lang("ja", "")
|
|
|
|
tr2 = anki.lang.current_i18n.translate
|
2020-02-27 03:25:19 +01:00
|
|
|
assert no_uni(tr2(TR.STATISTICS_REVIEWS, reviews=2)) == "2 枚の復習カード"
|