Skip to content

Commit 167d988

Browse files
committed
fix(i18n): add italian translations
1 parent 1e2977a commit 167d988

File tree

9 files changed

+196
-58
lines changed

9 files changed

+196
-58
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ coverage.xml
4747
.hypothesis/
4848

4949
# Translations
50-
*.mo
5150
*.pot
5251

5352
# Django stuff:

Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,11 @@ flush: ## Flush the database
6767
.PHONY: dump
6868
dump: ## dump alexandria data
6969
@docker compose run --rm alexandria ./manage.py dumpdata alexandria_core | jq > initial_data.json
70+
71+
.PHONY: makemessages
72+
makemessages: ## Update translation files for all languages
73+
@docker compose run --rm --no-deps alexandria ./manage.py makemessages -a --add-location file
74+
75+
.PHONY: compilemessages
76+
compilemessages: ## Generate compiled translation files
77+
@docker compose run --rm --no-deps alexandria ./manage.py compilemessages
2.52 KB
Binary file not shown.

alexandria/locale/de/LC_MESSAGES/django.po

+26-28
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-02-18 13:29+0000\n"
11+
"POT-Creation-Date: 2025-02-18 14:03+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -18,87 +18,85 @@ msgstr ""
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2020

21-
#: alexandria/core/api.py:25
21+
#: alexandria/core/api.py
2222
msgid "(copy)"
2323
msgstr "(Kopie)"
2424

25-
#: alexandria/core/models.py:44
25+
#: alexandria/core/models.py
2626
msgid "Created by user"
2727
msgstr "Erstellt durch Benutzer"
2828

29-
#: alexandria/core/models.py:47
29+
#: alexandria/core/models.py
3030
msgid "Created by group"
3131
msgstr "Erstellt durch Gruppe"
3232

33-
#: alexandria/core/models.py:51
33+
#: alexandria/core/models.py
3434
msgid "Modified by user"
3535
msgstr "Bearbeitet durch Benutzer"
3636

37-
#: alexandria/core/models.py:54
37+
#: alexandria/core/models.py
3838
msgid "Modified by group"
3939
msgstr "Bearbeitet durch Gruppe"
4040

41-
#: alexandria/core/models.py:56
41+
#: alexandria/core/models.py
4242
msgid "Metainfo"
4343
msgstr "Metainformationen"
4444

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

49-
#: alexandria/core/models.py:96 alexandria/core/models.py:129
50-
#: alexandria/core/models.py:143 alexandria/core/models.py:233
49+
#: alexandria/core/models.py
5150
msgid "Name"
5251
msgstr "Name"
5352

54-
#: alexandria/core/models.py:98 alexandria/core/models.py:131
55-
#: alexandria/core/models.py:145 alexandria/core/models.py:151
53+
#: alexandria/core/models.py
5654
msgid "Description"
5755
msgstr "Beschreibung"
5856

59-
#: alexandria/core/models.py:104
57+
#: alexandria/core/models.py
6058
msgid "Allowed mime types"
6159
msgstr "Erlaubte Dateitypen"
6260

63-
#: alexandria/core/models.py:150
61+
#: alexandria/core/models.py
6462
msgid "Title"
6563
msgstr "Titel"
6664

67-
#: alexandria/core/models.py:237
65+
#: alexandria/core/models.py
6866
msgid "Checksum"
6967
msgstr "Checksumme"
7068

71-
#: alexandria/core/validations.py:31
69+
#: alexandria/core/validations.py
7270
msgid "File is infected with malware."
7371
msgstr "Datei ist mit Malware infiziert"
7472

75-
#: alexandria/core/validations.py:35
73+
#: alexandria/core/validations.py
7674
msgid "Malware scan had an error: "
7775
msgstr "Malware-Scan hatte einen Fehler:"
7876

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

85-
#: alexandria/core/validations.py:71
83+
#: alexandria/core/validations.py
8684
msgid "Missing Content-Type header"
8785
msgstr "Fehlender Content-Type header"
8886

89-
#: alexandria/core/validations.py:73
87+
#: alexandria/core/validations.py
9088
msgid "Unknown file extension"
9189
msgstr "Unbekannte Dateiendung"
9290

93-
#: alexandria/core/validations.py:80
91+
#: alexandria/core/validations.py
9492
#, python-format
9593
msgid ""
9694
"Content-Type %(content_type)s does not match file extension %(extension)s."
9795
msgstr ""
9896
"Content-Type %(content_type) stimmt nicht mit der Dateiendung %(extension)s "
9997
"überein."
10098

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

110-
#: alexandria/core/views.py:149
108+
#: alexandria/core/views.py
111109
msgid "PDF conversion is not enabled."
112110
msgstr "PDF-Konvertierung ist nicht aktiviert."
113111

114-
#: alexandria/core/views.py:246
112+
#: alexandria/core/views.py
115113
msgid "\"files\" filter is mandatory!"
116114
msgstr "Der Filter \"files\" ist obligatorisch!"
117115

118-
#: alexandria/core/views.py:258
116+
#: alexandria/core/views.py
119117
msgid "The \"files\" filter must consist of a comma delimited list of UUIDs!"
120118
msgstr ""
121119
"Der \"files\" Filter muss aus einer kommaseparierten Liste von UUIDs "
122120
"bestehen!"
123121

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

