Skip to content

Commit

Permalink
Add Ukrainian language (#712)
Browse files Browse the repository at this point in the history
* Add Ukrainian flag and set font
* Minor fixes to the English text
* Add Ukrainian localization
* Reorder flags, replace "jigo (draw)" with "jigo"
* Shorten translation of winrate to make icon fit
  • Loading branch information
lykahb authored Sep 26, 2024
1 parent 2bc8d1a commit da9ec85
Show file tree
Hide file tree
Showing 6 changed files with 1,069 additions and 3 deletions.
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"}

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 @@ -1069,6 +1069,9 @@
LangButton:
icon: 'flags/flag-fr.png'
on_press: app.language = 'fr'
LangButton:
icon: 'flags/flag-ua.png'
on_press: app.language = 'ua'
# LangButton:
# icon: 'flags/flag-es.png'
# on_press: app.language = 'es'
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
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

0 comments on commit da9ec85

Please sign in to comment.