Skip to content

Commit 52a4f89

Browse files
Some fixed strings are now translatable (#310)
* Update models.py 2 date fields which did not have verbose_name in language mode. * Update constants.py 4 fixed human_names are set without _() language support * makemessages all
1 parent b77ef6f commit 52a4f89

File tree

7 files changed

+111
-78
lines changed

7 files changed

+111
-78
lines changed

djangocms_versioning/constants.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
from django.utils.translation import gettext_lazy as _
2+
3+
14
"""Version states"""
25
ARCHIVED = "archived"
36
DRAFT = "draft"
47
PUBLISHED = "published"
58
UNPUBLISHED = "unpublished"
9+
610
VERSION_STATES = (
7-
(DRAFT, "Draft"),
8-
(PUBLISHED, "Published"),
9-
(UNPUBLISHED, "Unpublished"),
10-
(ARCHIVED, "Archived"),
11+
(DRAFT, _("Draft")),
12+
(PUBLISHED, _("Published")),
13+
(UNPUBLISHED, _("Unpublished")),
14+
(ARCHIVED, _("Archived")),
1115
)
1216
"""Version operation states"""
1317
OPERATION_ARCHIVE = "operation_archive"

djangocms_versioning/locale/de/LC_MESSAGES/django.po

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
33
# This file is distributed under the same license as the PACKAGE package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5-
#
5+
#
66
# Translators:
77
# Fabian Braun <[email protected]>, 2023
8-
#
8+
#
99
#, fuzzy
1010
msgid ""
1111
msgstr ""
1212
"Project-Id-Version: PACKAGE VERSION\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-01-11 05:51+0100\n"
14+
"POT-Creation-Date: 2023-01-22 19:30+0100\n"
1515
"PO-Revision-Date: 2023-01-10 15:29+0000\n"
1616
"Last-Translator: Fabian Braun <[email protected]>, 2023\n"
1717
"Language-Team: German (https://www.transifex.com/divio/teams/58664/de/)\n"
18+
"Language: de\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
2021
"Content-Transfer-Encoding: 8bit\n"
21-
"Language: de\n"
2222
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2323

2424
#: admin.py:161
@@ -29,7 +29,7 @@ msgstr "Status"
2929
msgid "Author"
3030
msgstr "Autor"
3131

32-
#: admin.py:184
32+
#: admin.py:184 models.py:70
3333
msgid "Modified"
3434
msgstr "Geändert"
3535

@@ -104,7 +104,7 @@ msgstr "django CMS Versioning"
104104
msgid "No available title"
105105
msgstr "Kein Titel verfügbar"
106106

107-
#: cms_config.py:239 indicators.py:25
107+
#: cms_config.py:239 constants.py:13 indicators.py:25
108108
msgid "Unpublished"
109109
msgstr "Veröffentlichung aufgehoben"
110110

@@ -175,22 +175,22 @@ msgstr "Sind Sie sicher, dass sie alle Plugins von %s kopieren wollen?"
175175
msgid "No other language available"
176176
msgstr "Keine andere Sprache verfügbar"
177177

178-
#: indicators.py:22
178+
#: constants.py:11 indicators.py:24
179+
msgid "Draft"
180+
msgstr "Entwurf"
181+
182+
#: constants.py:12 indicators.py:22
179183
msgid "Published"
180184
msgstr "Veröffentlicht"
181185

186+
#: constants.py:14 indicators.py:26
187+
msgid "Archived"
188+
msgstr "Archiviert"
189+
182190
#: indicators.py:23
183191
msgid "Changed"
184192
msgstr "Verändert"
185193

186-
#: indicators.py:24
187-
msgid "Draft"
188-
msgstr "Entwurf"
189-
190-
#: indicators.py:26
191-
msgid "Archived"
192-
msgstr "Archiviert"
193-
194194
#: indicators.py:27
195195
msgid "Empty"
196196
msgstr "Leer"
@@ -224,6 +224,12 @@ msgstr "Entwurf mit Veröffentlichung vergleichen..."
224224
msgid "Manage Versions..."
225225
msgstr "Versionen verwalten..."
226226

227+
#: models.py:69
228+
#, fuzzy
229+
#| msgid "Create new draft"
230+
msgid "Created"
231+
msgstr "Neuen Entwurf erstellen"
232+
227233
#: models.py:72
228234
msgid "author"
229235
msgstr "Autor"

djangocms_versioning/locale/en/LC_MESSAGES/django.po

Lines changed: 15 additions & 11 deletions
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: 2023-01-11 05:51+0100\n"
11+
"POT-Creation-Date: 2023-01-22 19:30+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -26,7 +26,7 @@ msgstr ""
2626
msgid "Author"
2727
msgstr ""
2828

29-
#: admin.py:184
29+
#: admin.py:184 models.py:70
3030
msgid "Modified"
3131
msgstr ""
3232

@@ -101,7 +101,7 @@ msgstr ""
101101
msgid "No available title"
102102
msgstr ""
103103

104-
#: cms_config.py:239 indicators.py:25
104+
#: cms_config.py:239 constants.py:13 indicators.py:25
105105
msgid "Unpublished"
106106
msgstr ""
107107

@@ -172,20 +172,20 @@ msgstr ""
172172
msgid "No other language available"
173173
msgstr ""
174174

175-
#: indicators.py:22
176-
msgid "Published"
175+
#: constants.py:11 indicators.py:24
176+
msgid "Draft"
177177
msgstr ""
178178

179-
#: indicators.py:23
180-
msgid "Changed"
179+
#: constants.py:12 indicators.py:22
180+
msgid "Published"
181181
msgstr ""
182182

183-
#: indicators.py:24
184-
msgid "Draft"
183+
#: constants.py:14 indicators.py:26
184+
msgid "Archived"
185185
msgstr ""
186186

187-
#: indicators.py:26
188-
msgid "Archived"
187+
#: indicators.py:23
188+
msgid "Changed"
189189
msgstr ""
190190

191191
#: indicators.py:27
@@ -221,6 +221,10 @@ msgstr ""
221221
msgid "Manage Versions..."
222222
msgstr ""
223223

224+
#: models.py:69
225+
msgid "Created"
226+
msgstr ""
227+
224228
#: models.py:72
225229
msgid "author"
226230
msgstr ""

djangocms_versioning/locale/fr/LC_MESSAGES/django.po

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,25 @@
22
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
33
# This file is distributed under the same license as the PACKAGE package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5-
#
5+
#
66
# Translators:
77
# François Palmier <[email protected]>, 2023
8-
#
8+
#
99
#, fuzzy
1010
msgid ""
1111
msgstr ""
1212
"Project-Id-Version: PACKAGE VERSION\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-01-11 05:51+0100\n"
14+
"POT-Creation-Date: 2023-01-22 19:30+0100\n"
1515
"PO-Revision-Date: 2023-01-10 15:29+0000\n"
1616
"Last-Translator: François Palmier <[email protected]>, 2023\n"
1717
"Language-Team: French (https://www.transifex.com/divio/teams/58664/fr/)\n"
18+
"Language: fr\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
2021
"Content-Transfer-Encoding: 8bit\n"
21-
"Language: fr\n"
22-
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
22+
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % "
23+
"1000000 == 0 ? 1 : 2;\n"
2324

2425
#: admin.py:161
2526
msgid "State"
@@ -29,7 +30,7 @@ msgstr "État"
2930
msgid "Author"
3031
msgstr "Auteur"
3132

32-
#: admin.py:184
33+
#: admin.py:184 models.py:70
3334
msgid "Modified"
3435
msgstr "Modifié"
3536

@@ -104,7 +105,7 @@ msgstr "django CMS Versioning"
104105
msgid "No available title"
105106
msgstr "Aucun titre disponible"
106107

107-
#: cms_config.py:239 indicators.py:25
108+
#: cms_config.py:239 constants.py:13 indicators.py:25
108109
msgid "Unpublished"
109110
msgstr "Non publié"
110111

@@ -175,22 +176,22 @@ msgstr "Êtes-vous sûr de vouloir copier tous les plugins de %s?"
175176
msgid "No other language available"
176177
msgstr "Aucune autre langue disponible"
177178

178-
#: indicators.py:22
179+
#: constants.py:11 indicators.py:24
180+
msgid "Draft"
181+
msgstr "Brouillon"
182+
183+
#: constants.py:12 indicators.py:22
179184
msgid "Published"
180185
msgstr "Publié"
181186

187+
#: constants.py:14 indicators.py:26
188+
msgid "Archived"
189+
msgstr "Archivé"
190+
182191
#: indicators.py:23
183192
msgid "Changed"
184193
msgstr "Modifié"
185194

186-
#: indicators.py:24
187-
msgid "Draft"
188-
msgstr "Brouillon"
189-
190-
#: indicators.py:26
191-
msgid "Archived"
192-
msgstr "Archivé"
193-
194195
#: indicators.py:27
195196
msgid "Empty"
196197
msgstr "Vide"
@@ -224,6 +225,12 @@ msgstr "Comparer le brouillon à la version publiée..."
224225
msgid "Manage Versions..."
225226
msgstr "Gérer les versions..."
226227

228+
#: models.py:69
229+
#, fuzzy
230+
#| msgid "Create new draft"
231+
msgid "Created"
232+
msgstr "Créer un brouillon"
233+
227234
#: models.py:72
228235
msgid "author"
229236
msgstr "auteur"

djangocms_versioning/locale/nl/LC_MESSAGES/django.po

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
33
# This file is distributed under the same license as the PACKAGE package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5-
#
5+
#
66
# Translators:
77
# Stefan van den Eertwegh <[email protected]>, 2023
8-
#
8+
#
99
#, fuzzy
1010
msgid ""
1111
msgstr ""
1212
"Project-Id-Version: PACKAGE VERSION\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-01-11 05:51+0100\n"
14+
"POT-Creation-Date: 2023-01-22 19:30+0100\n"
1515
"PO-Revision-Date: 2023-01-10 15:29+0000\n"
1616
"Last-Translator: Stefan van den Eertwegh <[email protected]>, 2023\n"
1717
"Language-Team: Dutch (https://www.transifex.com/divio/teams/58664/nl/)\n"
18+
"Language: nl\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
2021
"Content-Transfer-Encoding: 8bit\n"
21-
"Language: nl\n"
2222
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2323

2424
#: admin.py:161
@@ -29,7 +29,7 @@ msgstr "Status"
2929
msgid "Author"
3030
msgstr "Auteur"
3131

32-
#: admin.py:184
32+
#: admin.py:184 models.py:70
3333
msgid "Modified"
3434
msgstr "Gewijzigd"
3535

@@ -104,7 +104,7 @@ msgstr "django CMS Versionering"
104104
msgid "No available title"
105105
msgstr "Geen beschikbare titel"
106106

107-
#: cms_config.py:239 indicators.py:25
107+
#: cms_config.py:239 constants.py:13 indicators.py:25
108108
msgid "Unpublished"
109109
msgstr "Gedepubliseerd"
110110

@@ -175,22 +175,22 @@ msgstr "Ben je er zeker van om alle plugins te kopiëren van %s?"
175175
msgid "No other language available"
176176
msgstr "Geen andere taal beschikbaar"
177177

178-
#: indicators.py:22
178+
#: constants.py:11 indicators.py:24
179+
msgid "Draft"
180+
msgstr "Concept"
181+
182+
#: constants.py:12 indicators.py:22
179183
msgid "Published"
180184
msgstr "Gepubliseerd"
181185

186+
#: constants.py:14 indicators.py:26
187+
msgid "Archived"
188+
msgstr "Archiveerd"
189+
182190
#: indicators.py:23
183191
msgid "Changed"
184192
msgstr "Gewijzigd"
185193

186-
#: indicators.py:24
187-
msgid "Draft"
188-
msgstr "Concept"
189-
190-
#: indicators.py:26
191-
msgid "Archived"
192-
msgstr "Archiveerd"
193-
194194
#: indicators.py:27
195195
msgid "Empty"
196196
msgstr "Leeg"
@@ -224,6 +224,12 @@ msgstr "Vergelijk Concept naar Publiceren..."
224224
msgid "Manage Versions..."
225225
msgstr "Beheer versies..."
226226

227+
#: models.py:69
228+
#, fuzzy
229+
#| msgid "Create new draft"
230+
msgid "Created"
231+
msgstr "Maakt een nieuw concept"
232+
227233
#: models.py:72
228234
msgid "author"
229235
msgstr "auteur"

0 commit comments

Comments
 (0)