translatable default title, fix import style in admin.py
parent
8c382f97d1
commit
1913af4b7d
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from django.contrib import admin
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from admin_interface.models import Theme
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: django-admin-interface\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-01-01 21:24-0500\n"
|
||||
"POT-Creation-Date: 2019-01-03 15:56-0500\n"
|
||||
"PO-Revision-Date: 2018-12-30 19:13-0500\n"
|
||||
"Last-Translator: Martin Vuelta <martin.vuelta@softbutterfly.io>\n"
|
||||
"Language-Team: Spanish <dev@softbutterfly.io>\n"
|
||||
|
|
@ -79,6 +79,11 @@ msgstr "Nombre"
|
|||
msgid "active"
|
||||
msgstr "Activo"
|
||||
|
||||
#: models.py:61 templates/admin/base_site.html:6
|
||||
#: templates/admin/base_site.html:66
|
||||
msgid "Django administration"
|
||||
msgstr "Administración de Django"
|
||||
|
||||
#: models.py:63
|
||||
msgid "title"
|
||||
msgstr "Título"
|
||||
|
|
@ -171,10 +176,6 @@ msgstr "Tema"
|
|||
msgid "Themes"
|
||||
msgstr "Temas"
|
||||
|
||||
#: templates/admin/base_site.html:6 templates/admin/base_site.html:66
|
||||
msgid "Django administration"
|
||||
msgstr "Administración de Django"
|
||||
|
||||
#: templates/admin/filter.html:13
|
||||
#: templates/admin_interface/dropdown_filter.html:4
|
||||
#, python-format
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class Theme(models.Model):
|
|||
|
||||
title = models.CharField(
|
||||
max_length=50,
|
||||
default='Django administration',
|
||||
default=_('Django administration'),
|
||||
blank=True,
|
||||
verbose_name=_('title'))
|
||||
title_color = ColorField(
|
||||
|
|
|
|||
Loading…
Reference in New Issue