Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

localization

  • Loading branch information...
commit 78df7afc456936a234e8ddda02b6535040da4b58 1 parent 286f703
@baverman authored
View
60 i18n/messages.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: typetrainer\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-02-12 10:22+1000\n"
+"POT-Creation-Date: 2011-02-14 16:25+1000\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"
@@ -36,28 +36,32 @@ msgstr ""
msgid "Can't read [%s]"
msgstr ""
-#: ../typetrainer/tutors/help.py:8
-msgid ""
-"Press right mouse button. Click right mouse button to select other tutors. "
-"Choose a file with words. Click right mouse button at any window spot."
+#: ../typetrainer/tutors/en.py:7
+msgid "English"
msgstr ""
-#: ../typetrainer/tutors/__init__.py:6
-msgid "Basic English"
+#: ../typetrainer/tutors/en.py:10 ../typetrainer/tutors/ru.py:11
+msgid "Basic"
msgstr ""
-#: ../typetrainer/tutors/__init__.py:7
-msgid "Advanced English"
+#: ../typetrainer/tutors/en.py:11
+msgid "Advanced"
msgstr ""
-#: ../typetrainer/tutors/__init__.py:8
-msgid "Basic Russian"
+#: ../typetrainer/tutors/help.py:8
+msgid ""
+"Expand misc panel and open file with words. Press Ctrl+O and choose file "
+"with words."
msgstr ""
-#: ../typetrainer/tutors/__init__.py:19
+#: ../typetrainer/tutors/__init__.py:20
msgid "Choose file with words."
msgstr ""
+#: ../typetrainer/tutors/ru.py:8
+msgid "Russian"
+msgstr ""
+
#: ../typetrainer/ui/main.py:14
msgid "ASDF zones"
msgstr ""
@@ -70,22 +74,42 @@ msgstr ""
msgid "Programmer Dvorak zones"
msgstr ""
-#: ../typetrainer/ui/main.py:255
-msgid "_Statistic"
-msgstr ""
-
-#: ../typetrainer/ui/main.py:264
+#: ../typetrainer/ui/main.py:277
msgid "Open file..."
msgstr ""
-#: ../typetrainer/ui/main.py:280
+#: ../typetrainer/ui/main.py:293
msgid "Opening..."
msgstr ""
#: tmp/main.glade.h:1
+msgid "L_ayout"
+msgstr ""
+
+#: tmp/main.glade.h:2
msgid "Type Trainer"
msgstr ""
+#: tmp/main.glade.h:3
+msgid "_Level"
+msgstr ""
+
+#: tmp/main.glade.h:4
+msgid "_Misc"
+msgstr ""
+
+#: tmp/main.glade.h:5
+msgid "_Open"
+msgstr ""
+
+#: tmp/main.glade.h:6
+msgid "_Statistic"
+msgstr ""
+
+#: tmp/main.glade.h:7
+msgid "_Tutor"
+msgstr ""
+
#: tmp/stat.glade.h:1
msgid "Accuracy:"
msgstr ""
View
73 i18n/ru.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: typetrainer\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-02-12 10:22+1000\n"
+"POT-Creation-Date: 2011-02-14 16:25+1000\n"
"PO-Revision-Date: 2011-01-30 19:31+1000\n"
"Last-Translator: <bobrov@vl.ru>\n"
"Language-Team: Russian\n"
@@ -39,31 +39,32 @@ msgstr "Не найден генератор упражнений [%s]"
msgid "Can't read [%s]"
msgstr "Нельзя прочитать [%s]"
-#: ../typetrainer/tutors/help.py:8
-msgid ""
-"Press right mouse button. Click right mouse button to select other tutors. "
-"Choose a file with words. Click right mouse button at any window spot."
-msgstr ""
-"Нажмите правую кнопку мыши. Чтобы разнообразить упражнение, нажмите правую "
-"кнопку мыши. Выберите файл с текстом. Щелкните в любом месте окна правой "
-"кнопкой."
+#: ../typetrainer/tutors/en.py:7
+msgid "English"
+msgstr "Английский"
-#: ../typetrainer/tutors/__init__.py:6
-msgid "Basic English"
-msgstr "Простой английский"
+#: ../typetrainer/tutors/en.py:10 ../typetrainer/tutors/ru.py:11
+msgid "Basic"
+msgstr "Простой"
-#: ../typetrainer/tutors/__init__.py:7
-msgid "Advanced English"
-msgstr "Сложный английский"
+#: ../typetrainer/tutors/en.py:11
+msgid "Advanced"
+msgstr "Сложный"
-#: ../typetrainer/tutors/__init__.py:8
-msgid "Basic Russian"
-msgstr "Простой русский"
+#: ../typetrainer/tutors/help.py:8
+msgid ""
+"Expand misc panel and open file with words. Press Ctrl+O and choose file "
+"with words."
+msgstr "Разверните дополнительную панель и откройте файл со словами. Нажмите Контрол+О и выберите файл."
-#: ../typetrainer/tutors/__init__.py:19
+#: ../typetrainer/tutors/__init__.py:20
msgid "Choose file with words."
msgstr "Выберите файл со словами."
+#: ../typetrainer/tutors/ru.py:8
+msgid "Russian"
+msgstr "Русский"
+
#: ../typetrainer/ui/main.py:14
msgid "ASDF zones"
msgstr "Зоны ФЫВА"
@@ -76,26 +77,46 @@ msgstr "Зоны ЫВАМ"
msgid "Programmer Dvorak zones"
msgstr "Зоны программерского Дворака"
-#: ../typetrainer/ui/main.py:255
-msgid "_Statistic"
-msgstr "_Статистика"
-
-#: ../typetrainer/ui/main.py:264
+#: ../typetrainer/ui/main.py:277
msgid "Open file..."
msgstr "Открытие файла..."
-#: ../typetrainer/ui/main.py:280
+#: ../typetrainer/ui/main.py:293
msgid "Opening..."
msgstr "Открываю..."
#: tmp/main.glade.h:1
+msgid "L_ayout"
+msgstr "_Зоны"
+
+#: tmp/main.glade.h:2
msgid "Type Trainer"
msgstr ""
+#: tmp/main.glade.h:3
+msgid "_Level"
+msgstr "С_ложность"
+
+#: tmp/main.glade.h:4
+msgid "_Misc"
+msgstr "_Дополнительно"
+
+#: tmp/main.glade.h:5
+msgid "_Open"
+msgstr "_Открыть"
+
+#: tmp/main.glade.h:6
+msgid "_Statistic"
+msgstr "_Статистика"
+
+#: tmp/main.glade.h:7
+msgid "_Tutor"
+msgstr "_Упражнение"
+
#: tmp/stat.glade.h:1
msgid "Accuracy:"
msgstr "Точность:"
#: tmp/stat.glade.h:2
msgid "Statistic"
-msgstr "Статистика"
+msgstr "Статистика"
View
BIN  typetrainer/locale/ru/LC_MESSAGES/typetrainer.mo
Binary file not shown
View
7 typetrainer/tutors/help.py
@@ -5,12 +5,11 @@
from typetrainer.generator import make_word_chain
from typetrainer.i18n import _
-help_text = _(u'Press right mouse button. Click right mouse button to select other tutors. '
- u'Choose a file with words. Click right mouse button at any window spot.')
+help_text = _(u'Expand misc panel and open file with words. Press Ctrl+O and choose file with words.')
def split_to_words(text):
- filter_non_word = re.compile(u'(?ui)[^a-zа-я\']+')
- for word in re.findall(u'(?iu)[a-zа-я\',."]+', text):
+ filter_non_word = re.compile(u'(?ui)[^a-zа-я\'+]+')
+ for word in re.findall(u'(?iu)[a-zа-я\',.+"]+', text):
non_word_cars = ',.'
esym = None
for c in non_word_cars:
View
11 typetrainer/ui/main.py
@@ -232,11 +232,12 @@ def on_type_entry_delete_text(self, *args):
def fill_tutors(self):
self.tutor_ls.clear()
- for tutor in available_tutors:
- it = self.tutor_ls.append((tutor, tutor.label))
- if tutor.name == self.filler.name:
- with block_handler(self.tutor_cb, self.on_tutor_cb_changed):
- self.tutor_cb.set_active_iter(it)
+ if self.filler.fullname:
+ for tutor in available_tutors:
+ it = self.tutor_ls.append((tutor, tutor.label))
+ if tutor.name == self.filler.name:
+ with block_handler(self.tutor_cb, self.on_tutor_cb_changed):
+ self.tutor_cb.set_active_iter(it)
self.fill_levels()
Please sign in to comment.
Something went wrong with that request. Please try again.