Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(i18n): add italian translations #771

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ coverage.xml
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,11 @@ flush: ## Flush the database
.PHONY: dump
dump: ## dump alexandria data
@docker compose run --rm alexandria ./manage.py dumpdata alexandria_core | jq > initial_data.json

.PHONY: makemessages
makemessages: ## Update translation files for all languages
@docker compose run --rm --no-deps alexandria ./manage.py makemessages -a --add-location file

.PHONY: compilemessages
compilemessages: ## Generate compiled translation files
@docker compose run --rm --no-deps alexandria ./manage.py compilemessages
Binary file added alexandria/locale/de/LC_MESSAGES/django.mo
Binary file not shown.
54 changes: 26 additions & 28 deletions alexandria/locale/de/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: 2025-02-18 13:29+0000\n"
"POT-Creation-Date: 2025-02-18 14:03+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -18,87 +18,85 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: alexandria/core/api.py:25
#: alexandria/core/api.py
msgid "(copy)"
msgstr "(Kopie)"

#: alexandria/core/models.py:44
#: alexandria/core/models.py
msgid "Created by user"
msgstr "Erstellt durch Benutzer"

#: alexandria/core/models.py:47
#: alexandria/core/models.py
msgid "Created by group"
msgstr "Erstellt durch Gruppe"

#: alexandria/core/models.py:51
#: alexandria/core/models.py
msgid "Modified by user"
msgstr "Bearbeitet durch Benutzer"

#: alexandria/core/models.py:54
#: alexandria/core/models.py
msgid "Modified by group"
msgstr "Bearbeitet durch Gruppe"

#: alexandria/core/models.py:56
#: alexandria/core/models.py
msgid "Metainfo"
msgstr "Metainformationen"

#: alexandria/core/models.py:91
#: alexandria/core/models.py
msgid "Please enter a valid HEX color code."
msgstr "Bitte geben Sie einen validen HEX Farbcode ein."

#: alexandria/core/models.py:96 alexandria/core/models.py:129
#: alexandria/core/models.py:143 alexandria/core/models.py:233
#: alexandria/core/models.py
msgid "Name"
msgstr "Name"

#: alexandria/core/models.py:98 alexandria/core/models.py:131
#: alexandria/core/models.py:145 alexandria/core/models.py:151
#: alexandria/core/models.py
msgid "Description"
msgstr "Beschreibung"

#: alexandria/core/models.py:104
#: alexandria/core/models.py
msgid "Allowed mime types"
msgstr "Erlaubte Dateitypen"

#: alexandria/core/models.py:150
#: alexandria/core/models.py
msgid "Title"
msgstr "Titel"

#: alexandria/core/models.py:237
#: alexandria/core/models.py
msgid "Checksum"
msgstr "Checksumme"

#: alexandria/core/validations.py:31
#: alexandria/core/validations.py
msgid "File is infected with malware."
msgstr "Datei ist mit Malware infiziert"

#: alexandria/core/validations.py:35
#: alexandria/core/validations.py
msgid "Malware scan had an error: "
msgstr "Malware-Scan hatte einen Fehler:"

#: alexandria/core/validations.py:53
#: alexandria/core/validations.py
#, python-format
msgid "File type %(mime_type)s is not allowed in category %(category)s."
msgstr ""
"Dateityp %(mime_type)s ist in der Kategorie %(category)s nicht erlaubt."

#: alexandria/core/validations.py:71
#: alexandria/core/validations.py
msgid "Missing Content-Type header"
msgstr "Fehlender Content-Type header"

#: alexandria/core/validations.py:73
#: alexandria/core/validations.py
msgid "Unknown file extension"
msgstr "Unbekannte Dateiendung"

#: alexandria/core/validations.py:80
#: alexandria/core/validations.py
#, python-format
msgid ""
"Content-Type %(content_type)s does not match file extension %(extension)s."
msgstr ""
"Content-Type %(content_type) stimmt nicht mit der Dateiendung %(extension)s "
"überein."

#: alexandria/core/validations.py:92
#: alexandria/core/validations.py
#, python-format
msgid ""
"Content-Type %(content_type)s does not match detected file content "
Expand All @@ -107,29 +105,29 @@ msgstr ""
"Content-Type %(content_type)s stimmt nicht mit dem erkannten Dateityp "
"%(file_content_type)s überein."

#: alexandria/core/views.py:149
#: alexandria/core/views.py
msgid "PDF conversion is not enabled."
msgstr "PDF-Konvertierung ist nicht aktiviert."

#: alexandria/core/views.py:246
#: alexandria/core/views.py
msgid "\"files\" filter is mandatory!"
msgstr "Der Filter \"files\" ist obligatorisch!"

