Free and open source ticket system written in python

add translation keys

+120 -50
+6 -6
core/forms.py
··· 24 24 25 25 USERNAME_REGEX_FIELD = forms.RegexField( 26 26 required=True, 27 - label='Username', 27 + label=_('Username'), 28 28 max_length=50, 29 29 regex=r'^[a-zA-Z0-9-_@]+$', 30 30 error_messages={ ··· 55 55 56 56 if password != password_confirm: 57 57 raise forms.ValidationError( 58 - "Password and Confirm Password do not match." 58 + _("Password and Confirm Password do not match.") 59 59 ) 60 60 if len(password) < 10: 61 61 raise forms.ValidationError( 62 - "Password must be at least 10 characters long." 62 + _("Password must be at least 10 characters long.") 63 63 ) 64 64 65 65 if PawUser.objects.filter(username=cleaned_data.get("username")).exists(): 66 66 raise forms.ValidationError( 67 - "An account with this username already exists." 67 + _("An account with this username already exists.") 68 68 ) 69 69 if PawUser.objects.filter(email=cleaned_data.get("email")).exists(): 70 70 raise forms.ValidationError( 71 - "An account with this email already exists." 71 + _("An account with this email already exists.") 72 72 ) 73 73 return cleaned_data 74 74 ··· 85 85 86 86 if PawUser.objects.filter(username=cleaned_data.get("username")).exists(): 87 87 raise forms.ValidationError( 88 - "An account with this username already exists" 88 + _("An account with this username already exists") 89 89 ) 90 90 91 91 return cleaned_data
paw/locale/de/LC_MESSAGES/django.mo

This is a binary file and will not be displayed.

+44 -16
paw/locale/de/LC_MESSAGES/django.po
··· 8 8 msgstr "" 9 9 "Project-Id-Version: PACKAGE VERSION\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 - "POT-Creation-Date: 2024-03-25 11:47+0000\n" 11 + "POT-Creation-Date: 2024-04-07 16:31+0000\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 14 14 "Language-Team: LANGUAGE <LL@li.org>\n" ··· 18 18 "Content-Transfer-Encoding: 8bit\n" 19 19 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 20 21 + #: core/forms.py:27 core/forms.py:35 paw/templates/core/account_finish.html:33 22 + #: paw/templates/core/login.html:24 paw/templates/core/register.html:24 23 + msgid "Username" 24 + msgstr "Benutzername" 25 + 21 26 #: core/forms.py:31 22 - msgid "Please enter your name" 27 + #, fuzzy 28 + #| msgid "Please enter your name" 29 + msgid "Please enter a username" 23 30 msgstr "Gib bitte deinen Namen an" 24 31 25 32 #: core/forms.py:32 33 + #, fuzzy 34 + #| msgid "" 35 + #| "Alphanumeric characters and underscores and dashes only (a-z, 0-9, _, -, " 36 + #| "@)" 26 37 msgid "" 27 - "Alphanumeric characters and underscores and dashes only (a-z, 0-9, _, -, @)" 28 - msgstr "Nur Alphanumerische Zeichen, Unterstriche und Striche (a-z, 0-9, _, -, @)" 38 + "Username can only have alphanumeric characters and underscores and dashes (a-" 39 + "z, 0-9, _, -, @)" 40 + msgstr "" 41 + "Nur Alphanumerische Zeichen, Unterstriche und Striche (a-z, 0-9, _, -, @)" 29 42 30 - #: core/forms.py:35 paw/templates/core/account_finish.html:29 31 - #: paw/templates/core/login.html:24 paw/templates/core/register.html:20 32 - msgid "Username" 33 - msgstr "Benutzername" 43 + #: core/forms.py:58 44 + msgid "Password and Confirm Password do not match." 45 + msgstr "" 46 + 47 + #: core/forms.py:62 48 + msgid "Password must be at least 10 characters long." 49 + msgstr "" 50 + 51 + #: core/forms.py:67 52 + msgid "An account with this username already exists." 53 + msgstr "" 54 + 55 + #: core/forms.py:71 56 + msgid "An account with this email already exists." 57 + msgstr "" 58 + 59 + #: core/forms.py:88 60 + msgid "An account with this username already exists" 61 + msgstr "" 34 62 35 63 #: core/models.py:30 36 64 msgid "Google SSO User" ··· 73 101 msgid "Done" 74 102 msgstr "Fertig" 75 103 76 - #: paw/templates/core/account_finish.html:34 104 + #: paw/templates/core/account_finish.html:38 77 105 #: paw/templates/core/settings.html:55 78 106 msgid "Save" 79 107 msgstr "Speichern" ··· 86 114 msgid "Register Account" 87 115 msgstr "Account erstellen" 88 116 89 - #: paw/templates/core/login.html:30 paw/templates/core/register.html:32 117 + #: paw/templates/core/login.html:30 paw/templates/core/register.html:36 90 118 msgid "Password" 91 119 msgstr "Passwort" 92 120 ··· 98 126 msgid "Log in with Google" 99 127 msgstr "Mit Google anmelden" 100 128 101 - #: paw/templates/core/register.html:26 129 + #: paw/templates/core/register.html:30 102 130 #, fuzzy 103 131 #| msgid "Mail Address" 104 132 msgid "Email Address" 105 133 msgstr "Mail Adresse" 106 134 107 - #: paw/templates/core/register.html:38 135 + #: paw/templates/core/register.html:42 108 136 msgid "Confirm Password" 109 137 msgstr "Passwort bestätigen" 110 138 111 - #: paw/templates/core/register.html:43 139 + #: paw/templates/core/register.html:47 112 140 #, fuzzy 113 141 #| msgid "Register Account" 114 142 msgid "Register" ··· 166 194 msgid "Unassigned" 167 195 msgstr "Nicht zugewiesen" 168 196 169 - #: paw/templates/partials/ticket_priority_badge.html:3 ticketing/models.py:45 197 + #: paw/templates/partials/ticket_priority_badge.html:4 ticketing/models.py:45 170 198 msgid "Low" 171 199 msgstr "Niedrig" 172 200 173 - #: paw/templates/partials/ticket_priority_badge.html:5 ticketing/models.py:46 201 + #: paw/templates/partials/ticket_priority_badge.html:6 ticketing/models.py:46 174 202 msgid "Medium" 175 203 msgstr "Mittel" 176 204 177 - #: paw/templates/partials/ticket_priority_badge.html:7 ticketing/models.py:47 205 + #: paw/templates/partials/ticket_priority_badge.html:8 ticketing/models.py:47 178 206 msgid "High" 179 207 msgstr "Hoch" 180 208
+35 -14
paw/locale/en/LC_MESSAGES/django.po
··· 8 8 msgstr "" 9 9 "Project-Id-Version: PACKAGE VERSION\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 - "POT-Creation-Date: 2024-03-25 11:47+0000\n" 11 + "POT-Creation-Date: 2024-04-07 16:31+0000\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 14 14 "Language-Team: LANGUAGE <LL@li.org>\n" ··· 17 17 "Content-Type: text/plain; charset=UTF-8\n" 18 18 "Content-Transfer-Encoding: 8bit\n" 19 19 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 + 21 + #: core/forms.py:27 core/forms.py:35 paw/templates/core/account_finish.html:33 22 + #: paw/templates/core/login.html:24 paw/templates/core/register.html:24 23 + msgid "Username" 24 + msgstr "" 20 25 21 26 #: core/forms.py:31 22 - msgid "Please enter your name" 27 + msgid "Please enter a username" 23 28 msgstr "" 24 29 25 30 #: core/forms.py:32 26 31 msgid "" 27 - "Alphanumeric characters and underscores and dashes only (a-z, 0-9, _, -, @)" 32 + "Username can only have alphanumeric characters and underscores and dashes (a-" 33 + "z, 0-9, _, -, @)" 34 + msgstr "" 35 + 36 + #: core/forms.py:58 37 + msgid "Password and Confirm Password do not match." 38 + msgstr "" 39 + 40 + #: core/forms.py:62 41 + msgid "Password must be at least 10 characters long." 42 + msgstr "" 43 + 44 + #: core/forms.py:67 45 + msgid "An account with this username already exists." 46 + msgstr "" 47 + 48 + #: core/forms.py:71 49 + msgid "An account with this email already exists." 28 50 msgstr "" 29 51 30 - #: core/forms.py:35 paw/templates/core/account_finish.html:29 31 - #: paw/templates/core/login.html:24 paw/templates/core/register.html:20 32 - msgid "Username" 52 + #: core/forms.py:88 53 + msgid "An account with this username already exists" 33 54 msgstr "" 34 55 35 56 #: core/models.py:30 ··· 73 94 msgid "Done" 74 95 msgstr "" 75 96 76 - #: paw/templates/core/account_finish.html:34 97 + #: paw/templates/core/account_finish.html:38 77 98 #: paw/templates/core/settings.html:55 78 99 msgid "Save" 79 100 msgstr "" ··· 86 107 msgid "Register Account" 87 108 msgstr "" 88 109 89 - #: paw/templates/core/login.html:30 paw/templates/core/register.html:32 110 + #: paw/templates/core/login.html:30 paw/templates/core/register.html:36 90 111 msgid "Password" 91 112 msgstr "" 92 113 ··· 98 119 msgid "Log in with Google" 99 120 msgstr "" 100 121 101 - #: paw/templates/core/register.html:26 122 + #: paw/templates/core/register.html:30 102 123 msgid "Email Address" 103 124 msgstr "" 104 125 105 - #: paw/templates/core/register.html:38 126 + #: paw/templates/core/register.html:42 106 127 msgid "Confirm Password" 107 128 msgstr "" 108 129 109 - #: paw/templates/core/register.html:43 130 + #: paw/templates/core/register.html:47 110 131 msgid "Register" 111 132 msgstr "" 112 133 ··· 164 185 msgid "Unassigned" 165 186 msgstr "" 166 187 167 - #: paw/templates/partials/ticket_priority_badge.html:3 ticketing/models.py:45 188 + #: paw/templates/partials/ticket_priority_badge.html:4 ticketing/models.py:45 168 189 msgid "Low" 169 190 msgstr "" 170 191 171 - #: paw/templates/partials/ticket_priority_badge.html:5 ticketing/models.py:46 192 + #: paw/templates/partials/ticket_priority_badge.html:6 ticketing/models.py:46 172 193 msgid "Medium" 173 194 msgstr "" 174 195 175 - #: paw/templates/partials/ticket_priority_badge.html:7 ticketing/models.py:47 196 + #: paw/templates/partials/ticket_priority_badge.html:8 ticketing/models.py:47 176 197 msgid "High" 177 198 msgstr "" 178 199
paw/locale/fr/LC_MESSAGES/django.mo

This is a binary file and will not be displayed.

+35 -14
paw/locale/fr/LC_MESSAGES/django.po
··· 8 8 msgstr "" 9 9 "Project-Id-Version: PACKAGE VERSION\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 - "POT-Creation-Date: 2024-03-25 11:47+0000\n" 11 + "POT-Creation-Date: 2024-04-07 16:31+0000\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 14 14 "Language-Team: LANGUAGE <LL@li.org>\n" ··· 17 17 "Content-Type: text/plain; charset=UTF-8\n" 18 18 "Content-Transfer-Encoding: 8bit\n" 19 19 "Plural-Forms: nplurals=2; plural=(n > 1);\n" 20 + 21 + #: core/forms.py:27 core/forms.py:35 paw/templates/core/account_finish.html:33 22 + #: paw/templates/core/login.html:24 paw/templates/core/register.html:24 23 + msgid "Username" 24 + msgstr "" 20 25 21 26 #: core/forms.py:31 22 - msgid "Please enter your name" 27 + msgid "Please enter a username" 23 28 msgstr "" 24 29 25 30 #: core/forms.py:32 26 31 msgid "" 27 - "Alphanumeric characters and underscores and dashes only (a-z, 0-9, _, -, @)" 32 + "Username can only have alphanumeric characters and underscores and dashes (a-" 33 + "z, 0-9, _, -, @)" 34 + msgstr "Les noms d’utilisateurs ne peuvent contenir que des caractères alphanumériques, ainsi que des tirets ou des tirets du bas. (a-z, 0-9, -, _, @)" 35 + 36 + #: core/forms.py:58 37 + msgid "Password and Confirm Password do not match." 38 + msgstr "" 39 + 40 + #: core/forms.py:62 41 + msgid "Password must be at least 10 characters long." 42 + msgstr "" 43 + 44 + #: core/forms.py:67 45 + msgid "An account with this username already exists." 46 + msgstr "" 47 + 48 + #: core/forms.py:71 49 + msgid "An account with this email already exists." 28 50 msgstr "" 29 51 30 - #: core/forms.py:35 paw/templates/core/account_finish.html:29 31 - #: paw/templates/core/login.html:24 paw/templates/core/register.html:20 32 - msgid "Username" 52 + #: core/forms.py:88 53 + msgid "An account with this username already exists" 33 54 msgstr "" 34 55 35 56 #: core/models.py:30 ··· 73 94 msgid "Done" 74 95 msgstr "" 75 96 76 - #: paw/templates/core/account_finish.html:34 97 + #: paw/templates/core/account_finish.html:38 77 98 #: paw/templates/core/settings.html:55 78 99 msgid "Save" 79 100 msgstr "Enregistrer" ··· 86 107 msgid "Register Account" 87 108 msgstr "" 88 109 89 - #: paw/templates/core/login.html:30 paw/templates/core/register.html:32 110 + #: paw/templates/core/login.html:30 paw/templates/core/register.html:36 90 111 msgid "Password" 91 112 msgstr "" 92 113 ··· 98 119 msgid "Log in with Google" 99 120 msgstr "" 100 121 101 - #: paw/templates/core/register.html:26 122 + #: paw/templates/core/register.html:30 102 123 #, fuzzy 103 124 #| msgid "Mail Address" 104 125 msgid "Email Address" 105 126 msgstr "Adresse e-mail" 106 127 107 - #: paw/templates/core/register.html:38 128 + #: paw/templates/core/register.html:42 108 129 msgid "Confirm Password" 109 130 msgstr "" 110 131 111 - #: paw/templates/core/register.html:43 132 + #: paw/templates/core/register.html:47 112 133 msgid "Register" 113 134 msgstr "" 114 135 ··· 164 185 msgid "Unassigned" 165 186 msgstr "Non attribué" 166 187 167 - #: paw/templates/partials/ticket_priority_badge.html:3 ticketing/models.py:45 188 + #: paw/templates/partials/ticket_priority_badge.html:4 ticketing/models.py:45 168 189 msgid "Low" 169 190 msgstr "" 170 191 171 - #: paw/templates/partials/ticket_priority_badge.html:5 ticketing/models.py:46 192 + #: paw/templates/partials/ticket_priority_badge.html:6 ticketing/models.py:46 172 193 msgid "Medium" 173 194 msgstr "" 174 195 175 - #: paw/templates/partials/ticket_priority_badge.html:7 ticketing/models.py:47 196 + #: paw/templates/partials/ticket_priority_badge.html:8 ticketing/models.py:47 176 197 msgid "High" 177 198 msgstr "" 178 199