Forbid creating usernames with uppercase characters

We don't actually enforce anything on the ActivityPub level, only
user-facing interfaces

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-11-17 19:14:55 +01:00
parent c28dae45bb
commit e6077d0dc3
55 changed files with 6436 additions and 4808 deletions

View File

@@ -115,17 +115,17 @@ msgid "You created an account on %{host} with this email address. You are one cl
msgstr ""
#, elixir-format
#: lib/web/email/participation.ex:113
#: lib/web/email/participation.ex:112
msgid "Your participation to event %{title} has been approved"
msgstr ""
#, elixir-format
#: lib/web/email/participation.ex:71
#: lib/web/email/participation.ex:70
msgid "Your participation to event %{title} has been rejected"
msgstr ""
#, elixir-format
#: lib/web/email/event.ex:36
#: lib/web/email/event.ex:37
msgid "Event %{title} has been updated"
msgstr "تم تحديث الفعالية %{title}"
@@ -145,7 +145,7 @@ msgid "Warning"
msgstr "تنبيه"
#, elixir-format
#: lib/web/email/participation.ex:135
#: lib/web/email/participation.ex:134
msgid "Confirm your participation to event %{title}"
msgstr ""
@@ -417,7 +417,7 @@ msgstr[5] ""
#, elixir-format
#: lib/web/templates/email/notification_each_week.html.eex:38
#: lib/web/templates/email/notification_each_week.text.eex:4
#: lib/web/templates/email/notification_each_week.text.eex:3
msgid "You have one event this week:"
msgid_plural "You have %{total} events this week:"
msgstr[0] ""
@@ -428,7 +428,7 @@ msgstr[4] ""
msgstr[5] ""
#, elixir-format
#: lib/service/metadata/utils.ex:27
#: lib/service/metadata/utils.ex:52
msgid "The event organizer didn't add any description."
msgstr ""
@@ -783,7 +783,7 @@ msgstr ""
#: lib/web/templates/email/anonymous_participation_confirmation.html.eex:63
#: lib/web/templates/email/anonymous_participation_confirmation.text.eex:6 lib/web/templates/email/event_updated.html.eex:133
#: lib/web/templates/email/event_updated.text.eex:24 lib/web/templates/email/notification_each_week.html.eex:70
#: lib/web/templates/email/notification_each_week.text.eex:14 lib/web/templates/email/on_day_notification.html.eex:70
#: lib/web/templates/email/notification_each_week.text.eex:11 lib/web/templates/email/on_day_notification.html.eex:70
#: lib/web/templates/email/on_day_notification.text.eex:14
msgid "Would you wish to cancel your attendance, visit the event page through the link above and click the « Attending » button."
msgid_plural "Would you wish to cancel your attendance to one or several events, visit the event pages through the links above and click the « Attending » button."
@@ -1267,7 +1267,7 @@ msgid "You recently requested to attend <b>%{title}</b>."
msgstr "لقد قمتَ بتقديم طلب للمشاركة في فعالية %{title}."
#, elixir-format
#: lib/web/email/participation.ex:92
#: lib/web/email/participation.ex:91
msgid "Your participation to event %{title} has been confirmed"
msgstr ""
@@ -1394,7 +1394,7 @@ msgstr ""
msgid "We're sorry, but something went wrong on our end."
msgstr ""
#, elixir-format, fuzzy
#, elixir-format
#: lib/web/templates/email/email.html.eex:88
#: lib/web/templates/email/email.text.eex:4
msgid "This is a demonstration site to test Mobilizon."

View File

