Skip to content

Commit

Permalink
translation
Browse files Browse the repository at this point in the history
  • Loading branch information
baverman committed Jan 31, 2011
1 parent 67df765 commit 6ad4c73
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 39 deletions.
3 changes: 2 additions & 1 deletion MANIFEST.in
@@ -1,4 +1,5 @@
recursive-include typetrainer *.glade recursive-include typetrainer *.glade *.mo
include README.rst include README.rst
include LICENSE include LICENSE
include CHANGES include CHANGES
include run.py
34 changes: 20 additions & 14 deletions i18n/messages.pot
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: typetrainer\n" "Project-Id-Version: typetrainer\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-01-31 12:36+1000\n" "POT-Creation-Date: 2011-01-31 14:37+1000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -17,27 +17,21 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"


#: ../typetrainer/run.py:6 #: ../typetrainer/run.py:7
msgid "%prog [options] [file_with_words]" msgid "%prog [options] [file_with_words]"
msgstr "" msgstr ""


#: ../typetrainer/run.py:9 #: ../typetrainer/run.py:10
#, python-format
msgid "" msgid ""
"Tutor maker to use (en.basic, en.advanced, ru.basic). Default is '%default'" "Tutor maker to use (en.basic, en.advanced, ru.basic). Default is en.basic"
msgstr "" msgstr ""


#: ../typetrainer/run.py:13 #: ../typetrainer/run.py:29
#, python-format
msgid "Onscreen keyboard type (n130, n130_sdfv). Default is %default"
msgstr ""

#: ../typetrainer/run.py:22
#, python-format #, python-format
msgid "Can't find [%s] tutor" msgid "Can't find [%s] tutor"
msgstr "" msgstr ""


#: ../typetrainer/run.py:24 #: ../typetrainer/run.py:31
#, python-format #, python-format
msgid "Can't read [%s]" msgid "Can't read [%s]"
msgstr "" msgstr ""
Expand All @@ -64,10 +58,22 @@ msgstr ""
msgid "Choose file with words." msgid "Choose file with words."
msgstr "" msgstr ""


#: ../typetrainer/ui/main.py:223 #: ../typetrainer/ui/main.py:14
msgid "ASDF zones"
msgstr ""

#: ../typetrainer/ui/main.py:15
msgid "SDFV zones"
msgstr ""

#: ../typetrainer/ui/main.py:16
msgid "Programmer Dvorak zones"
msgstr ""

#: ../typetrainer/ui/main.py:247
msgid "Open file..." msgid "Open file..."
msgstr "" msgstr ""


#: ../typetrainer/ui/main.py:242 #: ../typetrainer/ui/main.py:266
msgid "Opening..." msgid "Opening..."
msgstr "" msgstr ""
37 changes: 21 additions & 16 deletions i18n/ru.po
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: typetrainer\n" "Project-Id-Version: typetrainer\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-01-31 12:33+1000\n" "POT-Creation-Date: 2011-01-31 14:37+1000\n"
"PO-Revision-Date: 2011-01-30 19:31+1000\n" "PO-Revision-Date: 2011-01-30 19:31+1000\n"
"Last-Translator: <bobrov@vl.ru>\n" "Last-Translator: <bobrov@vl.ru>\n"
"Language-Team: Russian\n" "Language-Team: Russian\n"
Expand All @@ -19,29 +19,22 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"


#: ../typetrainer/run.py:6 #: ../typetrainer/run.py:7
msgid "%prog [options] [file_with_words]" msgid "%prog [options] [file_with_words]"
msgstr "%prog [options] [/путь/к/файлу/со/словами]" msgstr "%prog [options] [/путь/к/файлу/со/словами]"


#: ../typetrainer/run.py:9 #: ../typetrainer/run.py:10
#, python-format
msgid "" msgid ""
"Tutor maker to use (en.basic, en.advanced, ru.basic). Default is '%default'" "Tutor maker to use (en.basic, en.advanced, ru.basic). Default is en.basic"
msgstr "" msgstr ""
"Генератор упражнений (en.basic, en.advanced, ru.basic). По умолчанию " "Генератор упражнений (en.basic, en.advanced, ru.basic). По умолчанию en.basic"
"'%default'"

