Commits

Gustavo Picon committed 69ccf9d Merge

Added admin i18n and russian translation.
Contributed by http://bitbucket.org/chembervint

  • Participants
  • Parent commits 0c3bb21, 4206b98

Comments (0)

Files changed (4)

+
+Release tip
+-----------
+
+* Added admin i18n contributed by http://bitbucket.org/chembervint
+  Included translations: ru.
 
 Release 1.60 (Apr 18, 2010)
 ---------------------------

treebeard/forms.py

 
 from django.forms.models import model_to_dict, ErrorList, BaseModelForm
 from django import forms
+from django.utils.translation import ugettext as _
 
 
 class MoveNodeForm(forms.ModelForm):
     """
 
     __position_choices_sorted = (
-                        ('sorted-child', 'Child of'),
-                        ('sorted-sibling', 'Sibling of'),
+                        ('sorted-child', _(u'Child of')),
+                        ('sorted-sibling', _(u'Sibling of')),
                     )
 
     __position_choices_unsorted = (
-                        ('first-child', 'First child of'),
-                        ('left', 'Before'),
-                        ('right', 'After'),
+                        ('first-child', _(u'First child of')),
+                        ('left', _(u'Before')),
+                        ('right', _(u'After')),
                     )
 
-    _position = forms.ChoiceField(required=True, label="Position")
+    _position = forms.ChoiceField(required=True, label=_(u"Position"))
 
     _ref_node_id = forms.TypedChoiceField(required=False,
                                           coerce=int,
-                                          label="Relative to")
+                                          label=_(u"Relative to"))
 
     class Meta:
         exclude = ('path',
                     for subnode in node.get_children():
                         add_subtree(subnode, options)
 
-            options = [(0, '-- root --')]
+            options = [(0, _(u'-- root --'))]
             for node in opts.model.get_root_nodes():
                 add_subtree(node, options)
             return options

treebeard/locale/ru/LC_MESSAGES/django.mo

Binary file added.

treebeard/locale/ru/LC_MESSAGES/django.po

+msgid ""
+msgstr ""
+"Project-Id-Version: Django-treebeard\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2010-05-02 17:51-0500\n"
+"PO-Revision-Date: 2009-04-10 18:37+0400\n"
+"Last-Translator: chembervint <chembervint@gmail.com>\n"
+"Language-Team: Russian\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\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"
+
+#: forms.py:16
+msgid "Child of"
+msgstr "Вложенный"
+
+#: forms.py:17
+msgid "Sibling of"
+msgstr "Соседний к"
+
+#: forms.py:21
+msgid "First child of"
+msgstr "Первый вложенный"
+
+#: forms.py:22
+msgid "Before"
+msgstr "До"
+
+#: forms.py:23
+msgid "After"
+msgstr "После"
+
+#: forms.py:26
+msgid "Position"
+msgstr "Позиция"
+
+#: forms.py:30
+msgid "Relative to"
+msgstr "Относительно"
+
+#: forms.py:80
+msgid "-- root --"
+msgstr "-- корень --"