Commits

Alexander Nordlund  committed 3ffc236

First part of translation.

  • Participants
  • Parent commits 20bab85

Comments (0)

Files changed (2)

File gnocchi/cms/locale/sv_SE/LC_MESSAGES/django.po

+# 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: 2012-07-03 11:14+0200\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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: .\models.py:32
+msgid "template"
+msgstr ""
+
+#: .\models.py:33
+msgid "templates"
+msgstr ""
+
+#: .\models.py:67
+msgid "page"
+msgstr ""
+
+#: .\models.py:68
+msgid "pages"
+msgstr ""
+
+#: .\models.py:146
+msgid "fragment"
+msgstr ""
+
+#: .\models.py:147
+msgid "fragments"
+msgstr ""
+
+#: .\models.py:179
+msgid "style sheet"
+msgstr ""
+
+#: .\models.py:180
+msgid "style sheets"
+msgstr ""

File gnocchi/cms/models.py

 
 from gnocchi.tools.attr import AttrHelper
 
+# Translations
+from django.utils.translation import ugettext_lazy as _
+
 #
 # DB stored templates
 #
     content = models.TextField()
 
     class Meta:
+        verbose_name = _('template')
+        verbose_name_plural = _('templates')
         ordering = ('path',)
     def __unicode__(self):
         return self.path
     objects = PageManager()
 
     class Meta:
+        verbose_name = _('page')
+        verbose_name_plural = _('pages')
         unique_together = (
             ('parent', 'path',),
         )
     name = models.CharField(max_length=200)
     content = models.TextField(blank=True)
     class Meta:
+        verbose_name = _('fragment')
+        verbose_name_plural = _('fragments')
         unique_together = (
             ('page', 'name',)
         )
     name = models.SlugField()
     description = models.CharField(max_length=1024, blank=True)
     content = models.TextField(blank=True)
-
+    class Meta:
+        verbose_name = _('style sheet')
+        verbose_name_plural = _('style sheets')
     def __unicode__(self):
         return u'[%s] %s' % (self.name, self.description,)
     def get_absolute_url(self):