#: ../typetrainer/run.py:13
#, python-format
msgid "Onscreen keyboard type (n130, n130_sdfv). Default is %default"
msgstr "Вид экранной клавиатуры (n130, n130_sdfv). По умолчанию %default"


#: ../typetrainer/run.py:22 #: ../typetrainer/run.py:29
#, python-format #, python-format
msgid "Can't find [%s] tutor" msgid "Can't find [%s] tutor"
msgstr "Не найден генератор упражнений [%s]" msgstr "Не найден генератор упражнений [%s]"


#: ../typetrainer/run.py:24 #: ../typetrainer/run.py:31
#, python-format #, python-format
msgid "Can't read [%s]" msgid "Can't read [%s]"
msgstr "Нельзя прочитать [%s]" msgstr "Нельзя прочитать [%s]"
Expand Down Expand Up @@ -71,10 +64,22 @@ msgstr "Простой русский"
msgid "Choose file with words." msgid "Choose file with words."
msgstr "Выбирите файл со словами." msgstr "Выбирите файл со словами."


#: ../typetrainer/ui/main.py:223 #: ../typetrainer/ui/main.py:14
msgid "ASDF zones"
msgstr "Зоны ФЫВА"

#: ../typetrainer/ui/main.py:15
msgid "SDFV zones"
msgstr "Зоны ЫВАМ"

#: ../typetrainer/ui/main.py:16
msgid "Programmer Dvorak zones"
msgstr "Зоны программерского Дворака"

#: ../typetrainer/ui/main.py:247
msgid "Open file..." msgid "Open file..."
msgstr "Открытие файла..." msgstr "Открытие файла..."


#: ../typetrainer/ui/main.py:242 #: ../typetrainer/ui/main.py:266
msgid "Opening..." msgid "Opening..."
msgstr "Открываю..." msgstr "Открываю..."
2 changes: 1 addition & 1 deletion i18n/update_pot.sh
@@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh


xgettext -j -L Python -k_ -kN_ -o messages.pot --package-name=typetrainer `find ../typetrainer -name '*.py'` xgettext -L Python -k_ -kN_ -o messages.pot --package-name=typetrainer `find ../typetrainer -name '*.py'`
Binary file modified typetrainer/locale/ru/LC_MESSAGES/typetrainer.mo
Binary file not shown.
8 changes: 1 addition & 7 deletions typetrainer/run.py
Expand Up @@ -7,11 +7,8 @@ def run():
parser = OptionParser(usage=_("%prog [options] [file_with_words]"), parser = OptionParser(usage=_("%prog [options] [file_with_words]"),
version="%prog " + VERSION) version="%prog " + VERSION)
parser.add_option("-t", "--tutor", dest="tutor", parser.add_option("-t", "--tutor", dest="tutor",
help=_("Tutor maker to use (en.basic, en.advanced, ru.basic). Default is '%default'"), help=_("Tutor maker to use (en.basic, en.advanced, ru.basic). Default is en.basic"),
metavar="tutor") metavar="tutor")
parser.add_option("-k", "--keyboard", dest="keyboard", type='choice',
choices=['n130', 'n130_sdfv', 'n130_dvp'], metavar="keyboard",
help=_("Onscreen keyboard type (n130, n130_sdfv, n130_dvp). Default is %default"))


options, args = parser.parse_args() options, args = parser.parse_args()
config = Config() config = Config()
Expand All @@ -20,9 +17,6 @@ def run():
if options.tutor: if options.tutor:
config['TUTOR'] = options.tutor config['TUTOR'] = options.tutor


if options.keyboard:
config['KEYBOARD'] = options.keyboard

if args: if args:
config['FILE'] = args[0] config['FILE'] = args[0]


Expand Down

0 comments on commit 6ad4c73

Please sign in to comment.