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