From e55426a50c0a2a2a729255a73c3aaa9c0f27d137 Mon Sep 17 00:00:00 2001 From: roand Date: Sat, 20 Feb 2016 11:39:05 +0300 Subject: [PATCH 1/2] Added support of russian --- .../locale/ru/LC_MESSAGES/tracsubtickets.mo | Bin 0 -> 1314 bytes .../locale/ru/LC_MESSAGES/tracsubtickets.po | 59 ++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 tracsubtickets/locale/ru/LC_MESSAGES/tracsubtickets.mo create mode 100644 tracsubtickets/locale/ru/LC_MESSAGES/tracsubtickets.po diff --git a/tracsubtickets/locale/ru/LC_MESSAGES/tracsubtickets.mo b/tracsubtickets/locale/ru/LC_MESSAGES/tracsubtickets.mo new file mode 100644 index 0000000000000000000000000000000000000000..b519b824a99d98fd107837644955fab1cf187dcb GIT binary patch literal 1314 zcmaJ<&u<(x7&TCSEdl`&st^c$5{iU`yqzo+ik4E+rWK0Rz-rm{2=dN2(}AhIvOOVt zYZAn-1~~PC1c)OiHc^&_G->W!u*JOx{sQ<9`aGL9gd#?IdNcO(``-6?Za;hMI>XZd zUIa?uNnjU<&tJe4@Hg-ZaQp$ro&(QtI?{05HtKfzCfpLv)uSh2@|M}b%aOZD^k z0Yl0j0UkW~jyQ>ekLXoLH=w75#4h`~5F3sjz=cUYzt_HT5>MN%k3-b%-4<|9* zOd4}qIovnz4F_n%$z^w9P>Mpmf!h+sO7~{v7WvGfF6La6hM!j{@~ON{GyTFf-j+%l z3B%U^1J?)|HY5PD*26YEv$xh z3RkhV<+q_7`#4V>A*9$fv1`R~K$ej6w2 z+VvjJ-wf;FQ}AZE<~O0=L)mZY|JMJA, 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: TracSubTicketsPlugin 0.1.x\n" +"Report-Msgid-Bugs-To: roand@inbox.ru\n" +"POT-Creation-Date: 2016-02-20 01:38+0200\n" +"PO-Revision-Date: 2016-02-20 01:38+0200\n" +"Last-Translator: Andrey Rodionov \n" +"Language-Team: Russian ru_RU \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 1.0dev-r482\n" + +#: tracsubtickets/api.py:179 +msgid "A ticket cannot be a parent to itself" +msgstr "Карточка не может быть родителем самой себе" + +#: tracsubtickets/api.py:185 +#, python-format +msgid "Ticket #%s does not exist" +msgstr "Карточка #%s не существует" + +#: tracsubtickets/api.py:196 +#, python-format +msgid "Circularity error: %s" +msgstr "Ошибка закольцовывания: %s" + +#: tracsubtickets/api.py:205 tracsubtickets/web_ui.py:129 +#, python-format +msgid "Parent ticket #%s is closed" +msgstr "Карточка родитель #%s закрыта" + +#: tracsubtickets/api.py:216 +msgid "Not a valid list of ticket IDs" +msgstr "Недопустимый список идентификаторов карточек" + +#: tracsubtickets/web_ui.py:123 +#, python-format +msgid "Child ticket #%s has not been closed yet" +msgstr "Подкарточка #%s не закрыта" + +#: tracsubtickets/web_ui.py:141 +msgid "add" +msgstr "добавить" + +#: tracsubtickets/web_ui.py:143 +msgid "Create new child ticket" +msgstr "Создать новую подкарточку" + +#: tracsubtickets/web_ui.py:147 +msgid "Subtickets " +msgstr "Подкарточки " + From 5fed84cdf71931d49a59ece9b9cae2a4ca89bb27 Mon Sep 17 00:00:00 2001 From: Theodor Norup Date: Fri, 16 Dec 2016 20:35:48 +0100 Subject: [PATCH 2/2] Change Trac version requirement check to conform to https://trac-hacks.org/wiki/DevGuide#AssertMinimumTracVersionRequirement --- setup.py | 3 +-- tracsubtickets/__init__.py | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index d4e2c5d..b2dc7fa 100755 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ setup( name = 'TracSubTicketsPlugin', - version = '0.4.0', + version = '0.4.1', keywords = 'trac plugin ticket subticket', author = 'Takashi Ito', author_email = 'TakashiC.Ito@gmail.com', @@ -49,7 +49,6 @@ Currently only translation for de_DE is provided. """, license = 'BSD', - install_requires = ['Trac >= 1.0'], packages = find_packages(exclude=['*.tests*']), package_data = { diff --git a/tracsubtickets/__init__.py b/tracsubtickets/__init__.py index e69de29..0dd4a86 100644 --- a/tracsubtickets/__init__.py +++ b/tracsubtickets/__init__.py @@ -0,0 +1,5 @@ +import pkg_resources + +min_trac_version = '1.0' + +pkg_resources.require('Trac >= %s' % min_trac_version)