Initial changes to support the new Django 1.6 project structure
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.conf import settings
|
||||
from django.contrib.comments.models import Comment
|
||||
from django.contrib.contenttypes import generic
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from acls.api import class_permissions
|
||||
from common.utils import encapsulate
|
||||
from documents.models import Document
|
||||
from navigation.api import register_links, register_model_list_columns
|
||||
|
||||
from .links import (comment_delete, comment_add,
|
||||
comments_for_document)
|
||||
from .permissions import (PERMISSION_COMMENT_CREATE,
|
||||
PERMISSION_COMMENT_DELETE, PERMISSION_COMMENT_VIEW)
|
||||
|
||||
if 'django.contrib.comments' not in settings.INSTALLED_APPS:
|
||||
raise Exception('This app depends on the django.contrib.comments app.')
|
||||
|
||||
|
||||
register_model_list_columns(Comment, [
|
||||
{
|
||||
'name': _(u'date'),
|
||||
'attribute': 'submit_date'
|
||||
},
|
||||
{
|
||||
'name': _(u'user'),
|
||||
'attribute': encapsulate(lambda x: x.user.get_full_name() if x.user.get_full_name() else x.user)
|
||||
},
|
||||
{
|
||||
'name': _(u'comment'),
|
||||
'attribute': 'comment'
|
||||
}
|
||||
])
|
||||
|
||||
register_links(['comments_for_document', 'comment_add', 'comment_delete', 'comment_multiple_delete'], [comment_add], menu_name='sidebar')
|
||||
register_links(Comment, [comment_delete])
|
||||
register_links(Document, [comments_for_document], menu_name='form_header')
|
||||
|
||||
Document.add_to_class(
|
||||
'comments',
|
||||
generic.GenericRelation(
|
||||
Comment,
|
||||
content_type_field='content_type',
|
||||
object_id_field='object_pk'
|
||||
)
|
||||
)
|
||||
|
||||
class_permissions(Document, [
|
||||
PERMISSION_COMMENT_CREATE,
|
||||
PERMISSION_COMMENT_DELETE,
|
||||
PERMISSION_COMMENT_VIEW
|
||||
])
|
||||
@@ -0,0 +1,11 @@
|
||||
from django import forms
|
||||
from django.contrib.comments.models import Comment
|
||||
|
||||
|
||||
class CommentForm(forms.ModelForm):
|
||||
"""
|
||||
A standard model form to allow users to post a comment
|
||||
"""
|
||||
class Meta:
|
||||
model = Comment
|
||||
fields = ('comment',)
|
||||
@@ -0,0 +1,11 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from .permissions import (PERMISSION_COMMENT_CREATE,
|
||||
PERMISSION_COMMENT_DELETE, PERMISSION_COMMENT_VIEW)
|
||||
|
||||
comment_delete = {'text': _('delete'), 'view': 'comment_delete', 'args': 'object.pk', 'famfam': 'comment_delete', 'permissions': [PERMISSION_COMMENT_DELETE]}
|
||||
comment_multiple_delete = {'text': _('delete'), 'view': 'comment_multiple_delete', 'args': 'object.pk', 'famfam': 'comments_delete', 'permissions': [PERMISSION_COMMENT_DELETE]}
|
||||
comment_add = {'text': _('add comment'), 'view': 'comment_add', 'args': 'object.pk', 'famfam': 'comment_add', 'permissions': [PERMISSION_COMMENT_CREATE]}
|
||||
comments_for_document = {'text': _('comments'), 'view': 'comments_for_document', 'args': 'object.pk', 'famfam': 'comments', 'permissions': [PERMISSION_COMMENT_VIEW], 'children_view_regex': ['comment']}
|
||||
Binary file not shown.
@@ -0,0 +1,97 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Mohammed ALDOUB <voulnet@gmail.com>, 2013.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-12-12 01:48-0400\n"
|
||||
"PO-Revision-Date: 2013-01-25 16:58+0000\n"
|
||||
"Last-Translator: Mohammed ALDOUB <voulnet@gmail.com>\n"
|
||||
"Language-Team: Arabic (http://www.transifex.com/projects/p/mayan-edms/language/ar/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: ar\n"
|
||||
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
|
||||
|
||||
#: __init__.py:19 __init__.py:20
|
||||
msgid "delete"
|
||||
msgstr "حذف"
|
||||
|
||||
#: __init__.py:21
|
||||
msgid "add comment"
|
||||
msgstr "إضافة تعليق"
|
||||
|
||||
#: __init__.py:22
|
||||
msgid "comments"
|
||||
msgstr "تعليقات"
|
||||
|
||||
#: __init__.py:26
|
||||
msgid "date"
|
||||
msgstr "تاريخ"
|
||||
|
||||
#: __init__.py:30
|
||||
msgid "user"
|
||||
msgstr "مستخدم"
|
||||
|
||||
#: __init__.py:34
|
||||
msgid "comment"
|
||||
msgstr "تعليق"
|
||||
|
||||
#: permissions.py:7
|
||||
msgid "Comments"
|
||||
msgstr "التعليقات"
|
||||
|
||||
#: permissions.py:9
|
||||
msgid "Create new comments"
|
||||
msgstr "إنشاء تعليقات جديدة"
|
||||
|
||||
#: permissions.py:10
|
||||
msgid "Delete comments"
|
||||
msgstr "حذف التعليقات"
|
||||
|
||||
#: permissions.py:11
|
||||
msgid "View comments"
|
||||
msgstr "عرض التعليقات"
|
||||
|
||||
#: views.py:36
|
||||
msgid "Must provide at least one comment."
|
||||
msgstr "يجب إضافة تعليق واحد على الأقل."
|
||||
|
||||
#: views.py:46
|
||||
#, python-format
|
||||
msgid "Comment \"%s\" deleted successfully."
|
||||
msgstr "التعليق \"%s\" حذف بنجاح."
|
||||
|
||||
#: views.py:48
|
||||
#, python-format
|
||||
msgid "Error deleting comment \"%(comment)s\": %(error)s"
|
||||
msgstr "خطأ أثناء حذف التعليق \"%(comment)s\": %(error)s"
|
||||
|
||||
#: views.py:63
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comment: %s?"
|
||||
msgstr "هل أنت متأكد أنك تريد حذف هذا التعليق: %s ؟"
|
||||
|
||||
#: views.py:65
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comments: %s?"
|
||||
msgstr "هل أنت متأكد أنك ترغب في حذف التعليقات: %s ؟"
|
||||
|
||||
#: views.py:99
|
||||
msgid "Comment added successfully."
|
||||
msgstr "تمت إضافة التعليق بنجاح."
|
||||
|
||||
#: views.py:106
|
||||
#, python-format
|
||||
msgid "Add comment to document: %s"
|
||||
msgstr "إضافة تعليق على الوثيقة: %s"
|
||||
|
||||
#: views.py:126
|
||||
#, python-format
|
||||
msgid "comments: %s"
|
||||
msgstr "التعليقات: %s"
|
||||
Binary file not shown.
@@ -0,0 +1,97 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# <pkoldamov@gmail.com>, 2012.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-12-12 01:48-0400\n"
|
||||
"PO-Revision-Date: 2012-07-06 07:43+0000\n"
|
||||
"Last-Translator: Pavlin Koldamov <pkoldamov@gmail.com>\n"
|
||||
"Language-Team: Bulgarian (http://www.transifex.com/projects/p/mayan-edms/language/bg/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: bg\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: __init__.py:19 __init__.py:20
|
||||
msgid "delete"
|
||||
msgstr "изтриване"
|
||||
|
||||
#: __init__.py:21
|
||||
msgid "add comment"
|
||||
msgstr "добави коментар"
|
||||
|
||||
#: __init__.py:22
|
||||
msgid "comments"
|
||||
msgstr "коментари"
|
||||
|
||||
#: __init__.py:26
|
||||
msgid "date"
|
||||
msgstr "дата"
|
||||
|
||||
#: __init__.py:30
|
||||
msgid "user"
|
||||
msgstr "потребител"
|
||||
|
||||
#: __init__.py:34
|
||||
msgid "comment"
|
||||
msgstr "коментар"
|
||||
|
||||
#: permissions.py:7
|
||||
msgid "Comments"
|
||||
msgstr "Коментари"
|
||||
|
||||
#: permissions.py:9
|
||||
msgid "Create new comments"
|
||||
msgstr "Създаване на нови коментари"
|
||||
|
||||
#: permissions.py:10
|
||||
msgid "Delete comments"
|
||||
msgstr "Изтриване на коментари"
|
||||
|
||||
#: permissions.py:11
|
||||
msgid "View comments"
|
||||
msgstr "Преглед на коментари"
|
||||
|
||||
#: views.py:36
|
||||
msgid "Must provide at least one comment."
|
||||
msgstr "Трябва да направите поне един коментар."
|
||||
|
||||
#: views.py:46
|
||||
#, python-format
|
||||
msgid "Comment \"%s\" deleted successfully."
|
||||
msgstr "Коментарът \"%s\" е изтрит успешно."
|
||||
|
||||
#: views.py:48
|
||||
#, python-format
|
||||
msgid "Error deleting comment \"%(comment)s\": %(error)s"
|
||||
msgstr "Грешка при изтриване на коментар \"%(comment)s\": %(error)s"
|
||||
|
||||
#: views.py:63
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comment: %s?"
|
||||
msgstr "Сигурни ли сте, че искате да изтриете коментара: %s?"
|
||||
|
||||
#: views.py:65
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comments: %s?"
|
||||
msgstr "Сигурни ли сте, че искате да изтриете коментарите: %s?"
|
||||
|
||||
#: views.py:99
|
||||
msgid "Comment added successfully."
|
||||
msgstr "Коментарът е добавен узпешно."
|
||||
|
||||
#: views.py:106
|
||||
#, python-format
|
||||
msgid "Add comment to document: %s"
|
||||
msgstr "Добавяне на коментар към документ: %s"
|
||||
|
||||
#: views.py:126
|
||||
#, python-format
|
||||
msgid "comments: %s"
|
||||
msgstr "коментари: %s"
|
||||
Binary file not shown.
@@ -0,0 +1,97 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# tetjarediske <tetja.rediske@googlemail.com>, 2012
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-12-12 01:48-0400\n"
|
||||
"PO-Revision-Date: 2014-03-12 16:11+0000\n"
|
||||
"Last-Translator: yangoon <mathiasb@m9s.biz>\n"
|
||||
"Language-Team: German (Germany) (http://www.transifex.com/projects/p/mayan-edms/language/de_DE/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de_DE\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: __init__.py:19 __init__.py:20
|
||||
msgid "delete"
|
||||
msgstr "Löschen"
|
||||
|
||||
#: __init__.py:21
|
||||
msgid "add comment"
|
||||
msgstr "Kommentar hinzufügen"
|
||||
|
||||
#: __init__.py:22
|
||||
msgid "comments"
|
||||
msgstr "Kommentare"
|
||||
|
||||
#: __init__.py:26
|
||||
msgid "date"
|
||||
msgstr "Datum"
|
||||
|
||||
#: __init__.py:30
|
||||
msgid "user"
|
||||
msgstr "Benutzer"
|
||||
|
||||
#: __init__.py:34
|
||||
msgid "comment"
|
||||
msgstr "Kommentar"
|
||||
|
||||
#: permissions.py:7
|
||||
msgid "Comments"
|
||||
msgstr "Kommentare"
|
||||
|
||||
#: permissions.py:9
|
||||
msgid "Create new comments"
|
||||
msgstr "Kommentare erstellen"
|
||||
|
||||
#: permissions.py:10
|
||||
msgid "Delete comments"
|
||||
msgstr "Kommentare löschen"
|
||||
|
||||
#: permissions.py:11
|
||||
msgid "View comments"
|
||||
msgstr "Kommentare ansehen"
|
||||
|
||||
#: views.py:36
|
||||
msgid "Must provide at least one comment."
|
||||
msgstr "Es muss mindestens ein Kommentar angegeben werden."
|
||||
|
||||
#: views.py:46
|
||||
#, python-format
|
||||
msgid "Comment \"%s\" deleted successfully."
|
||||
msgstr "Kommentar %s erfolgreich gelöscht."
|
||||
|
||||
#: views.py:48
|
||||
#, python-format
|
||||
msgid "Error deleting comment \"%(comment)s\": %(error)s"
|
||||
msgstr "Fehler beim Löschen von Kommentar \"%(comment)s\": %(error)s"
|
||||
|
||||
#: views.py:63
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comment: %s?"
|
||||
msgstr "Sind Sie sicher, dass Sie den Kommentar %s löschen möchten?"
|
||||
|
||||
#: views.py:65
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comments: %s?"
|
||||
msgstr "Sind Sie sicher, dass Sie die Kommentare %s löschen möchten?"
|
||||
|
||||
#: views.py:99
|
||||
msgid "Comment added successfully."
|
||||
msgstr "Kommentar erfolgreich hinzugefügt."
|
||||
|
||||
#: views.py:106
|
||||
#, python-format
|
||||
msgid "Add comment to document: %s"
|
||||
msgstr "Kommentar zu Dokument %s hinzufügen"
|
||||
|
||||
#: views.py:126
|
||||
#, python-format
|
||||
msgid "comments: %s"
|
||||
msgstr "Kommentare: %s"
|
||||
Binary file not shown.
@@ -0,0 +1,96 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2013-01-25 20:11-0400\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"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: __init__.py:19 __init__.py:20
|
||||
msgid "delete"
|
||||
msgstr ""
|
||||
|
||||
#: __init__.py:21
|
||||
msgid "add comment"
|
||||
msgstr ""
|
||||
|
||||
#: __init__.py:22
|
||||
msgid "comments"
|
||||
msgstr ""
|
||||
|
||||
#: __init__.py:26
|
||||
msgid "date"
|
||||
msgstr ""
|
||||
|
||||
#: __init__.py:30
|
||||
msgid "user"
|
||||
msgstr ""
|
||||
|
||||
#: __init__.py:34
|
||||
msgid "comment"
|
||||
msgstr ""
|
||||
|
||||
#: permissions.py:7
|
||||
msgid "Comments"
|
||||
msgstr ""
|
||||
|
||||
#: permissions.py:9
|
||||
msgid "Create new comments"
|
||||
msgstr ""
|
||||
|
||||
#: permissions.py:10
|
||||
msgid "Delete comments"
|
||||
msgstr ""
|
||||
|
||||
#: permissions.py:11
|
||||
msgid "View comments"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:36
|
||||
msgid "Must provide at least one comment."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:46
|
||||
#, python-format
|
||||
msgid "Comment \"%s\" deleted successfully."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:48
|
||||
#, python-format
|
||||
msgid "Error deleting comment \"%(comment)s\": %(error)s"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:63
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comment: %s?"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:65
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comments: %s?"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:99
|
||||
msgid "Comment added successfully."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:106
|
||||
#, python-format
|
||||
msgid "Add comment to document: %s"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:126
|
||||
#, python-format
|
||||
msgid "comments: %s"
|
||||
msgstr ""
|
||||
Binary file not shown.
@@ -0,0 +1,96 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-12-12 01:48-0400\n"
|
||||
"PO-Revision-Date: 2012-02-02 18:20+0000\n"
|
||||
"Last-Translator: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>\n"
|
||||
"Language-Team: Spanish (http://www.transifex.com/projects/p/mayan-edms/language/es/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: es\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: __init__.py:19 __init__.py:20
|
||||
msgid "delete"
|
||||
msgstr "eliminar"
|
||||
|
||||
#: __init__.py:21
|
||||
msgid "add comment"
|
||||
msgstr "añadir comentario"
|
||||
|
||||
#: __init__.py:22
|
||||
msgid "comments"
|
||||
msgstr "comentarios"
|
||||
|
||||
#: __init__.py:26
|
||||
msgid "date"
|
||||
msgstr "fecha"
|
||||
|
||||
#: __init__.py:30
|
||||
msgid "user"
|
||||
msgstr "usuario"
|
||||
|
||||
#: __init__.py:34
|
||||
msgid "comment"
|
||||
msgstr "comentario"
|
||||
|
||||
#: permissions.py:7
|
||||
msgid "Comments"
|
||||
msgstr "Comentarios"
|
||||
|
||||
#: permissions.py:9
|
||||
msgid "Create new comments"
|
||||
msgstr "Crear nuevos comentarios"
|
||||
|
||||
#: permissions.py:10
|
||||
msgid "Delete comments"
|
||||
msgstr "Eliminar comentarios"
|
||||
|
||||
#: permissions.py:11
|
||||
msgid "View comments"
|
||||
msgstr "Ver comentarios"
|
||||
|
||||
#: views.py:36
|
||||
msgid "Must provide at least one comment."
|
||||
msgstr "Debe proveer al menos un comentario."
|
||||
|
||||
#: views.py:46
|
||||
#, python-format
|
||||
msgid "Comment \"%s\" deleted successfully."
|
||||
msgstr "Comentario \"%s\" eliminado exitosamente."
|
||||
|
||||
#: views.py:48
|
||||
#, python-format
|
||||
msgid "Error deleting comment \"%(comment)s\": %(error)s"
|
||||
msgstr "Error al eliminar el comentario \" %(comment)s\": %(error)s "
|
||||
|
||||
#: views.py:63
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comment: %s?"
|
||||
msgstr "¿Está seguro que desea eliminar el comentario:% s?"
|
||||
|
||||
#: views.py:65
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comments: %s?"
|
||||
msgstr "¿Está seguro que desea eliminar los comentarios:% s?"
|
||||
|
||||
#: views.py:99
|
||||
msgid "Comment added successfully."
|
||||
msgstr "Comentario añadido exitosamente."
|
||||
|
||||
#: views.py:106
|
||||
#, python-format
|
||||
msgid "Add comment to document: %s"
|
||||
msgstr "Añadir comentario al documento: %s"
|
||||
|
||||
#: views.py:126
|
||||
#, python-format
|
||||
msgid "comments: %s"
|
||||
msgstr "comentarios: %s"
|
||||
Binary file not shown.
@@ -0,0 +1,97 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Pierre Lhoste <peter.cathbad.host@gmail.com>, 2012.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-12-12 01:48-0400\n"
|
||||
"PO-Revision-Date: 2012-07-21 20:59+0000\n"
|
||||
"Last-Translator: Pierre Lhoste <peter.cathbad.host@gmail.com>\n"
|
||||
"Language-Team: French (http://www.transifex.com/projects/p/mayan-edms/language/fr/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: fr\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#: __init__.py:19 __init__.py:20
|
||||
msgid "delete"
|
||||
msgstr "supprimer"
|
||||
|
||||
#: __init__.py:21
|
||||
msgid "add comment"
|
||||
msgstr "ajouter un commentaire"
|
||||
|
||||
#: __init__.py:22
|
||||
msgid "comments"
|
||||
msgstr "commentaires"
|
||||
|
||||
#: __init__.py:26
|
||||
msgid "date"
|
||||
msgstr "date"
|
||||
|
||||
#: __init__.py:30
|
||||
msgid "user"
|
||||
msgstr "utilisateur"
|
||||
|
||||
#: __init__.py:34
|
||||
msgid "comment"
|
||||
msgstr "commentaire"
|
||||
|
||||
#: permissions.py:7
|
||||
msgid "Comments"
|
||||
msgstr "Commentaires"
|
||||
|
||||
#: permissions.py:9
|
||||
msgid "Create new comments"
|
||||
msgstr "Ajouter de nouveaux commentaires"
|
||||
|
||||
#: permissions.py:10
|
||||
msgid "Delete comments"
|
||||
msgstr "Supprimer des commentaires"
|
||||
|
||||
#: permissions.py:11
|
||||
msgid "View comments"
|
||||
msgstr "Afficher les commentaires"
|
||||
|
||||
#: views.py:36
|
||||
msgid "Must provide at least one comment."
|
||||
msgstr "Fournissez au moins un commentaire"
|
||||
|
||||
#: views.py:46
|
||||
#, python-format
|
||||
msgid "Comment \"%s\" deleted successfully."
|
||||
msgstr "Commentaires \"%s\" supprimés avec succès"
|
||||
|
||||
#: views.py:48
|
||||
#, python-format
|
||||
msgid "Error deleting comment \"%(comment)s\": %(error)s"
|
||||
msgstr "Erreur lors de la suppression du commentaire \"%(comment)s\": %(error)s"
|
||||
|
||||
#: views.py:63
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comment: %s?"
|
||||
msgstr "Êtes vous certain de vouloir supprimer le commentaire:%s?"
|
||||
|
||||
#: views.py:65
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comments: %s?"
|
||||
msgstr "Êtes vous certain de vouloir supprimer les commentaires:%s?"
|
||||
|
||||
#: views.py:99
|
||||
msgid "Comment added successfully."
|
||||
msgstr "Commentaire ajouté avec succès."
|
||||
|
||||
#: views.py:106
|
||||
#, python-format
|
||||
msgid "Add comment to document: %s"
|
||||
msgstr "Ajouter un commentaire au document:%s"
|
||||
|
||||
#: views.py:126
|
||||
#, python-format
|
||||
msgid "comments: %s"
|
||||
msgstr "commentaires:%s"
|
||||
Binary file not shown.
@@ -0,0 +1,97 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# <pierpaolo.baldan@gmail.com>, 2011.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-12-12 01:48-0400\n"
|
||||
"PO-Revision-Date: 2012-02-02 18:20+0000\n"
|
||||
"Last-Translator: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>\n"
|
||||
"Language-Team: Italian (http://www.transifex.com/projects/p/mayan-edms/language/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: it\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: __init__.py:19 __init__.py:20
|
||||
msgid "delete"
|
||||
msgstr "cancella"
|
||||
|
||||
#: __init__.py:21
|
||||
msgid "add comment"
|
||||
msgstr "aggiungi commento"
|
||||
|
||||
#: __init__.py:22
|
||||
msgid "comments"
|
||||
msgstr "commenti"
|
||||
|
||||
#: __init__.py:26
|
||||
msgid "date"
|
||||
msgstr "data"
|
||||
|
||||
#: __init__.py:30
|
||||
msgid "user"
|
||||
msgstr "utente"
|
||||
|
||||
#: __init__.py:34
|
||||
msgid "comment"
|
||||
msgstr "commento"
|
||||
|
||||
#: permissions.py:7
|
||||
msgid "Comments"
|
||||
msgstr "Commenti"
|
||||
|
||||
#: permissions.py:9
|
||||
msgid "Create new comments"
|
||||
msgstr "Crea nuovo commento"
|
||||
|
||||
#: permissions.py:10
|
||||
msgid "Delete comments"
|
||||
msgstr "Cancella commenti"
|
||||
|
||||
#: permissions.py:11
|
||||
msgid "View comments"
|
||||
msgstr "Visualizza commenti"
|
||||
|
||||
#: views.py:36
|
||||
msgid "Must provide at least one comment."
|
||||
msgstr "Devi almeno fornire un commento"
|
||||
|
||||
#: views.py:46
|
||||
#, python-format
|
||||
msgid "Comment \"%s\" deleted successfully."
|
||||
msgstr "Commento \"%s\" cancellato con sucesso."
|
||||
|
||||
#: views.py:48
|
||||
#, python-format
|
||||
msgid "Error deleting comment \"%(comment)s\": %(error)s"
|
||||
msgstr "Erroro nel cancellare il commento \"%(comment)s\": %(error)s"
|
||||
|
||||
#: views.py:63
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comment: %s?"
|
||||
msgstr "Sei sicuro di voler cancellare questo commento: %s?"
|
||||
|
||||
#: views.py:65
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comments: %s?"
|
||||
msgstr "Sei sicuro di voler cancellare questi commenti: %s?"
|
||||
|
||||
#: views.py:99
|
||||
msgid "Comment added successfully."
|
||||
msgstr "Commento aggiunto con successo."
|
||||
|
||||
#: views.py:106
|
||||
#, python-format
|
||||
msgid "Add comment to document: %s"
|
||||
msgstr "Aggiungi un comento al documento: %s"
|
||||
|
||||
#: views.py:126
|
||||
#, python-format
|
||||
msgid "comments: %s"
|
||||
msgstr "commenti: %s"
|
||||
Binary file not shown.
@@ -0,0 +1,97 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Lucas Weel <ljj.weel@gmail.com>, 2012.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-12-12 01:48-0400\n"
|
||||
"PO-Revision-Date: 2012-07-12 19:49+0000\n"
|
||||
"Last-Translator: Lucas Weel <ljj.weel@gmail.com>\n"
|
||||
"Language-Team: Dutch (Netherlands) (http://www.transifex.com/projects/p/mayan-edms/language/nl_NL/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: nl_NL\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: __init__.py:19 __init__.py:20
|
||||
msgid "delete"
|
||||
msgstr "Verwijderen"
|
||||
|
||||
#: __init__.py:21
|
||||
msgid "add comment"
|
||||
msgstr "Toevoegen opmerking"
|
||||
|
||||
#: __init__.py:22
|
||||
msgid "comments"
|
||||
msgstr "commentaar"
|
||||
|
||||
#: __init__.py:26
|
||||
msgid "date"
|
||||
msgstr "datum"
|
||||
|
||||
#: __init__.py:30
|
||||
msgid "user"
|
||||
msgstr "gebruiker"
|
||||
|
||||
#: __init__.py:34
|
||||
msgid "comment"
|
||||
msgstr "opmerking"
|
||||
|
||||
#: permissions.py:7
|
||||
msgid "Comments"
|
||||
msgstr "Commentaar"
|
||||
|
||||
#: permissions.py:9
|
||||
msgid "Create new comments"
|
||||
msgstr "Aanmaken van commentaar"
|
||||
|
||||
#: permissions.py:10
|
||||
msgid "Delete comments"
|
||||
msgstr "Verwijderen van commentaar"
|
||||
|
||||
#: permissions.py:11
|
||||
msgid "View comments"
|
||||
msgstr "Bekijk commentaar"
|
||||
|
||||
#: views.py:36
|
||||
msgid "Must provide at least one comment."
|
||||
msgstr "U moet minimaal een opmerking plaatsen."
|
||||
|
||||
#: views.py:46
|
||||
#, python-format
|
||||
msgid "Comment \"%s\" deleted successfully."
|
||||
msgstr "Opmerking \"%s\" succesvol verwijdert."
|
||||
|
||||
#: views.py:48
|
||||
#, python-format
|
||||
msgid "Error deleting comment \"%(comment)s\": %(error)s"
|
||||
msgstr "Fout bij het verwijderen van de opmerking: \"%(comment)s: %(error)s"
|
||||
|
||||
#: views.py:63
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comment: %s?"
|
||||
msgstr "Bent u er zeker van dat u de opmerking: %s, wenst te verwijderen?"
|
||||
|
||||
#: views.py:65
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comments: %s?"
|
||||
msgstr "Bent u er zeker van dat u het commentaar: %s, wenst te verwijderen?"
|
||||
|
||||
#: views.py:99
|
||||
msgid "Comment added successfully."
|
||||
msgstr "Opmerking succesvol toegevoegd."
|
||||
|
||||
#: views.py:106
|
||||
#, python-format
|
||||
msgid "Add comment to document: %s"
|
||||
msgstr "Opmerking toevoegen aan document: %s"
|
||||
|
||||
#: views.py:126
|
||||
#, python-format
|
||||
msgid "comments: %s"
|
||||
msgstr "commentaar: %s"
|
||||
Binary file not shown.
@@ -0,0 +1,99 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# mic <diveaway12@gmail.com>, 2012.
|
||||
# <winterfall24@gmail.com>, 2012.
|
||||
# <winterfall24@gmail.com>, 2012.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-12-12 01:48-0400\n"
|
||||
"PO-Revision-Date: 2012-02-21 14:50+0000\n"
|
||||
"Last-Translator: mic <winterfall24@gmail.com>\n"
|
||||
"Language-Team: Polish (http://www.transifex.com/projects/p/mayan-edms/language/pl/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pl\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
||||
|
||||
#: __init__.py:19 __init__.py:20
|
||||
msgid "delete"
|
||||
msgstr "usunąć"
|
||||
|
||||
#: __init__.py:21
|
||||
msgid "add comment"
|
||||
msgstr "dodaj komentarz"
|
||||
|
||||
#: __init__.py:22
|
||||
msgid "comments"
|
||||
msgstr "komentarze"
|
||||
|
||||
#: __init__.py:26
|
||||
msgid "date"
|
||||
msgstr "data"
|
||||
|
||||
#: __init__.py:30
|
||||
msgid "user"
|
||||
msgstr "użytkownik"
|
||||
|
||||
#: __init__.py:34
|
||||
msgid "comment"
|
||||
msgstr "komentarz"
|
||||
|
||||
#: permissions.py:7
|
||||
msgid "Comments"
|
||||
msgstr "Komentarze"
|
||||
|
||||
#: permissions.py:9
|
||||
msgid "Create new comments"
|
||||
msgstr "Tworzenie nowych komentarzy"
|
||||
|
||||
#: permissions.py:10
|
||||
msgid "Delete comments"
|
||||
msgstr "Usuń komentarzy"
|
||||
|
||||
#: permissions.py:11
|
||||
msgid "View comments"
|
||||
msgstr "Zobacz komentarze"
|
||||
|
||||
#: views.py:36
|
||||
msgid "Must provide at least one comment."
|
||||
msgstr "Musi podać co najmniej jeden komentarz."
|
||||
|
||||
#: views.py:46
|
||||
#, python-format
|
||||
msgid "Comment \"%s\" deleted successfully."
|
||||
msgstr "Komentarz \"%s\" został usunięta."
|
||||
|
||||
#: views.py:48
|
||||
#, python-format
|
||||
msgid "Error deleting comment \"%(comment)s\": %(error)s"
|
||||
msgstr "Błąd podczas usuwania komentarza \" %(comment)s \": %(error)s"
|
||||
|
||||
#: views.py:63
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comment: %s?"
|
||||
msgstr "Czy na pewno chcesz usunąć komentarz:%s?"
|
||||
|
||||
#: views.py:65
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comments: %s?"
|
||||
msgstr "Czy na pewno chcesz usunąć komentarze:%s?"
|
||||
|
||||
#: views.py:99
|
||||
msgid "Comment added successfully."
|
||||
msgstr "Komentarz został dodany pomyślnie."
|
||||
|
||||
#: views.py:106
|
||||
#, python-format
|
||||
msgid "Add comment to document: %s"
|
||||
msgstr "Dodaj komentarz do dokumentu:%s"
|
||||
|
||||
#: views.py:126
|
||||
#, python-format
|
||||
msgid "comments: %s"
|
||||
msgstr "komentarze: %s"
|
||||
Binary file not shown.
@@ -0,0 +1,98 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# <dev.emerson@gmail.com>, 2011.
|
||||
# Vítor Figueiró <vfigueiro@gmail.com>, 2012.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-12-12 01:48-0400\n"
|
||||
"PO-Revision-Date: 2012-07-02 11:57+0000\n"
|
||||
"Last-Translator: Vítor Figueiró <vfigueiro@gmail.com>\n"
|
||||
"Language-Team: Portuguese (http://www.transifex.com/projects/p/mayan-edms/language/pt/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pt\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: __init__.py:19 __init__.py:20
|
||||
msgid "delete"
|
||||
msgstr "excluir"
|
||||
|
||||
#: __init__.py:21
|
||||
msgid "add comment"
|
||||
msgstr "adicionar comentário"
|
||||
|
||||
#: __init__.py:22
|
||||
msgid "comments"
|
||||
msgstr "comentários"
|
||||
|
||||
#: __init__.py:26
|
||||
msgid "date"
|
||||
msgstr "data"
|
||||
|
||||
#: __init__.py:30
|
||||
msgid "user"
|
||||
msgstr "utilizador"
|
||||
|
||||
#: __init__.py:34
|
||||
msgid "comment"
|
||||
msgstr "comentário"
|
||||
|
||||
#: permissions.py:7
|
||||
msgid "Comments"
|
||||
msgstr "Comentários"
|
||||
|
||||
#: permissions.py:9
|
||||
msgid "Create new comments"
|
||||
msgstr "Criar novos comentários"
|
||||
|
||||
#: permissions.py:10
|
||||
msgid "Delete comments"
|
||||
msgstr "Excluir comentários"
|
||||
|
||||
#: permissions.py:11
|
||||
msgid "View comments"
|
||||
msgstr "Ver comentários"
|
||||
|
||||
#: views.py:36
|
||||
msgid "Must provide at least one comment."
|
||||
msgstr "Deve fornecer pelo menos um comentário."
|
||||
|
||||
#: views.py:46
|
||||
#, python-format
|
||||
msgid "Comment \"%s\" deleted successfully."
|
||||
msgstr "Comentário \"%s\" excluído com sucesso."
|
||||
|
||||
#: views.py:48
|
||||
#, python-format
|
||||
msgid "Error deleting comment \"%(comment)s\": %(error)s"
|
||||
msgstr "Erro ao excluir comentário \"%(comment)s\": %(error)s"
|
||||
|
||||
#: views.py:63
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comment: %s?"
|
||||
msgstr "Tem a certeza de que deseja excluir o comentário: %s?"
|
||||
|
||||
#: views.py:65
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comments: %s?"
|
||||
msgstr "Tem a certeza de que deseja excluir os comentários: %s?"
|
||||
|
||||
#: views.py:99
|
||||
msgid "Comment added successfully."
|
||||
msgstr "Comentário adicionado com sucesso."
|
||||
|
||||
#: views.py:106
|
||||
#, python-format
|
||||
msgid "Add comment to document: %s"
|
||||
msgstr "Adicionar comentário ao documento: %s"
|
||||
|
||||
#: views.py:126
|
||||
#, python-format
|
||||
msgid "comments: %s"
|
||||
msgstr "comentários: %s"
|
||||
Binary file not shown.
@@ -0,0 +1,97 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# <dev.emerson@gmail.com>, 2011.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-12-12 01:48-0400\n"
|
||||
"PO-Revision-Date: 2012-07-02 03:32+0000\n"
|
||||
"Last-Translator: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>\n"
|
||||
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/mayan-edms/language/pt_BR/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pt_BR\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#: __init__.py:19 __init__.py:20
|
||||
msgid "delete"
|
||||
msgstr "excluir"
|
||||
|
||||
#: __init__.py:21
|
||||
msgid "add comment"
|
||||
msgstr "adicionar comentário"
|
||||
|
||||
#: __init__.py:22
|
||||
msgid "comments"
|
||||
msgstr "comentários"
|
||||
|
||||
#: __init__.py:26
|
||||
msgid "date"
|
||||
msgstr "data"
|
||||
|
||||
#: __init__.py:30
|
||||
msgid "user"
|
||||
msgstr "usuário"
|
||||
|
||||
#: __init__.py:34
|
||||
msgid "comment"
|
||||
msgstr "comentário"
|
||||
|
||||
#: permissions.py:7
|
||||
msgid "Comments"
|
||||
msgstr "Comentários"
|
||||
|
||||
#: permissions.py:9
|
||||
msgid "Create new comments"
|
||||
msgstr "Criar novos comentários"
|
||||
|
||||
#: permissions.py:10
|
||||
msgid "Delete comments"
|
||||
msgstr "Excluir comentários"
|
||||
|
||||
#: permissions.py:11
|
||||
msgid "View comments"
|
||||
msgstr "Ver comentários"
|
||||
|
||||
#: views.py:36
|
||||
msgid "Must provide at least one comment."
|
||||
msgstr "Deve fornecer pelo menos um comentário."
|
||||
|
||||
#: views.py:46
|
||||
#, python-format
|
||||
msgid "Comment \"%s\" deleted successfully."
|
||||
msgstr "Comentário \"%s\" removido com sucesso."
|
||||
|
||||
#: views.py:48
|
||||
#, python-format
|
||||
msgid "Error deleting comment \"%(comment)s\": %(error)s"
|
||||
msgstr "Erro ao excluir comentário \"%(comment)s\": %(error)s"
|
||||
|
||||
#: views.py:63
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comment: %s?"
|
||||
msgstr "Tem certeza de que deseja excluir o comentário: %s?"
|
||||
|
||||
#: views.py:65
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comments: %s?"
|
||||
msgstr "Tem certeza de que deseja excluir os comentários: %s?"
|
||||
|
||||
#: views.py:99
|
||||
msgid "Comment added successfully."
|
||||
msgstr "Comentário adicionado com sucesso."
|
||||
|
||||
#: views.py:106
|
||||
#, python-format
|
||||
msgid "Add comment to document: %s"
|
||||
msgstr "Adicionar comentário ao documento: %s"
|
||||
|
||||
#: views.py:126
|
||||
#, python-format
|
||||
msgid "comments: %s"
|
||||
msgstr "comentários: %s"
|
||||
Binary file not shown.
@@ -0,0 +1,97 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Sergey Glita <gsv70@mail.ru>, 2011.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-12-12 01:48-0400\n"
|
||||
"PO-Revision-Date: 2012-02-02 18:20+0000\n"
|
||||
"Last-Translator: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>\n"
|
||||
"Language-Team: Russian (http://www.transifex.com/projects/p/mayan-edms/language/ru/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: ru\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"
|
||||
|
||||
#: __init__.py:19 __init__.py:20
|
||||
msgid "delete"
|
||||
msgstr "удалить"
|
||||
|
||||
#: __init__.py:21
|
||||
msgid "add comment"
|
||||
msgstr "добавить комментарий"
|
||||
|
||||
#: __init__.py:22
|
||||
msgid "comments"
|
||||
msgstr "комментарии"
|
||||
|
||||
#: __init__.py:26
|
||||
msgid "date"
|
||||
msgstr "дата"
|
||||
|
||||
#: __init__.py:30
|
||||
msgid "user"
|
||||
msgstr "пользователь"
|
||||
|
||||
#: __init__.py:34
|
||||
msgid "comment"
|
||||
msgstr "комментарий"
|
||||
|
||||
#: permissions.py:7
|
||||
msgid "Comments"
|
||||
msgstr "Комментарии"
|
||||
|
||||
#: permissions.py:9
|
||||
msgid "Create new comments"
|
||||
msgstr "Создать новые комментарии"
|
||||
|
||||
#: permissions.py:10
|
||||
msgid "Delete comments"
|
||||
msgstr "Удалить комментарии"
|
||||
|
||||
#: permissions.py:11
|
||||
msgid "View comments"
|
||||
msgstr "Просмотр комментариев"
|
||||
|
||||
#: views.py:36
|
||||
msgid "Must provide at least one comment."
|
||||
msgstr "Должен быть хотя бы один комментарий."
|
||||
|
||||
#: views.py:46
|
||||
#, python-format
|
||||
msgid "Comment \"%s\" deleted successfully."
|
||||
msgstr "Комментарий \"%s\" удален."
|
||||
|
||||
#: views.py:48
|
||||
#, python-format
|
||||
msgid "Error deleting comment \"%(comment)s\": %(error)s"
|
||||
msgstr "Ошибка при удалении комментариев \"%(comment)s\": %(error)s"
|
||||
|
||||
#: views.py:63
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comment: %s?"
|
||||
msgstr "Вы действительно хотите удалить комментарий %s?"
|
||||
|
||||
#: views.py:65
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comments: %s?"
|
||||
msgstr "Вы действительно хотите удалить комментарии %s?"
|
||||
|
||||
#: views.py:99
|
||||
msgid "Comment added successfully."
|
||||
msgstr "Комментарий добавлен."
|
||||
|
||||
#: views.py:106
|
||||
#, python-format
|
||||
msgid "Add comment to document: %s"
|
||||
msgstr "Добавить комментарий на документ: %s"
|
||||
|
||||
#: views.py:126
|
||||
#, python-format
|
||||
msgid "comments: %s"
|
||||
msgstr "комментарии: %s"
|
||||
@@ -0,0 +1,96 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-12-12 01:48-0400\n"
|
||||
"PO-Revision-Date: 2011-09-30 04:33+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Slovenian (Slovenia) (http://www.transifex.com/projects/p/mayan-edms/language/sl_SI/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: sl_SI\n"
|
||||
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
|
||||
|
||||
#: __init__.py:19 __init__.py:20
|
||||
msgid "delete"
|
||||
msgstr ""
|
||||
|
||||
#: __init__.py:21
|
||||
msgid "add comment"
|
||||
msgstr ""
|
||||
|
||||
#: __init__.py:22
|
||||
msgid "comments"
|
||||
msgstr ""
|
||||
|
||||
#: __init__.py:26
|
||||
msgid "date"
|
||||
msgstr ""
|
||||
|
||||
#: __init__.py:30
|
||||
msgid "user"
|
||||
msgstr ""
|
||||
|
||||
#: __init__.py:34
|
||||
msgid "comment"
|
||||
msgstr ""
|
||||
|
||||
#: permissions.py:7
|
||||
msgid "Comments"
|
||||
msgstr ""
|
||||
|
||||
#: permissions.py:9
|
||||
msgid "Create new comments"
|
||||
msgstr ""
|
||||
|
||||
#: permissions.py:10
|
||||
msgid "Delete comments"
|
||||
msgstr ""
|
||||
|
||||
#: permissions.py:11
|
||||
msgid "View comments"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:36
|
||||
msgid "Must provide at least one comment."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:46
|
||||
#, python-format
|
||||
msgid "Comment \"%s\" deleted successfully."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:48
|
||||
#, python-format
|
||||
msgid "Error deleting comment \"%(comment)s\": %(error)s"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:63
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comment: %s?"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:65
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comments: %s?"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:99
|
||||
msgid "Comment added successfully."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:106
|
||||
#, python-format
|
||||
msgid "Add comment to document: %s"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:126
|
||||
#, python-format
|
||||
msgid "comments: %s"
|
||||
msgstr ""
|
||||
Binary file not shown.
@@ -0,0 +1,97 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Trung Phan Minh <navmobile@gmail.com>, 2013.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-12-12 01:48-0400\n"
|
||||
"PO-Revision-Date: 2013-01-22 07:15+0000\n"
|
||||
"Last-Translator: trungpm <navmobile@gmail.com>\n"
|
||||
"Language-Team: Vietnamese (Viet Nam) (http://www.transifex.com/projects/p/mayan-edms/language/vi_VN/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: vi_VN\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
|
||||
#: __init__.py:19 __init__.py:20
|
||||
msgid "delete"
|
||||
msgstr "xóa"
|
||||
|
||||
#: __init__.py:21
|
||||
msgid "add comment"
|
||||
msgstr "thêm tài liệu"
|
||||
|
||||
#: __init__.py:22
|
||||
msgid "comments"
|
||||
msgstr "chú thích"
|
||||
|
||||
#: __init__.py:26
|
||||
msgid "date"
|
||||
msgstr "ngày"
|
||||
|
||||
#: __init__.py:30
|
||||
msgid "user"
|
||||
msgstr "ngưới dùng"
|
||||
|
||||
#: __init__.py:34
|
||||
msgid "comment"
|
||||
msgstr "chú thích"
|
||||
|
||||
#: permissions.py:7
|
||||
msgid "Comments"
|
||||
msgstr "Chú thích"
|
||||
|
||||
#: permissions.py:9
|
||||
msgid "Create new comments"
|
||||
msgstr "Tạo chú thích mới"
|
||||
|
||||
#: permissions.py:10
|
||||
msgid "Delete comments"
|
||||
msgstr "Xóa chú thích"
|
||||
|
||||
#: permissions.py:11
|
||||
msgid "View comments"
|
||||
msgstr "Xem chú thích"
|
||||
|
||||
#: views.py:36
|
||||
msgid "Must provide at least one comment."
|
||||
msgstr "Cần cung cấp ít nhất một chú thích"
|
||||
|
||||
#: views.py:46
|
||||
#, python-format
|
||||
msgid "Comment \"%s\" deleted successfully."
|
||||
msgstr "Chú thích \"%s\" đã xóa thành công."
|
||||
|
||||
#: views.py:48
|
||||
#, python-format
|
||||
msgid "Error deleting comment \"%(comment)s\": %(error)s"
|
||||
msgstr "Lỗi xóa chú thích \"%(comment)s\": %(error)s"
|
||||
|
||||
#: views.py:63
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comment: %s?"
|
||||
msgstr "Bạn có chắc chắn muốn xóa thú thích: %s?"
|
||||
|
||||
#: views.py:65
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to delete the comments: %s?"
|
||||
msgstr "Bạn có chắc chắn muốn xóa thú thích: %s?"
|
||||
|
||||
#: views.py:99
|
||||
msgid "Comment added successfully."
|
||||
msgstr "Chú thích được tạo thành công."
|
||||
|
||||
#: views.py:106
|
||||
#, python-format
|
||||
msgid "Add comment to document: %s"
|
||||
msgstr "Thêm chú thích cho tài liệu: %s"
|
||||
|
||||
#: views.py:126
|
||||
#, python-format
|
||||
msgid "comments: %s"
|
||||
msgstr "chú thích: %s"
|
||||
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
@@ -0,0 +1,11 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from permissions.models import PermissionNamespace, Permission
|
||||
|
||||
comments_namespace = PermissionNamespace('comments', _(u'Comments'))
|
||||
|
||||
PERMISSION_COMMENT_CREATE = Permission.objects.register(comments_namespace, 'comment_create', _(u'Create new comments'))
|
||||
PERMISSION_COMMENT_DELETE = Permission.objects.register(comments_namespace, 'comment_delete', _(u'Delete comments'))
|
||||
PERMISSION_COMMENT_VIEW = Permission.objects.register(comments_namespace, 'comment_view', _(u'View comments'))
|
||||
@@ -0,0 +1,8 @@
|
||||
from django.conf.urls.defaults import patterns, url
|
||||
|
||||
urlpatterns = patterns('document_comments.views',
|
||||
url(r'^comment/(?P<comment_id>\d+)/delete/$', 'comment_delete', (), 'comment_delete'),
|
||||
url(r'^comment/multiple/delete/$', 'comment_multiple_delete', (), 'comment_multiple_delete'),
|
||||
url(r'^(?P<document_id>\d+)/comment/add/$', 'comment_add', (), 'comment_add'),
|
||||
url(r'^(?P<document_id>\d+)/comment/list/$', 'comments_for_document', (), 'comments_for_document'),
|
||||
)
|
||||
@@ -0,0 +1,130 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.shortcuts import render_to_response, get_object_or_404
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.contrib.comments.models import Comment
|
||||
from django.http import HttpResponseRedirect
|
||||
from django.template import RequestContext
|
||||
from django.contrib import messages
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.contrib.sites.models import Site
|
||||
from django.core.exceptions import PermissionDenied
|
||||
|
||||
from acls.models import AccessEntry
|
||||
from permissions.models import Permission
|
||||
from documents.models import Document
|
||||
|
||||
from .permissions import (PERMISSION_COMMENT_CREATE,
|
||||
PERMISSION_COMMENT_DELETE, PERMISSION_COMMENT_VIEW)
|
||||
from .forms import CommentForm
|
||||
|
||||
|
||||
def comment_delete(request, comment_id=None, comment_id_list=None):
|
||||
post_action_redirect = None
|
||||
|
||||
if comment_id:
|
||||
comments = [get_object_or_404(Comment, pk=comment_id)]
|
||||
elif comment_id_list:
|
||||
comments = [get_object_or_404(Comment, pk=comment_id) for comment_id in comment_id_list.split(',')]
|
||||
|
||||
try:
|
||||
Permission.objects.check_permissions(request.user, [PERMISSION_COMMENT_DELETE])
|
||||
except PermissionDenied:
|
||||
comments = AccessEntry.objects.filter_objects_by_access(PERMISSION_COMMENT_DELETE, request.user, comments, related='content_object')
|
||||
|
||||
if not comments:
|
||||
messages.error(request, _(u'Must provide at least one comment.'))
|
||||
return HttpResponseRedirect(request.META.get('HTTP_REFERER', '/'))
|
||||
|
||||
previous = request.POST.get('previous', request.GET.get('previous', request.META.get('HTTP_REFERER', '/')))
|
||||
next = request.POST.get('next', request.GET.get('next', post_action_redirect if post_action_redirect else request.META.get('HTTP_REFERER', '/')))
|
||||
|
||||
if request.method == 'POST':
|
||||
for comment in comments:
|
||||
try:
|
||||
comment.delete()
|
||||
messages.success(request, _(u'Comment "%s" deleted successfully.') % comment)
|
||||
except Exception, e:
|
||||
messages.error(request, _(u'Error deleting comment "%(comment)s": %(error)s') % {
|
||||
'comment': comment, 'error': e
|
||||
})
|
||||
|
||||
return HttpResponseRedirect(next)
|
||||
|
||||
context = {
|
||||
#'object_name': _(u'comment'),
|
||||
'delete_view': True,
|
||||
'previous': previous,
|
||||
'next': next,
|
||||
'form_icon': u'comment_delete.png',
|
||||
}
|
||||
if len(comments) == 1:
|
||||
context['object'] = comments[0].content_object
|
||||
context['title'] = _(u'Are you sure you wish to delete the comment: %s?') % ', '.join([unicode(d) for d in comments])
|
||||
elif len(comments) > 1:
|
||||
context['title'] = _(u'Are you sure you wish to delete the comments: %s?') % ', '.join([unicode(d) for d in comments])
|
||||
|
||||
return render_to_response('generic_confirm.html', context,
|
||||
context_instance=RequestContext(request))
|
||||
|
||||
|
||||
def comment_multiple_delete(request):
|
||||
return comment_delete(
|
||||
request, comment_id_list=request.GET.get('id_list', [])
|
||||
)
|
||||
|
||||
|
||||
def comment_add(request, document_id):
|
||||
document = get_object_or_404(Document, pk=document_id)
|
||||
|
||||
try:
|
||||
Permission.objects.check_permissions(request.user, [PERMISSION_COMMENT_CREATE])
|
||||
except PermissionDenied:
|
||||
AccessEntry.objects.check_access(PERMISSION_COMMENT_CREATE, request.user, document)
|
||||
|
||||
post_action_redirect = None
|
||||
|
||||
next = request.POST.get('next', request.GET.get('next', post_action_redirect if post_action_redirect else request.META.get('HTTP_REFERER', '/')))
|
||||
|
||||
if request.method == 'POST':
|
||||
form = CommentForm(request.POST)
|
||||
if form.is_valid():
|
||||
comment = form.save(commit=False)
|
||||
comment.user = request.user
|
||||
comment.content_type = ContentType.objects.get_for_model(document)
|
||||
comment.object_pk = document.pk
|
||||
comment.site = Site.objects.get_current()
|
||||
comment.save()
|
||||
|
||||
messages.success(request, _(u'Comment added successfully.'))
|
||||
return HttpResponseRedirect(next)
|
||||
else:
|
||||
form = CommentForm()
|
||||
|
||||
return render_to_response('generic_form.html', {
|
||||
'form': form,
|
||||
'title': _(u'Add comment to document: %s') % document,
|
||||
'next': next,
|
||||
'object': document,
|
||||
}, context_instance=RequestContext(request))
|
||||
|
||||
|
||||
def comments_for_document(request, document_id):
|
||||
'''
|
||||
Show a list of all the comments related to the passed object
|
||||
'''
|
||||
document = get_object_or_404(Document, pk=document_id)
|
||||
|
||||
try:
|
||||
Permission.objects.check_permissions(request.user, [PERMISSION_COMMENT_VIEW])
|
||||
except PermissionDenied:
|
||||
AccessEntry.objects.check_access(PERMISSION_COMMENT_VIEW, request.user, document)
|
||||
|
||||
return render_to_response('generic_list.html', {
|
||||
'object': document,
|
||||
'access_object': document,
|
||||
'title': _(u'comments: %s') % document,
|
||||
'object_list': Comment.objects.for_model(document).order_by('-submit_date'),
|
||||
'hide_link': True,
|
||||
'hide_object': True,
|
||||
}, context_instance=RequestContext(request))
|
||||
Reference in New Issue
Block a user