129-
#: alexandria/core/views.py:301
127+
#: alexandria/core/views.py
130128
msgid "WebDAV is not enabled."
131129
msgstr "WebDAV ist nicht aktiviert."
132130

133-
#: alexandria/core/views.py:311
131+
#: alexandria/core/views.py
134132
msgid "WebDAV is not enabled for this mime type."
135133
msgstr "WebDAV ist für diesen Dateityp nicht aktiviert"
380 Bytes
Binary file not shown.

alexandria/locale/en/LC_MESSAGES/django.po

+26-28
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-02-18 13:29+0000\n"
11+
"POT-Creation-Date: 2025-02-18 14:03+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -18,110 +18,108 @@ msgstr ""
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2020

21-
#: alexandria/core/api.py:25
21+
#: alexandria/core/api.py
2222
msgid "(copy)"
2323
msgstr ""
2424

25-
#: alexandria/core/models.py:44
25+
#: alexandria/core/models.py
2626
msgid "Created by user"
2727
msgstr ""
2828

29-
#: alexandria/core/models.py:47
29+
#: alexandria/core/models.py
3030
msgid "Created by group"
3131
msgstr ""
3232

33-
#: alexandria/core/models.py:51
33+
#: alexandria/core/models.py
3434
msgid "Modified by user"
3535
msgstr ""
3636

37-
#: alexandria/core/models.py:54
37+
#: alexandria/core/models.py
3838
msgid "Modified by group"
3939
msgstr ""
4040

41-
#: alexandria/core/models.py:56
41+
#: alexandria/core/models.py
4242
msgid "Metainfo"
4343
msgstr ""
4444

45-
#: alexandria/core/models.py:91
45+
#: alexandria/core/models.py
4646
msgid "Please enter a valid HEX color code."
4747
msgstr ""
4848

49-
#: alexandria/core/models.py:96 alexandria/core/models.py:129
50-
#: alexandria/core/models.py:143 alexandria/core/models.py:233
49+
#: alexandria/core/models.py
5150
msgid "Name"
5251
msgstr ""
5352

54-
#: alexandria/core/models.py:98 alexandria/core/models.py:131
55-
#: alexandria/core/models.py:145 alexandria/core/models.py:151
53+
#: alexandria/core/models.py
5654
msgid "Description"
5755
msgstr ""
5856

59-
#: alexandria/core/models.py:104
57+
#: alexandria/core/models.py
6058
msgid "Allowed mime types"
6159
msgstr ""
6260

63-
#: alexandria/core/models.py:150
61+
#: alexandria/core/models.py
6462
msgid "Title"
6563
msgstr ""
6664

67-
#: alexandria/core/models.py:237
65+
#: alexandria/core/models.py
6866
msgid "Checksum"
6967
msgstr ""
7068

71-
#: alexandria/core/validations.py:31
69+
#: alexandria/core/validations.py
7270
msgid "File is infected with malware."
7371
msgstr ""
7472

75-
#: alexandria/core/validations.py:35
73+
#: alexandria/core/validations.py
7674
msgid "Malware scan had an error: "
7775
msgstr ""
7876

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

84-
#: alexandria/core/validations.py:71
82+
#: alexandria/core/validations.py
8583
msgid "Missing Content-Type header"
8684
msgstr ""
8785

88-
#: alexandria/core/validations.py:73
86+
#: alexandria/core/validations.py
8987
msgid "Unknown file extension"
9088
msgstr ""
9189

92-
#: alexandria/core/validations.py:80
90+
#: alexandria/core/validations.py
9391
#, python-format
9492
msgid ""
9593
"Content-Type %(content_type)s does not match file extension %(extension)s."
9694
msgstr ""
9795

98-
#: alexandria/core/validations.py:92
96+
#: alexandria/core/validations.py
9997
#, python-format
10098
msgid ""
10199
"Content-Type %(content_type)s does not match detected file content "
102100
"%(file_content_type)s."
103101
msgstr ""
104102

105-
#: alexandria/core/views.py:149
103+
#: alexandria/core/views.py
106104
msgid "PDF conversion is not enabled."
107105
msgstr ""
108106

109-
#: alexandria/core/views.py:246
107+
#: alexandria/core/views.py
110108
msgid "\"files\" filter is mandatory!"
111109
msgstr ""
112110

113-
#: alexandria/core/views.py:258
111+
#: alexandria/core/views.py
114112
msgid "The \"files\" filter must consist of a comma delimited list of UUIDs!"
115113
msgstr ""
116114

117-
#: alexandria/core/views.py:276
115+
#: alexandria/core/views.py
118116
msgid "For downloading a file use the presigned download URL."
119117
msgstr ""
120118

121-
#: alexandria/core/views.py:301
119+
#: alexandria/core/views.py
122120
msgid "WebDAV is not enabled."
123121
msgstr ""
124122

125-
#: alexandria/core/views.py:311
123+
#: alexandria/core/views.py
126124
msgid "WebDAV is not enabled for this mime type."
127125
msgstr ""
2.51 KB
Binary file not shown.

0 commit comments

Comments
 (0)