@@ -124,17 +124,17 @@ msgid "Cannot refresh the token"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/group.ex:139
#: lib/graphql/resolvers/group.ex:137
msgid "Creator profile is not owned by the current user"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/group.ex:203
#: lib/graphql/resolvers/group.ex:201
msgid "Current profile is not a member of this group"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/group.ex:207
#: lib/graphql/resolvers/group.ex:205
msgid "Current profile is not an administrator of the selected group"
msgstr ""
@@ -144,13 +144,13 @@ msgid "Error while saving user settings"
msgstr ""
#, elixir-format
#: lib/graphql/error.ex:90 lib/graphql/resolvers/group.ex:200
#: lib/graphql/resolvers/group.ex:248 lib/graphql/resolvers/group.ex:283 lib/graphql/resolvers/member.ex:83
#: lib/graphql/error.ex:90 lib/graphql/resolvers/group.ex:198
#: lib/graphql/resolvers/group.ex:229 lib/graphql/resolvers/group.ex:264 lib/graphql/resolvers/member.ex:83
msgid "Group not found"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/group.ex:69
#: lib/graphql/resolvers/group.ex:66
msgid "Group with ID %{id} not found"
msgstr ""
@@ -160,7 +160,7 @@ msgid "Impossible to authenticate, either your email or password are invalid."
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/group.ex:280
#: lib/graphql/resolvers/group.ex:261
msgid "Member not found"
msgstr ""
@@ -176,19 +176,18 @@ msgid "No user to validate with this email was found"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/person.ex:232 lib/graphql/resolvers/user.ex:76
#: lib/graphql/resolvers/person.ex:231 lib/graphql/resolvers/user.ex:76
#: lib/graphql/resolvers/user.ex:219
msgid "No user with this email was found"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/comment.ex:50 lib/graphql/resolvers/comment.ex:112
#: lib/graphql/resolvers/event.ex:286 lib/graphql/resolvers/feed_token.ex:28 lib/graphql/resolvers/group.ex:245
#: lib/graphql/resolvers/member.ex:80 lib/graphql/resolvers/participant.ex:29
#: lib/graphql/resolvers/participant.ex:163 lib/graphql/resolvers/participant.ex:192 lib/graphql/resolvers/person.ex:157
#: lib/graphql/resolvers/person.ex:191 lib/graphql/resolvers/person.ex:256 lib/graphql/resolvers/person.ex:288
#: lib/graphql/resolvers/person.ex:301 lib/graphql/resolvers/picture.ex:75 lib/graphql/resolvers/report.ex:110
#: lib/graphql/resolvers/todos.ex:57
#: lib/graphql/resolvers/event.ex:286 lib/graphql/resolvers/feed_token.ex:28 lib/graphql/resolvers/member.ex:80
#: lib/graphql/resolvers/participant.ex:29 lib/graphql/resolvers/participant.ex:160
#: lib/graphql/resolvers/participant.ex:189 lib/graphql/resolvers/person.ex:155 lib/graphql/resolvers/person.ex:189
#: lib/graphql/resolvers/person.ex:255 lib/graphql/resolvers/person.ex:284 lib/graphql/resolvers/person.ex:297
#: lib/graphql/resolvers/picture.ex:72 lib/graphql/resolvers/report.ex:107 lib/graphql/resolvers/todos.ex:57
msgid "Profile is not owned by authenticated user"
msgstr ""
@@ -254,22 +253,22 @@ msgid "User requested is not logged-in"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/group.ex:254
#: lib/graphql/resolvers/group.ex:235
msgid "You are already a member of this group"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/group.ex:287
#: lib/graphql/resolvers/group.ex:268
msgid "You can't leave this group because you are the only administrator"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/group.ex:251
#: lib/graphql/resolvers/group.ex:232
msgid "You cannot join this group"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/group.ex:97
#: lib/graphql/resolvers/group.ex:94
msgid "You may not list groups unless moderator."
msgstr ""
@@ -284,7 +283,7 @@ msgid "You need to be logged-in to change your password"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/group.ex:212
#: lib/graphql/resolvers/group.ex:210
msgid "You need to be logged-in to delete a group"
msgstr ""
@@ -294,17 +293,17 @@ msgid "You need to be logged-in to delete your account"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/group.ex:259
#: lib/graphql/resolvers/group.ex:240
msgid "You need to be logged-in to join a group"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/group.ex:292
#: lib/graphql/resolvers/group.ex:273
msgid "You need to be logged-in to leave a group"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/group.ex:177
#: lib/graphql/resolvers/group.ex:175
msgid "You need to be logged-in to update a group"
msgstr ""
@@ -364,22 +363,22 @@ msgid "Profile already suspended"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/participant.ex:96
#: lib/graphql/resolvers/participant.ex:93
msgid "A valid email is required by your instance"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/participant.ex:90
#: lib/graphql/resolvers/participant.ex:87
msgid "Anonymous participation is not enabled"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/person.ex:188
#: lib/graphql/resolvers/person.ex:186
msgid "Cannot remove the last administrator of a group"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/person.ex:185
#: lib/graphql/resolvers/person.ex:183
msgid "Cannot remove the last identity of a user"
msgstr ""
@@ -394,17 +393,17 @@ msgid "Discussion not found"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/report.ex:62 lib/graphql/resolvers/report.ex:87
#: lib/graphql/resolvers/report.ex:62 lib/graphql/resolvers/report.ex:84
msgid "Error while saving report"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/report.ex:113
#: lib/graphql/resolvers/report.ex:110
msgid "Error while updating report"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/participant.ex:131
#: lib/graphql/resolvers/participant.ex:128
msgid "Event id not found"
msgstr ""
@@ -415,23 +414,23 @@ msgid "Event not found"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/participant.ex:87
#: lib/graphql/resolvers/participant.ex:128 lib/graphql/resolvers/participant.ex:160
#: lib/graphql/resolvers/participant.ex:84
#: lib/graphql/resolvers/participant.ex:125 lib/graphql/resolvers/participant.ex:157
msgid "Event with this ID %{id} doesn't exist"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/participant.ex:103
#: lib/graphql/resolvers/participant.ex:100
msgid "Internal Error"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/event.ex:100 lib/graphql/resolvers/participant.ex:234
#: lib/graphql/resolvers/event.ex:100 lib/graphql/resolvers/participant.ex:231
msgid "Moderator profile is not owned by authenticated user"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/discussion.ex:181
#: lib/graphql/resolvers/discussion.ex:184
msgid "No discussion with ID %{id}"
msgstr ""
@@ -441,7 +440,7 @@ msgid "No profile found for user"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/feed_token.ex:66
#: lib/graphql/resolvers/feed_token.ex:63
msgid "No such feed token"
msgstr ""
@@ -451,14 +450,14 @@ msgid "Organizer profile is not owned by the user"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/participant.ex:244
#: lib/graphql/resolvers/participant.ex:241
msgid "Participant already has role %{role}"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/participant.ex:173
#: lib/graphql/resolvers/participant.ex:202 lib/graphql/resolvers/participant.ex:237
#: lib/graphql/resolvers/participant.ex:247
#: lib/graphql/resolvers/participant.ex:170
#: lib/graphql/resolvers/participant.ex:199 lib/graphql/resolvers/participant.ex:234
#: lib/graphql/resolvers/participant.ex:244
msgid "Participant not found"
msgstr ""
@@ -473,7 +472,7 @@ msgid "Person with username %{username} not found"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/picture.ex:45
#: lib/graphql/resolvers/picture.ex:42
msgid "Picture with ID %{id} was not found"
msgstr ""
@@ -507,12 +506,12 @@ msgid "Profile is not member of group"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/person.ex:154 lib/graphql/resolvers/person.ex:182
#: lib/graphql/resolvers/person.ex:152 lib/graphql/resolvers/person.ex:180
msgid "Profile not found"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/event.ex:104 lib/graphql/resolvers/participant.ex:241
#: lib/graphql/resolvers/event.ex:104 lib/graphql/resolvers/participant.ex:238
msgid "Provided moderator profile doesn't have permission on this event"
msgstr ""
@@ -527,12 +526,12 @@ msgid "Resource doesn't exist"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/participant.ex:124
#: lib/graphql/resolvers/participant.ex:121
msgid "The event has already reached its maximum capacity"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/participant.ex:267
#: lib/graphql/resolvers/participant.ex:264
msgid "This token is invalid"
msgstr ""
@@ -548,32 +547,32 @@ msgid "Todo list doesn't exist"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/feed_token.ex:72
#: lib/graphql/resolvers/feed_token.ex:69
msgid "Token does not exist"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/feed_token.ex:69
#: lib/graphql/resolvers/feed_token.ex:66
msgid "Token is not a valid UUID"
msgstr ""
#, elixir-format
#: lib/graphql/error.ex:87 lib/graphql/resolvers/person.ex:323
#: lib/graphql/error.ex:87 lib/graphql/resolvers/person.ex:319
msgid "User not found"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/person.ex:235
#: lib/graphql/resolvers/person.ex:234
msgid "You already have a profile for this user"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/participant.ex:134
#: lib/graphql/resolvers/participant.ex:131
msgid "You are already a participant of this event"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/discussion.ex:185
#: lib/graphql/resolvers/discussion.ex:188
msgid "You are not a member of the group the discussion belongs to"
msgstr ""
@@ -593,7 +592,7 @@ msgid "You are not allowed to create a comment if not connected"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/feed_token.ex:44
#: lib/graphql/resolvers/feed_token.ex:41
msgid "You are not allowed to create a feed token if not connected"
msgstr ""
@@ -603,7 +602,7 @@ msgid "You are not allowed to delete a comment if not connected"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/feed_token.ex:81
#: lib/graphql/resolvers/feed_token.ex:78
msgid "You are not allowed to delete a feed token if not connected"
msgstr ""
@@ -613,8 +612,8 @@ msgid "You are not allowed to update a comment if not connected"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/participant.ex:167
#: lib/graphql/resolvers/participant.ex:196
#: lib/graphql/resolvers/participant.ex:164
#: lib/graphql/resolvers/participant.ex:193
msgid "You can't leave event because you're the only event creator participant"
msgstr ""
@@ -639,7 +638,7 @@ msgid "You cannot invite to this group"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/feed_token.ex:75
#: lib/graphql/resolvers/feed_token.ex:72
msgid "You don't have permission to delete this token"
msgstr ""
@@ -654,7 +653,7 @@ msgid "You need to be logged-in and a moderator to list reports"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/report.ex:118
#: lib/graphql/resolvers/report.ex:115
msgid "You need to be logged-in and a moderator to update a report"
msgstr ""
@@ -664,17 +663,17 @@ msgid "You need to be logged-in and a moderator to view a report"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/admin.ex:220
#: lib/graphql/resolvers/admin.ex:236
msgid "You need to be logged-in and an administrator to access admin settings"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/admin.ex:205
#: lib/graphql/resolvers/admin.ex:221
msgid "You need to be logged-in and an administrator to access dashboard statistics"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/admin.ex:244
#: lib/graphql/resolvers/admin.ex:260
msgid "You need to be logged-in and an administrator to save admin settings"
msgstr ""
@@ -699,7 +698,7 @@ msgid "You need to be logged-in to create posts"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/report.ex:81 lib/graphql/resolvers/report.ex:92
#: lib/graphql/resolvers/report.ex:78 lib/graphql/resolvers/report.ex:89
msgid "You need to be logged-in to create reports"
msgstr ""
@@ -724,12 +723,12 @@ msgid "You need to be logged-in to delete resources"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/participant.ex:108
#: lib/graphql/resolvers/participant.ex:105
msgid "You need to be logged-in to join an event"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/participant.ex:207
#: lib/graphql/resolvers/participant.ex:204
msgid "You need to be logged-in to leave an event"
msgstr ""
@@ -754,12 +753,12 @@ msgid "You need to be logged-in to view a resource preview"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/picture.ex:86
#: lib/graphql/resolvers/picture.ex:83
msgid "You need to login to upload a picture"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/report.ex:84
#: lib/graphql/resolvers/report.ex:81
msgid "Reporter ID does not match the anonymous profile id"
msgstr ""
@@ -774,7 +773,7 @@ msgid "Parent resource doesn't belong to this group"
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/participant.ex:93
#: lib/graphql/resolvers/participant.ex:90
msgid "Profile ID provided is not the anonymous profile one"
msgstr ""
@@ -849,12 +848,12 @@ msgid "You can't reject this invitation with this profile."
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/picture.ex:78
#: lib/graphql/resolvers/picture.ex:75
msgid "File doesn't have an allowed MIME type."
msgstr ""
#, elixir-format
#: lib/graphql/resolvers/group.ex:172
#: lib/graphql/resolvers/group.ex:170
msgid "Profile is not administrator for the group"
msgstr ""
@@ -882,3 +881,8 @@ msgstr ""
#: lib/graphql/resolvers/member.ex:189
msgid "You don't have the right to remove this member."
msgstr ""
#, elixir-format
#: lib/mobilizon/actors/actor.ex:344
msgid "This username is already taken."
msgstr ""