translations for admin
authorJan Szejko <janek37@gmail.com>
Thu, 29 Dec 2016 14:48:56 +0000 (15:48 +0100)
committerJan Szejko <janek37@gmail.com>
Thu, 29 Dec 2016 14:48:56 +0000 (15:48 +0100)
stage2/locale/pl/LC_MESSAGES/django.mo [new file with mode: 0644]
stage2/locale/pl/LC_MESSAGES/django.po [new file with mode: 0644]
stage2/models.py

diff --git a/stage2/locale/pl/LC_MESSAGES/django.mo b/stage2/locale/pl/LC_MESSAGES/django.mo
new file mode 100644 (file)
index 0000000..f012b7f
Binary files /dev/null and b/stage2/locale/pl/LC_MESSAGES/django.mo differ
diff --git a/stage2/locale/pl/LC_MESSAGES/django.po b/stage2/locale/pl/LC_MESSAGES/django.po
new file mode 100644 (file)
index 0000000..98a0052
--- /dev/null
@@ -0,0 +1,79 @@
+# 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.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-12-29 15:35+0100\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"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
+"|| n%100>=20) ? 1 : 2);\n"
+
+#: models.py:16
+msgid "contact"
+msgstr "kontakt"
+
+#: models.py:17
+msgid "key"
+msgstr "klucz"
+
+#: models.py:18
+msgid "first name"
+msgstr "imię"
+
+#: models.py:19
+msgid "last_name"
+msgstr "nazwisko"
+
+#: models.py:20
+msgid "email"
+msgstr "email"
+
+#: models.py:21
+msgid "key sent"
+msgstr "wysłano klucz"
+
+#: models.py:24
+msgid "participant"
+msgstr "uczestnik"
+
+#: models.py:25
+msgid "participants"
+msgstr "uczestnicy"
+
+#: models.py:54
+msgid "title"
+msgstr "tytuł"
+
+#: models.py:55
+msgid "content"
+msgstr "treść"
+
+#: models.py:56
+msgid "deadline"
+msgstr "termin"
+
+#: models.py:57
+msgid "max points"
+msgstr "max punktów"
+
+#: models.py:58
+msgid "file descriptions"
+msgstr "opisy plików"
+
+#: models.py:62
+msgid "assignment"
+msgstr "zadanie"
+
+#: models.py:63
+msgid "assignments"
+msgstr "zadania"
index 8ffa255..1c6bc49 100644 (file)
@@ -6,18 +6,23 @@ import string
 from django.contrib.auth.models import User
 from django.core.urlresolvers import reverse
 from django.db import models
+from django.utils.translation import ugettext_lazy as _
 from jsonfield import JSONField
 
 from contact.models import Contact
 
 
 class Participant(models.Model):
-    contact = models.ForeignKey(Contact, null=True)
-    key = models.CharField(max_length=30, unique=True)
-    first_name = models.CharField(max_length=100)
-    last_name = models.CharField(max_length=100)
-    email = models.EmailField(max_length=100, unique=True)
-    key_sent = models.BooleanField(default=False)
+    contact = models.ForeignKey(Contact, verbose_name=_('contact'), null=True)
+    key = models.CharField(_('key'), max_length=30, unique=True)
+    first_name = models.CharField(_('first name'), max_length=100)
+    last_name = models.CharField(_('last_name'), max_length=100)
+    email = models.EmailField(_('email'), max_length=100, unique=True)
+    key_sent = models.BooleanField(_('key sent'), default=False)
+
+    class Meta:
+        verbose_name = _('participant')
+        verbose_name_plural = _('participants')
 
     def __unicode__(self):
         return ', '.join((self.last_name, self.first_name, self.email))
@@ -46,14 +51,16 @@ class Participant(models.Model):
 
 
 class Assignment(models.Model):
-    title = models.CharField(max_length=128)
-    content = models.TextField()
-    deadline = models.DateTimeField()
-    max_points = models.IntegerField()
-    file_descriptions = JSONField()
+    title = models.CharField(_('title'), max_length=128)
+    content = models.TextField(_('content'))
+    deadline = models.DateTimeField(_('deadline'))
+    max_points = models.IntegerField(_('max points'))
+    file_descriptions = JSONField(_('file descriptions'))
 
     class Meta:
         ordering = ['deadline']
+        verbose_name = _('assignment')
+        verbose_name_plural = _('assignments')
 
     def __unicode__(self):
         return self.title