Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ukrainian language #712

Merged
merged 5 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion katrain/core/lang.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class Lang(Observable):
observers = []
callbacks = []
FONTS = {"jp": "NotoSansJP-Regular.otf", "tr": "NotoSans-Regular.ttf"}
FONTS = {"jp": "NotoSansJP-Regular.otf", "tr": "NotoSans-Regular.ttf", "ua": "NotoSans-Regular.ttf"}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default font didn't display several letters.


def __init__(self, lang):
super(Lang, self).__init__()
Expand Down
3 changes: 3 additions & 0 deletions katrain/gui.kv
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,9 @@
LangButton:
icon: 'flags/flag-tr.png'
on_press: app.language = 'tr'
LangButton:
icon: 'flags/flag-ua.png'
on_press: app.language = 'ua'
BoxLayout:
size_hint: 1,None
height: root.item_height
Expand Down
4 changes: 2 additions & 2 deletions katrain/i18n/locales/en/LC_MESSAGES/katrain.po
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ msgstr "KataGo"

msgid "aihelp:default"
msgstr ""
"Full strength KataGo AI. Strength is affected by 'max visits' and 'model' "
"Full strength KataGo AI. Strength is affected by 'max visits' and 'model' "
"in the general settings 'engine' section and engine configuration file. No "
"options are available here."

Expand Down Expand Up @@ -920,7 +920,7 @@ msgstr "{num} available katago versions found"
msgid "All models downloaded"
msgstr "All available models already downloaded"

#. error message on trying to download models when already done
#. error message on trying to download katago when already done
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drive-by improvements

msgid "All binaries downloaded"
msgstr "All available binaries already downloaded"

Expand Down
Binary file added katrain/i18n/locales/ua/LC_MESSAGES/katrain.mo
Binary file not shown.
Loading