From 2d2fc654d5c7b836773e7c9b121f10cf4acc5c29 Mon Sep 17 00:00:00 2001 From: Hannes Krumbiegel Date: Sat, 25 Feb 2023 00:29:41 +0100 Subject: [PATCH] Fix Chinese --- tatoeba_to_anki/ankideckcreator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tatoeba_to_anki/ankideckcreator.py b/tatoeba_to_anki/ankideckcreator.py index 57b6967..9b12bbb 100644 --- a/tatoeba_to_anki/ankideckcreator.py +++ b/tatoeba_to_anki/ankideckcreator.py @@ -70,6 +70,8 @@ def __init__( # using pycountry if self.source_language == "Filipino": self.source_language_code = "tgl" # This is what Tatoeba uses + elif self.source_language == "Chinese": + self.source_language_code = "cmn" # This is what Tatoeba uses else: self.source_language_code = pycountry.languages.get( name=self.source_language