#: alexandria/core/views.py:258
#: alexandria/core/views.py
msgid "The \"files\" filter must consist of a comma delimited list of UUIDs!"
msgstr ""
"Der \"files\" Filter muss aus einer kommaseparierten Liste von UUIDs "
"bestehen!"

#: alexandria/core/views.py:276
#: alexandria/core/views.py
msgid "For downloading a file use the presigned download URL."
msgstr ""
"Zum Herunterladen einer Datei verwenden Sie die vorgegebene Download-URL."

#: alexandria/core/views.py:301
#: alexandria/core/views.py
msgid "WebDAV is not enabled."
msgstr "WebDAV ist nicht aktiviert."

#: alexandria/core/views.py:311
#: alexandria/core/views.py
msgid "WebDAV is not enabled for this mime type."
msgstr "WebDAV ist für diesen Dateityp nicht aktiviert"
Binary file added alexandria/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
54 changes: 26 additions & 28 deletions alexandria/locale/en/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: 2025-02-18 13:29+0000\n"
"POT-Creation-Date: 2025-02-18 14:03+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -18,110 +18,108 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: alexandria/core/api.py:25
#: alexandria/core/api.py
msgid "(copy)"
msgstr ""

#: alexandria/core/models.py:44
#: alexandria/core/models.py
msgid "Created by user"
msgstr ""

#: alexandria/core/models.py:47
#: alexandria/core/models.py
msgid "Created by group"
msgstr ""

#: alexandria/core/models.py:51
#: alexandria/core/models.py
msgid "Modified by user"
msgstr ""

#: alexandria/core/models.py:54
#: alexandria/core/models.py
msgid "Modified by group"
msgstr ""

#: alexandria/core/models.py:56
#: alexandria/core/models.py
msgid "Metainfo"
msgstr ""

#: alexandria/core/models.py:91
#: alexandria/core/models.py
msgid "Please enter a valid HEX color code."
msgstr ""

#: alexandria/core/models.py:96 alexandria/core/models.py:129
#: alexandria/core/models.py:143 alexandria/core/models.py:233
#: alexandria/core/models.py
msgid "Name"
msgstr ""

#: alexandria/core/models.py:98 alexandria/core/models.py:131
#: alexandria/core/models.py:145 alexandria/core/models.py:151
#: alexandria/core/models.py
msgid "Description"
msgstr ""

#: alexandria/core/models.py:104
#: alexandria/core/models.py
msgid "Allowed mime types"
msgstr ""

#: alexandria/core/models.py:150
#: alexandria/core/models.py
msgid "Title"
msgstr ""

#: alexandria/core/models.py:237
#: alexandria/core/models.py
msgid "Checksum"
msgstr ""

#: alexandria/core/validations.py:31
#: alexandria/core/validations.py
msgid "File is infected with malware."
msgstr ""

#: alexandria/core/validations.py:35
#: alexandria/core/validations.py
msgid "Malware scan had an error: "
msgstr ""

#: alexandria/core/validations.py:53
#: alexandria/core/validations.py
#, python-format
msgid "File type %(mime_type)s is not allowed in category %(category)s."
msgstr ""

#: alexandria/core/validations.py:71
#: alexandria/core/validations.py
msgid "Missing Content-Type header"
msgstr ""

#: alexandria/core/validations.py:73
#: alexandria/core/validations.py
msgid "Unknown file extension"
msgstr ""

#: alexandria/core/validations.py:80
#: alexandria/core/validations.py
#, python-format
msgid ""
"Content-Type %(content_type)s does not match file extension %(extension)s."
msgstr ""

#: alexandria/core/validations.py:92
#: alexandria/core/validations.py
#, python-format
msgid ""
"Content-Type %(content_type)s does not match detected file content "
"%(file_content_type)s."
msgstr ""

#: alexandria/core/views.py:149
#: alexandria/core/views.py
msgid "PDF conversion is not enabled."
msgstr ""

#: alexandria/core/views.py:246
#: alexandria/core/views.py
msgid "\"files\" filter is mandatory!"
msgstr ""

#: alexandria/core/views.py:258
#: alexandria/core/views.py
msgid "The \"files\" filter must consist of a comma delimited list of UUIDs!"
msgstr ""

#: alexandria/core/views.py:276
#: alexandria/core/views.py
msgid "For downloading a file use the presigned download URL."
msgstr ""

#: alexandria/core/views.py:301
#: alexandria/core/views.py
msgid "WebDAV is not enabled."
msgstr ""

#: alexandria/core/views.py:311
#: alexandria/core/views.py
msgid "WebDAV is not enabled for this mime type."
msgstr ""
Binary file added alexandria/locale/it/LC_MESSAGES/django.mo
Binary file not shown.
Loading
Loading