Skip to content

Commit

Permalink
Missing i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
txels committed Apr 9, 2024
1 parent b973a54 commit 76f0888
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ ldap-list:
docker-compose exec ldap ldapsearch -x -H ldap://localhost -b dc=pirata,dc=cat -D "cn=admin,dc=pirata,dc=cat" -w admin

i18n:
./indocker.sh ./manage.py makemessages --locale ca
./manage.py makemessages --locale ca
@echo "Please edit locale/ca/LC_MESSAGES/django.po to add new translations"

i18n-compile:
./indocker.sh ./manage.py compilemessages --ignore .venv
docker-compose restart web
./manage.py compilemessages --ignore .venv

package:
docker build -t ${IMAGE}:${VERSION} .
Expand Down
2 changes: 1 addition & 1 deletion indocker.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
docker-compose exec web $@
docker-compose run web $@
18 changes: 11 additions & 7 deletions locale/ca/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-04 17:28+0000\n"
"POT-Creation-Date: 2024-04-09 11:57+0000\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"
Expand Down Expand Up @@ -85,27 +85,31 @@ msgstr ""
msgid "Eina de missatgeria instantània per a grups."
msgstr ""

#: shipanaro/admin.py:48
#: shipanaro/admin.py:50
msgid "Create user in LDAP"
msgstr "Crear usuari a LDAP"

#: shipanaro/admin.py:60
msgid "Send password reset email"
msgstr "Envia correu per reiniciar contrasenya"

#: shipanaro/admin.py:117
#: shipanaro/admin.py:129
msgid "Contact"
msgstr "Contacte"

#: shipanaro/admin.py:126 shipanaro/models.py:84
#: shipanaro/admin.py:138 shipanaro/models.py:84
msgid "Address"
msgstr "Adreça"

#: shipanaro/admin.py:139
#: shipanaro/admin.py:151
msgid "Status"
msgstr "Estat"

#: shipanaro/admin.py:148 shipanaro/models.py:109
#: shipanaro/admin.py:160 shipanaro/models.py:109
msgid "Notes"
msgstr "Notes"

#: shipanaro/admin.py:151
#: shipanaro/admin.py:163
msgid "Legacy"
msgstr "Històric"

Expand Down

0 comments on commit 76f0888

Please sign in to comment.