diff --git a/README.md b/README.md index 4159ead..4ac5ff3 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,7 @@ __Generate translations__ python ../manage.py compilemessages # Under docker shell, run -docker-compose -f docker-compose.yml exec web python manage.py compilemessages group +docker-compose -f docker-compose.yml exec web python manage.py compilemessages ``` __Load default groups__ diff --git a/app/Dockerfile b/app/Dockerfile index 7d4392c..b0c82a0 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -17,7 +17,7 @@ RUN apk update \ libxml2-dev \ libxslt-dev \ libffi-dev \ - gettext + gettext-dev RUN pip install --upgrade pip @@ -43,6 +43,8 @@ WORKDIR ${APP_HOME} COPY . ${APP_HOME} +RUN django-admin compilemessages + RUN chown -R app:app ${APP_HOME} USER app diff --git a/app/core/locale/es/LC_MESSAGES/django.po b/app/core/locale/es/LC_MESSAGES/django.po index 9c9a373..66d5837 100644 --- a/app/core/locale/es/LC_MESSAGES/django.po +++ b/app/core/locale/es/LC_MESSAGES/django.po @@ -193,7 +193,7 @@ msgstr "Edite assets y renditions del artículo" #: templates/index.html:56 msgid "Edit article metadata" -msgstr "Edite metadata del artículo" +msgstr "Edite metadatos del artículo" #: templates/index.html:57 msgid "Find problems" @@ -556,26 +556,3 @@ msgstr "Se agregó el paquete (%(name)s, %(id)s)" #: views.py:239 msgid " does not have a valid format. Please provide a zip file." msgstr " no tiene un formato válido. Por favor, proporcione un archivo zip." - -#~ msgid "Reset password" -#~ msgstr "Restablecer la contraseña" - -#~ msgid "Send e-mail" -#~ msgstr "Enviar correo electrónico" - -#, fuzzy -#~| msgid "Packages" -#~ msgid "Package address" -#~ msgstr "Direción del paquete" - -#~ msgid "No packages were found for document %s" -#~ msgstr "No se encontraron paquetes para el documento %s" - -#~ msgid "Activities" -#~ msgstr "Actividades" - -#~ msgid "All activities" -#~ msgstr "Todas las actividades" - -#~ msgid "The two password fields didn’t match." -#~ msgstr "Los dos campos de contraseña no coincidían." diff --git a/app/core/locale/pt/LC_MESSAGES/django.po b/app/core/locale/pt/LC_MESSAGES/django.po index 837e857..94de6a9 100644 --- a/app/core/locale/pt/LC_MESSAGES/django.po +++ b/app/core/locale/pt/LC_MESSAGES/django.po @@ -189,11 +189,11 @@ msgstr "Agendar artigo para publicação" #: templates/index.html:55 msgid "Edit article assets and renditions" -msgstr "Edite assets y renditions" +msgstr "Edite assets e renditions" #: templates/index.html:56 msgid "Edit article metadata" -msgstr "Edite metadata del artículo" +msgstr "Edite metadados do artigo" #: templates/index.html:57 msgid "Find problems" @@ -557,24 +557,3 @@ msgstr "Pacote (%(name)s, %(id)s) foi adicionado" msgid " does not have a valid format. Please provide a zip file." msgstr "" " não possui um formato válido. Por favor, forneça um arquivo em formato zip." - -msgid "Reset password" -#~ msgstr "Redefinir senha" - -#~ msgid "Send e-mail" -#~ msgstr "Enviar e-mail" - -#~ msgid "Package address" -#~ msgstr "Endereço do pacote" - -#~ msgid "No packages were found for document %s" -#~ msgstr "Não foram encontrados pacotes para o documento %s" - -#~ msgid "Activities" -#~ msgstr "Atividades" - -#~ msgid "All activities" -#~ msgstr "Todas as atividades" - -#~ msgid "The two password fields didn’t match." -#~ msgstr "As duas senhas são diferentes." diff --git a/app/core/templates/index.html b/app/core/templates/index.html index 69d4773..31bc3dc 100644 --- a/app/core/templates/index.html +++ b/app/core/templates/index.html @@ -84,7 +84,7 @@
# | -{% trans 'Identifier' %} | -{% trans 'Creation date' %} | -{% trans 'Update date' %} | -{% trans 'Package name' %} | -{% trans 'XML' %} | -{% trans 'Assets' %} | -{% trans 'Renditions' %} | -|
---|---|---|---|---|---|---|---|---|
{{ article_files_obj.start_index|add:forloop.counter0 }} | -{{ art.id }} | -{{ art.created|date:'Y-m-d H:i' }} | - {% if art.created != art.updated %} -{{ art.updated|date:'Y-m-d H:i' }} | - {% else %} -- {% endif %} - | {{ art.file.name }} | -{{ art.xml }} | -{{ art.assets|length }} | -{{ art.renditions|length }} | -