Commits

Guilherme Gondim committed 26096a3

improve admin and translation strings

Comments (0)

Files changed (5)

 from galeria.models import Album, Picture
 
 
+# Hack to easier translate some strings from FeinCMS
+OPEN_TREE_STR = _('Expand tree')
+COLLAPSE_TREE_STR = _('Collapse tree')
+
+
 class AlbumAdminForm(forms.ModelForm):
 
     def __init__(self, *args, **kwargs):
     list_display = ('title', 'album_cover', 'is_public', 'order')
     list_filter = ['is_public']
     prepopulated_fields = {'slug': ('title',)}
+    search_fields = ('title', 'slug', 'description')
     #mptt_level_indent = 20
 
     def album_cover(self, obj):
     list_display = ('admin_thumbnail', 'title', 'album', 'date_added', 'is_public')
     list_display_links = ['title']
     list_filter = ['date_added', 'album', 'is_public']
+    list_per_page = 20
     prepopulated_fields = {'slug': ('title',)}
-    search_fields = ['title', 'title_slug', 'text']
-    list_per_page = 20
+    search_fields = ('title', 'slug', 'description')
 
     admin_thumbnail = AdminThumbnail(
         image_field='thumbnail_image',

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:26-0300\n"
+"POT-Creation-Date: 2012-05-08 19:49-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"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 
-#: admin.py:33
+#: admin.py:11
+msgid "Expand tree"
+msgstr ""
+
+#: admin.py:12
+msgid "Collapse tree"
+msgstr ""
+
+#: admin.py:39
 msgid "<em>Not defined</em>"
 msgstr ""
 
-#: admin.py:36 models.py:73
+#: admin.py:42 models.py:73
 msgid "cover"
 msgstr ""
 
-#: admin.py:51
+#: admin.py:57
 msgid "thumbnail"
 msgstr ""
 

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:26-0300\n"
-"PO-Revision-Date: 2012-05-08 22:26+0000\n"
+"POT-Creation-Date: 2012-05-08 19:49-0300\n"
+"PO-Revision-Date: 2012-05-08 22:49+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"
 "Language: pt_BR\n"
 "Plural-Forms: nplurals=2; plural=(n > 1)\n"
 
-#: admin.py:33
+#: admin.py:11
+msgid "Expand tree"
+msgstr "Expandir árvore"
+
+#: admin.py:12
+msgid "Collapse tree"
+msgstr "Encolher árvore"
+
+#: admin.py:39
 msgid "<em>Not defined</em>"
 msgstr "<em>Não definido</em>"
 
-#: admin.py:36 models.py:73
+#: admin.py:42 models.py:73
 msgid "cover"
 msgstr "capa"
 
-#: admin.py:51
+#: admin.py:57
 msgid "thumbnail"
 msgstr "miniatura"