Add Thai GUI language option by Wenjunyun123 · Pull Request #1153 · PDFMathTranslate/PDFMathTranslate · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/README_GUI.md
1 change: 1 addition & 0 deletions pdf2zh/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def __getattr__(self, name):
"Russian": "ru",
"Spanish": "es",
"Italian": "it",
"Thai": "th",
}

# The following variable associate strings with page ranges
Expand Down
1 change: 1 addition & 0 deletions pdf2zh/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,7 @@ def lang_mapping(input_lang: str) -> str:
"ru": "Russian",
"es": "Spanish",
"it": "Italian",
"th": "Thai",
}

return langdict[input_lang]
Expand Down
25 changes: 25 additions & 0 deletions test/test_gui_languages.py