Commits

Guilherme Gondim committed 0de44e0

improve translation strings

Comments (0)

Files changed (6)

             return _('<em>Not defined</em>')
         return '<img src="%s" alt="%s" style="width: 42px;" />' % (cover.cover_image.url, cover.title)
     album_cover.allow_tags = True
-    album_cover.short_description = _('Cover')
+    album_cover.short_description = _('cover')
 
 
 class PictureAdmin(admin.ModelAdmin):
         image_field='thumbnail_image',
         template='galeria/admin/thumbnail.html'
     )
+    admin_thumbnail.short_description = _('thumbnail')
 
 admin.site.register(Album, AlbumAdmin)
 admin.site.register(Picture, PictureAdmin)
Add a comment to this file

galeria/locale/en/LC_MESSAGES/django.mo

Binary file modified.

galeria/locale/en/LC_MESSAGES/django.po

 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-05-08 19:04-0300\n"
+"POT-Creation-Date: 2012-05-08 19:26-0300\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"
 msgid "<em>Not defined</em>"
 msgstr ""
 
-#: admin.py:36
-msgid "Cover"
+#: admin.py:36 models.py:73
+msgid "cover"
+msgstr ""
+
+#: admin.py:51
+msgid "thumbnail"
 msgstr ""
 
 #: models.py:29
 msgid "Ascending by modification date"
 msgstr ""
 
-#: models.py:46 models.py:129
+#: models.py:46 models.py:131
 msgid "title"
 msgstr ""
 
-#: models.py:48 models.py:130
+#: models.py:48 models.py:132
 msgid "slug"
 msgstr ""
 
-#: models.py:51 models.py:155
+#: models.py:51 models.py:157
 msgid "description"
 msgstr ""
 
-#: models.py:53 models.py:157
+#: models.py:53 models.py:159
 msgid "is public"
 msgstr ""
 
 msgstr ""
 
 #: models.py:68
-msgid "parent"
+msgid "parent album"
 msgstr ""
 
-#: models.py:73
-msgid "cover"
-msgstr ""
-
-#: models.py:79 models.py:131
+#: models.py:79 models.py:133
 msgid "date added"
 msgstr ""
 
-#: models.py:132
+#: models.py:85 models.py:165
+msgid "album"
+msgstr ""
+
+#: models.py:86
+msgid "albums"
+msgstr ""
+
+#: models.py:134
 msgid "date modified"
 msgstr ""
 
-#: models.py:133
+#: models.py:135
 msgid "date taken"
 msgstr ""
 
-#: models.py:134
-msgid "original image"
+#: models.py:136
+msgid "image"
 msgstr ""
 
-#: models.py:159
+#: models.py:161
 msgid "Public images will be displayed in the default views."
 msgstr ""
 
-#: models.py:163
-msgid "album"
-msgstr ""
-
-#: models.py:172
+#: models.py:174
 msgid "picture"
 msgstr ""
 
-#: models.py:173
+#: models.py:175
 msgid "pictures"
 msgstr ""
Add a comment to this file

galeria/locale/pt_BR/LC_MESSAGES/django.mo

Binary file modified.

galeria/locale/pt_BR/LC_MESSAGES/django.po

 msgstr ""
 "Project-Id-Version: Django Galeria\n"
 "Report-Msgid-Bugs-To: https://bitbucket.org/semente/django-galeria/issues\n"
-"POT-Creation-Date: 2012-05-08 19:04-0300\n"
-"PO-Revision-Date: 2012-05-08 22:08+0000\n"
+"POT-Creation-Date: 2012-05-08 19:26-0300\n"
+"PO-Revision-Date: 2012-05-08 22:26+0000\n"
 "Last-Translator: Guilherme Gondim <semente+transifex@taurinus.org>\n"
 "Language-Team: Portuguese (Brazil) (http://www.transifex.net/projects/p/django-galeria/language/pt_BR/)\n"
 "MIME-Version: 1.0\n"
 msgid "<em>Not defined</em>"
 msgstr "<em>Não definido</em>"
 
-#: admin.py:36
-msgid "Cover"
-msgstr "Capa"
+#: admin.py:36 models.py:73
+msgid "cover"
+msgstr "capa"
+
+#: admin.py:51
+msgid "thumbnail"
+msgstr "miniatura"
 
 #: models.py:29
 msgid "Descending by addition date"
 msgid "Ascending by modification date"
 msgstr "Crescente por data de modificação"
 
-#: models.py:46 models.py:129
+#: models.py:46 models.py:131
 msgid "title"
 msgstr "título"
 
-#: models.py:48 models.py:130
+#: models.py:48 models.py:132
 msgid "slug"
 msgstr "slug"
 
-#: models.py:51 models.py:155
+#: models.py:51 models.py:157
 msgid "description"
 msgstr "descrição"
 
-#: models.py:53 models.py:157
+#: models.py:53 models.py:159
 msgid "is public"
 msgstr "público"
 
 msgstr "A ordem padrão para as imagens deste álbum."
 
 #: models.py:68
-msgid "parent"
-msgstr "ascendente"
+msgid "parent album"
+msgstr "álbum ascendente"
 
-#: models.py:73
-msgid "cover"
-msgstr "capa"
-
-#: models.py:79 models.py:131
+#: models.py:79 models.py:133
 msgid "date added"
 msgstr "data de adição"
 
-#: models.py:132
+#: models.py:85 models.py:165
+msgid "album"
+msgstr "álbum"
+
+#: models.py:86
+msgid "albums"
+msgstr "álbuns"
+
+#: models.py:134
 msgid "date modified"
 msgstr "data de modificação"
 
-#: models.py:133
+#: models.py:135
 msgid "date taken"
 msgstr "data da foto"
 
-#: models.py:134
-msgid "original image"
-msgstr "imagem original"
+#: models.py:136
+msgid "image"
+msgstr "imagem"
 
-#: models.py:159
+#: models.py:161
 msgid "Public images will be displayed in the default views."
 msgstr "Imagens públicas serão exibidas nas views padrão."
 
-#: models.py:163
-msgid "album"
-msgstr "álbum"
-
-#: models.py:172
+#: models.py:174
 msgid "picture"
 msgstr "imagem"
 
-#: models.py:173
+#: models.py:175
 msgid "pictures"
 msgstr "imagens"

galeria/models.py

         'self',
         null=True,
         blank=True,
-        verbose_name=_('parent'),
+        verbose_name=_('parent album'),
         related_name='children'
     )
     cover = models.ForeignKey(
 
     class Meta:
         unique_together = (('slug', 'parent'),)
+        verbose_name = _('album')
+        verbose_name_plural = _('albums')
 
     def __unicode__(self):
         return unicode(self.title)
     date_added = models.DateTimeField(_('date added'), auto_now_add=True)
     date_modified = models.DateTimeField(_('date modified'), auto_now=True)
     date_taken = models.DateTimeField(_('date taken'), null=True, editable=False)
-    original_image = models.ImageField(_('original image'), upload_to=picture_imagefield_path)
+    original_image = models.ImageField(_('image'), upload_to=picture_imagefield_path)
     display_image = ImageSpec(
         DISPLAY_IMAGE_PROCESSORS,
         image_field='original_image',
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.