Anonymous avatar Anonymous committed 408dcc9

missing translations in comment node admin

Comments (0)

Files changed (3)

apps/discussion/admin.py

 
     def comment_approve(self, request, queryset):
         count = queryset.update(approved=True)
-        msg = (count == 1) and 'One comment was' or ('%s comments were' % count)
-        self.message_user(request, "%s approved." % msg)
-    comment_approve.short_description = 'Mark selected comments as approved'
+        msg = (count == 1) and _('One comment was approved') or (_('%d comments were approved') % count)
+        self.message_user(request, msg[:])
+    comment_approve.short_description = _('Mark selected comments as approved')
 
     def get_form(self, request, obj=None, **kwargs):
         form_cls = super(CommentNodeAdmin, self).get_form(request, obj, **kwargs)
Add a comment to this file

locale/ru/LC_MESSAGES/django.mo

Binary file modified.

locale/ru/LC_MESSAGES/django.po

 msgid "Useful information"
 msgstr "Полезная информация"
 
-
 msgid "Current password"
 msgstr "Текущий пароль"
 
 msgid "Parent comment"
 msgstr "Родительский комментарий"
 
-
 msgid "Users comments"
 msgstr "Комментарии пользователя"
+
+msgid "Mark selected comments as approved"
+msgstr "Подтвердить выбранные комментарии"
+
+msgid "One comment was approved"
+msgstr "Комментарий подтвержен"
+
+#, python-format
+msgid "%d comments were approved"
+msgstr "Подтверждено %d комментариев"
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.