Skip to content

Commit

Permalink
fix: rename translation in export
Browse files Browse the repository at this point in the history
  • Loading branch information
czosel committed Feb 15, 2022
1 parent 64696a2 commit 4b4a4c0
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 99 deletions.
2 changes: 1 addition & 1 deletion emeis/core/tests/snapshots/snap_test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
snapshots = Snapshot()

snapshots["test_user_export 1"] = [
["Name", "First Name", "Email", "Roles and organizations"],
["Name", "First Name", "Email", "Roles and scopes"],
[
"Marsh",
"Heather",
Expand Down
2 changes: 1 addition & 1 deletion emeis/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def export(self, request):
sheet["A1"] = _("Name")
sheet["B1"] = _("First Name")
sheet["C1"] = _("Email")
sheet["D1"] = _("Roles and organizations")
sheet["D1"] = _("Roles and scopes")

for row, user in enumerate(queryset.iterator(), start=2):
acl_string = "\n".join(
Expand Down
76 changes: 39 additions & 37 deletions emeis/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,124 +3,126 @@
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-05 15:07+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
"POT-Creation-Date: 2022-02-15 10:24+0000\n"
"PO-Revision-Date: 2022-02-15 11:25+0100\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: emeis/core/models.py:35
msgid "meta"
"Last-Translator: \n"
"Language-Team: \n"
"X-Generator: Poedit 2.3\n"

#: emeis/core/models.py:34
msgid "metainfo"
msgstr ""

#: emeis/core/models.py:72
#: emeis/core/models.py:71
msgid "username"
msgstr ""

#: emeis/core/models.py:76
#: emeis/core/models.py:75
msgid "Required. 255 characters or fewer. Letters, digits and @/./+/-/_ only."
msgstr ""

#: emeis/core/models.py:79
#: emeis/core/models.py:78
msgid "A user with that username already exists."
msgstr ""

#: emeis/core/models.py:82
#: emeis/core/models.py:81
msgid "first name"
msgstr ""

#: emeis/core/models.py:84
#: emeis/core/models.py:83
msgid "last name"
msgstr ""

#: emeis/core/models.py:85
#: emeis/core/models.py:84
msgid "email address"
msgstr ""

#: emeis/core/models.py:86
#: emeis/core/models.py:85
msgid "phone"
msgstr ""

#: emeis/core/models.py:87
#: emeis/core/models.py:86
msgid "language"
msgstr ""

#: emeis/core/models.py:88
#: emeis/core/models.py:87
msgid "address"
msgstr ""

#: emeis/core/models.py:89
#: emeis/core/models.py:88
msgid "city"
msgstr ""

#: emeis/core/models.py:90
#: emeis/core/models.py:89
msgid "zip"
msgstr ""

#: emeis/core/models.py:92
#: emeis/core/models.py:91
msgid "active"
msgstr ""

#: emeis/core/models.py:94
#: emeis/core/models.py:93
msgid "Designates whether this user should be treated as active."
msgstr ""

#: emeis/core/models.py:96
#: emeis/core/models.py:95
msgid "date joined"
msgstr ""

#: emeis/core/models.py:108
#: emeis/core/models.py:107
msgid "user"
msgstr ""

#: emeis/core/models.py:109
#: emeis/core/models.py:108
msgid "users"
msgstr ""

#: emeis/core/models.py:161
#: emeis/core/models.py:160
msgid "scope name"
msgstr ""

#: emeis/core/models.py:163
#: emeis/core/models.py:162
msgid "scope description"
msgstr ""

#: emeis/core/models.py:189
#: emeis/core/models.py:188
msgid "role name"
msgstr ""

#: emeis/core/models.py:191
#: emeis/core/models.py:190
msgid "role description"
msgstr ""

#: emeis/core/models.py:204
#: emeis/core/models.py:203
msgid "permission name"
msgstr ""

#: emeis/core/models.py:207
#: emeis/core/models.py:206
msgid "permission description"
msgstr ""

#: emeis/core/views.py:83
#: emeis/core/views.py:86
msgid "Name"
msgstr "Name"

#: emeis/core/views.py:84
#: emeis/core/views.py:87
msgid "First Name"
msgstr "Vorname"

#: emeis/core/views.py:85
#: emeis/core/views.py:88
msgid "Email"
msgstr "Email"

#: emeis/core/views.py:86
msgid "Roles and organizations"
msgstr "Rollen und Organisationen"
#: emeis/core/views.py:89
#| msgid "Roles and organizations"
msgid "Roles and scopes"
msgstr ""
63 changes: 33 additions & 30 deletions emeis/locale/fr/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: 2022-01-05 15:07+0100\n"
"POT-Creation-Date: 2022-02-15 10:24+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 @@ -17,110 +17,113 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: emeis/core/models.py:35
msgid "meta"

#: emeis/core/models.py:34
msgid "metainfo"
msgstr ""

#: emeis/core/models.py:72
#: emeis/core/models.py:71
msgid "username"
msgstr ""

#: emeis/core/models.py:76
#: emeis/core/models.py:75
msgid "Required. 255 characters or fewer. Letters, digits and @/./+/-/_ only."
msgstr ""

#: emeis/core/models.py:79
#: emeis/core/models.py:78
msgid "A user with that username already exists."
msgstr ""

#: emeis/core/models.py:82
#: emeis/core/models.py:81
msgid "first name"
msgstr ""

#: emeis/core/models.py:84
#: emeis/core/models.py:83
msgid "last name"
msgstr ""

#: emeis/core/models.py:85
#: emeis/core/models.py:84
msgid "email address"
msgstr ""

#: emeis/core/models.py:86
#: emeis/core/models.py:85
msgid "phone"
msgstr ""

#: emeis/core/models.py:87
#: emeis/core/models.py:86
msgid "language"
msgstr ""

#: emeis/core/models.py:88
#: emeis/core/models.py:87
msgid "address"
msgstr ""

#: emeis/core/models.py:89
#: emeis/core/models.py:88
msgid "city"
msgstr ""

#: emeis/core/models.py:90
#: emeis/core/models.py:89
msgid "zip"
msgstr ""

#: emeis/core/models.py:92
#: emeis/core/models.py:91
msgid "active"
msgstr ""

#: emeis/core/models.py:94
#: emeis/core/models.py:93
msgid "Designates whether this user should be treated as active."
msgstr ""

#: emeis/core/models.py:96
#: emeis/core/models.py:95
msgid "date joined"
msgstr ""

#: emeis/core/models.py:108
#: emeis/core/models.py:107
msgid "user"
msgstr ""

#: emeis/core/models.py:109
#: emeis/core/models.py:108
msgid "users"
msgstr ""

#: emeis/core/models.py:161
#: emeis/core/models.py:160
msgid "scope name"
msgstr ""

#: emeis/core/models.py:163
#: emeis/core/models.py:162
msgid "scope description"
msgstr ""

#: emeis/core/models.py:189
#: emeis/core/models.py:188
msgid "role name"
msgstr ""

#: emeis/core/models.py:191
#: emeis/core/models.py:190
msgid "role description"
msgstr ""

#: emeis/core/models.py:204
#: emeis/core/models.py:203
msgid "permission name"
msgstr ""

#: emeis/core/models.py:207
#: emeis/core/models.py:206
msgid "permission description"
msgstr ""

#: emeis/core/views.py:83
#: emeis/core/views.py:86
msgid "Name"
msgstr "Nom"

#: emeis/core/views.py:84
#: emeis/core/views.py:87
msgid "First Name"
msgstr "Prénom"

#: emeis/core/views.py:85
#: emeis/core/views.py:88
msgid "Email"
msgstr "Email"

#: emeis/core/views.py:86
msgid "Roles and organizations"
#: emeis/core/views.py:89
#, fuzzy
#| msgid "Roles and organizations"
msgid "Roles and scopes"
msgstr "Rôles et organisations"
Loading

0 comments on commit 4b4a4c0

Please sign in to comment.