Skip to content
Permalink
Browse files

[smmdata] more i18n support

  • Loading branch information...
fixator10 committed May 16, 2019
1 parent f7e19ba commit 1e7e4ee413e62d9b8cdc7e26b15c598ed9fcb09f
Showing with 32 additions and 8 deletions.
  1. +13 −1 smmdata/locales/messages.pot
  2. +15 −3 smmdata/locales/ru-RU.po
  3. +4 −4 smmdata/smmbookmark.py
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2019-05-16 17:53+0400\n"
"POT-Creation-Date: 2019-05-16 18:00+0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -15,6 +15,18 @@ msgstr ""
"Generated-By: redgettext 2.2\n"


msgid "Easy"
msgstr ""

msgid "Normal"
msgstr ""

msgid "Expert"
msgstr ""

msgid "Super Expert"
msgstr ""

msgid "Unable to find level {level}: {status}"
msgstr ""

@@ -5,8 +5,8 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2019-05-16 17:53+0400\n"
"PO-Revision-Date: 2019-05-16 17:54+0400\n"
"POT-Creation-Date: 2019-05-16 18:00+0400\n"
"PO-Revision-Date: 2019-05-16 18:01+0400\n"
"Last-Translator: Максим Невзоров\n"
"Language-Team: \n"
"Language: ru_RU\n"
@@ -18,6 +18,18 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"

msgid "Easy"
msgstr "Легкие"

msgid "Normal"
msgstr "Обычные"

msgid "Expert"
msgstr "Сложные"

msgid "Super Expert"
msgstr "Очень сложные"

msgid "Unable to find level {level}: {status}"
msgstr "Невозможно найти уровень {level}: {status}"

@@ -73,7 +85,7 @@ msgid "Easy clears"
msgstr "Легкие уровни"

msgid "Normal clears"
msgstr "Нормальные уровни"
msgstr "Обычные уровни"

msgid "Expert clears"
msgstr "Сложные уровни"
@@ -153,13 +153,13 @@ def best_player_time(self):

@property
def difficulty_color(self):
if self.difficulty == "Easy":
if self.difficulty == _("Easy"):
return 0x28AD8A
if self.difficulty == "Normal":
if self.difficulty == _("Normal"):
return 0x2691BC
if self.difficulty == "Expert":
if self.difficulty == _("Expert"):
return 0xEA348B
if self.difficulty == "Super Expert":
if self.difficulty == _("Super Expert"):
return 0xFF4545
return 0xF9CF00

0 comments on commit 1e7e4ee

Please sign in to comment.
You can’t perform that action at this time.