Add Ukrainian language (#712)
* 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
This commit is contained in:
1 parent
2bc8d1a056
commit
da9ec8596a
6 files changed
+1069
-3
No files matched your search
@@ -11,7 +11,7 @@ from katrain.gui.theme import Theme
|
|||||||
class Lang(Observable):
|
class Lang(Observable):
|
||||||
observers = []
|
observers = []
|
||||||
callbacks = []
|
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):
|
def __init__(self, lang):
|
||||||
super(Lang, self).__init__()
|
super(Lang, self).__init__()
|
||||||
|
|||||||
@@ -1069,6 +1069,9 @@
|
|||||||
LangButton:
|
LangButton:
|
||||||
icon: 'flags/flag-fr.png'
|
icon: 'flags/flag-fr.png'
|
||||||
on_press: app.language = 'fr'
|
on_press: app.language = 'fr'
|
||||||
|
LangButton:
|
||||||
|
icon: 'flags/flag-ua.png'
|
||||||
|
on_press: app.language = 'ua'
|
||||||
# LangButton:
|
# LangButton:
|
||||||
# icon: 'flags/flag-es.png'
|
# icon: 'flags/flag-es.png'
|
||||||
# on_press: app.language = 'es'
|
# on_press: app.language = 'es'
|
||||||
|
|||||||
@@ -765,7 +765,7 @@ msgstr "KataGo"
|
|||||||
|
|
||||||
msgid "aihelp:default"
|
msgid "aihelp:default"
|
||||||
msgstr ""
|
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 "
|
"in the general settings 'engine' section and engine configuration file. No "
|
||||||
"options are available here."
|
"options are available here."
|
||||||
|
|
||||||
@@ -920,7 +920,7 @@ msgstr "{num} available katago versions found"
|
|||||||
msgid "All models downloaded"
|
msgid "All models downloaded"
|
||||||
msgstr "All available models already 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"
|
msgid "All binaries downloaded"
|
||||||
msgstr "All available binaries already downloaded"
|
msgstr "All available binaries already downloaded"
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
File diff suppressed because it is too large.
Load diff
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Reference in new issue
Block a user