Improve Backend Error page
Mostly handle things properly when the front-end is missing Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -102,28 +102,28 @@ msgid "Cannot refresh the token"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/group.ex:195
|
||||
#: lib/graphql/resolvers/group.ex:198
|
||||
msgid "Current profile is not a member of this group"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/group.ex:199
|
||||
#: lib/graphql/resolvers/group.ex:202
|
||||
msgid "Current profile is not an administrator of the selected group"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:512
|
||||
#: lib/graphql/resolvers/user.ex:513
|
||||
msgid "Error while saving user settings"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/error.ex:90 lib/graphql/resolvers/group.ex:192
|
||||
#: lib/graphql/resolvers/group.ex:223 lib/graphql/resolvers/group.ex:258 lib/graphql/resolvers/member.ex:80
|
||||
#: lib/graphql/error.ex:90 lib/graphql/resolvers/group.ex:195
|
||||
#: lib/graphql/resolvers/group.ex:226 lib/graphql/resolvers/group.ex:261 lib/graphql/resolvers/member.ex:80
|
||||
msgid "Group not found"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/group.ex:63
|
||||
#: lib/graphql/resolvers/group.ex:66
|
||||
msgid "Group with ID %{id} not found"
|
||||
msgstr ""
|
||||
|
||||
@@ -133,23 +133,23 @@ msgid "Impossible to authenticate, either your email or password are invalid."
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/group.ex:255
|
||||
#: lib/graphql/resolvers/group.ex:258
|
||||
msgid "Member not found"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/actor.ex:58 lib/graphql/resolvers/actor.ex:88
|
||||
#: lib/graphql/resolvers/user.ex:417
|
||||
#: lib/graphql/resolvers/user.ex:418
|
||||
msgid "No profile found for the moderator user"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:195
|
||||
#: lib/graphql/resolvers/user.ex:196
|
||||
msgid "No user to validate with this email was found"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/person.ex:249 lib/graphql/resolvers/user.ex:219
|
||||
#: lib/graphql/resolvers/person.ex:249 lib/graphql/resolvers/user.ex:220
|
||||
msgid "No user with this email was found"
|
||||
msgstr ""
|
||||
|
||||
@@ -157,48 +157,49 @@ msgstr ""
|
||||
#: lib/graphql/resolvers/feed_token.ex:28
|
||||
#: lib/graphql/resolvers/participant.ex:28 lib/graphql/resolvers/participant.ex:159
|
||||
#: lib/graphql/resolvers/participant.ex:188 lib/graphql/resolvers/person.ex:161 lib/graphql/resolvers/person.ex:195
|
||||
#: lib/graphql/resolvers/person.ex:273 lib/graphql/resolvers/person.ex:302 lib/graphql/resolvers/person.ex:315
|
||||
#: lib/graphql/resolvers/person.ex:273 lib/graphql/resolvers/person.ex:302 lib/graphql/resolvers/person.ex:326
|
||||
#: lib/graphql/resolvers/person.ex:338
|
||||
msgid "Profile is not owned by authenticated user"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:125
|
||||
#: lib/graphql/resolvers/user.ex:126
|
||||
msgid "Registrations are not open"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:330
|
||||
#: lib/graphql/resolvers/user.ex:331
|
||||
msgid "The current password is invalid"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:382
|
||||
#: lib/graphql/resolvers/user.ex:383
|
||||
msgid "The new email doesn't seem to be valid"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:379
|
||||
#: lib/graphql/resolvers/user.ex:380
|
||||
msgid "The new email must be different"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:333
|
||||
#: lib/graphql/resolvers/user.ex:334
|
||||
msgid "The new password must be different"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:376 lib/graphql/resolvers/user.ex:439
|
||||
#: lib/graphql/resolvers/user.ex:442
|
||||
#: lib/graphql/resolvers/user.ex:377 lib/graphql/resolvers/user.ex:440
|
||||
#: lib/graphql/resolvers/user.ex:443
|
||||
msgid "The password provided is invalid"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:337
|
||||
#: lib/graphql/resolvers/user.ex:338
|
||||
msgid "The password you have chosen is too short. Please make sure your password contains at least 6 characters."
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:215
|
||||
#: lib/graphql/resolvers/user.ex:216
|
||||
msgid "This user can't reset their password"
|
||||
msgstr ""
|
||||
|
||||
@@ -208,72 +209,72 @@ msgid "This user has been disabled"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:179
|
||||
#: lib/graphql/resolvers/user.ex:180
|
||||
msgid "Unable to validate user"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:420
|
||||
#: lib/graphql/resolvers/user.ex:421
|
||||
msgid "User already disabled"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:487
|
||||
#: lib/graphql/resolvers/user.ex:488
|
||||
msgid "User requested is not logged-in"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/group.ex:229
|
||||
#: lib/graphql/resolvers/group.ex:232
|
||||
msgid "You are already a member of this group"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/group.ex:262
|
||||
#: lib/graphql/resolvers/group.ex:265
|
||||
msgid "You can't leave this group because you are the only administrator"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/group.ex:226
|
||||
#: lib/graphql/resolvers/group.ex:229
|
||||
msgid "You cannot join this group"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/group.ex:91
|
||||
#: lib/graphql/resolvers/group.ex:94
|
||||
msgid "You may not list groups unless moderator."
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:387
|
||||
#: lib/graphql/resolvers/user.ex:388
|
||||
msgid "You need to be logged-in to change your email"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:345
|
||||
#: lib/graphql/resolvers/user.ex:346
|
||||
msgid "You need to be logged-in to change your password"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/group.ex:204
|
||||
#: lib/graphql/resolvers/group.ex:207
|
||||
msgid "You need to be logged-in to delete a group"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:447
|
||||
#: lib/graphql/resolvers/user.ex:448
|
||||
msgid "You need to be logged-in to delete your account"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/group.ex:234
|
||||
#: lib/graphql/resolvers/group.ex:237
|
||||
msgid "You need to be logged-in to join a group"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/group.ex:267
|
||||
#: lib/graphql/resolvers/group.ex:270
|
||||
msgid "You need to be logged-in to leave a group"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/group.ex:169
|
||||
#: lib/graphql/resolvers/group.ex:172
|
||||
msgid "You need to be logged-in to update a group"
|
||||
msgstr ""
|
||||
|
||||
@@ -283,12 +284,12 @@ msgid "You need to have an existing token to get a refresh token"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:198 lib/graphql/resolvers/user.ex:222
|
||||
#: lib/graphql/resolvers/user.ex:199 lib/graphql/resolvers/user.ex:223
|
||||
msgid "You requested again a confirmation email too soon"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:128
|
||||
#: lib/graphql/resolvers/user.ex:129
|
||||
msgid "Your email is not on the allowlist"
|
||||
msgstr ""
|
||||
|
||||
@@ -353,7 +354,7 @@ msgid "Comment is already deleted"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/discussion.ex:62
|
||||
#: lib/graphql/error.ex:92 lib/graphql/resolvers/discussion.ex:62
|
||||
msgid "Discussion not found"
|
||||
msgstr ""
|
||||
|
||||
@@ -373,8 +374,8 @@ msgid "Event id not found"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/error.ex:89 lib/graphql/resolvers/event.ex:236
|
||||
#: lib/graphql/resolvers/event.ex:280
|
||||
#: lib/graphql/error.ex:89 lib/graphql/resolvers/event.ex:277
|
||||
#: lib/graphql/resolvers/event.ex:321
|
||||
msgid "Event not found"
|
||||
msgstr ""
|
||||
|
||||
@@ -390,7 +391,7 @@ msgid "Internal Error"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/discussion.ex:186
|
||||
#: lib/graphql/resolvers/discussion.ex:198
|
||||
msgid "No discussion with ID %{id}"
|
||||
msgstr ""
|
||||
|
||||
@@ -448,8 +449,8 @@ msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/post.ex:132 lib/graphql/resolvers/post.ex:173
|
||||
#: lib/graphql/resolvers/post.ex:206 lib/graphql/resolvers/resource.ex:87 lib/graphql/resolvers/resource.ex:124
|
||||
#: lib/graphql/resolvers/resource.ex:153 lib/graphql/resolvers/resource.ex:182 lib/graphql/resolvers/todos.ex:57
|
||||
#: lib/graphql/resolvers/post.ex:206 lib/graphql/resolvers/resource.ex:88 lib/graphql/resolvers/resource.ex:125
|
||||
#: lib/graphql/resolvers/resource.ex:154 lib/graphql/resolvers/resource.ex:183 lib/graphql/resolvers/todos.ex:57
|
||||
#: lib/graphql/resolvers/todos.ex:81 lib/graphql/resolvers/todos.ex:99 lib/graphql/resolvers/todos.ex:171
|
||||
#: lib/graphql/resolvers/todos.ex:194 lib/graphql/resolvers/todos.ex:222
|
||||
msgid "Profile is not member of group"
|
||||
@@ -461,7 +462,7 @@ msgid "Profile not found"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/event.ex:100 lib/graphql/resolvers/participant.ex:234
|
||||
#: lib/graphql/resolvers/event.ex:141 lib/graphql/resolvers/participant.ex:234
|
||||
msgid "Provided moderator profile doesn't have permission on this event"
|
||||
msgstr ""
|
||||
|
||||
@@ -471,7 +472,7 @@ msgid "Report not found"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/resource.ex:150 lib/graphql/resolvers/resource.ex:179
|
||||
#: lib/graphql/resolvers/resource.ex:151 lib/graphql/resolvers/resource.ex:180
|
||||
msgid "Resource doesn't exist"
|
||||
msgstr ""
|
||||
|
||||
@@ -507,7 +508,7 @@ msgid "Token is not a valid UUID"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/error.ex:87 lib/graphql/resolvers/person.ex:331
|
||||
#: lib/graphql/error.ex:87 lib/graphql/resolvers/person.ex:354
|
||||
msgid "User not found"
|
||||
msgstr ""
|
||||
|
||||
@@ -521,11 +522,6 @@ msgstr ""
|
||||
msgid "You are already a participant of this event"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/discussion.ex:190
|
||||
msgid "You are not a member of the group the discussion belongs to"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/member.ex:86
|
||||
msgid "You are not a member of this group"
|
||||
@@ -578,7 +574,7 @@ msgid "You cannot delete this comment"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/event.ex:276
|
||||
#: lib/graphql/resolvers/event.ex:317
|
||||
msgid "You cannot delete this event"
|
||||
msgstr ""
|
||||
|
||||
@@ -633,12 +629,12 @@ msgid "You need to be logged-in to access discussions"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/resource.ex:93
|
||||
#: lib/graphql/resolvers/resource.ex:94
|
||||
msgid "You need to be logged-in to access resources"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/event.ex:211
|
||||
#: lib/graphql/resolvers/event.ex:252
|
||||
msgid "You need to be logged-in to create events"
|
||||
msgstr ""
|
||||
|
||||
@@ -653,12 +649,12 @@ msgid "You need to be logged-in to create reports"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/resource.ex:129
|
||||
#: lib/graphql/resolvers/resource.ex:130
|
||||
msgid "You need to be logged-in to create resources"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/event.ex:285
|
||||
#: lib/graphql/resolvers/event.ex:326
|
||||
msgid "You need to be logged-in to delete an event"
|
||||
msgstr ""
|
||||
|
||||
@@ -668,7 +664,7 @@ msgid "You need to be logged-in to delete posts"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/resource.ex:187
|
||||
#: lib/graphql/resolvers/resource.ex:188
|
||||
msgid "You need to be logged-in to delete resources"
|
||||
msgstr ""
|
||||
|
||||
@@ -683,7 +679,7 @@ msgid "You need to be logged-in to leave an event"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/event.ex:250
|
||||
#: lib/graphql/resolvers/event.ex:291
|
||||
msgid "You need to be logged-in to update an event"
|
||||
msgstr ""
|
||||
|
||||
@@ -693,17 +689,17 @@ msgid "You need to be logged-in to update posts"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/resource.ex:158
|
||||
#: lib/graphql/resolvers/resource.ex:159
|
||||
msgid "You need to be logged-in to update resources"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/resource.ex:210
|
||||
#: lib/graphql/resolvers/resource.ex:211
|
||||
msgid "You need to be logged-in to view a resource preview"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/resource.ex:121
|
||||
#: lib/graphql/resolvers/resource.ex:122
|
||||
msgid "Parent resource doesn't belong to this group"
|
||||
msgstr ""
|
||||
|
||||
@@ -748,7 +744,7 @@ msgid "Resource not found"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/error.ex:92
|
||||
#: lib/graphql/error.ex:93
|
||||
msgid "Something went wrong"
|
||||
msgstr ""
|
||||
|
||||
@@ -783,17 +779,17 @@ msgid "File doesn't have an allowed MIME type."
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/group.ex:164
|
||||
#: lib/graphql/resolvers/group.ex:167
|
||||
msgid "Profile is not administrator for the group"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/event.ex:239
|
||||
#: lib/graphql/resolvers/event.ex:280
|
||||
msgid "You can't edit this event."
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/event.ex:242
|
||||
#: lib/graphql/resolvers/event.ex:283
|
||||
msgid "You can't attribute this event to this profile."
|
||||
msgstr ""
|
||||
|
||||
@@ -823,7 +819,7 @@ msgid "You must provide either an ID or a slug to access a discussion"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/event.ex:200
|
||||
#: lib/graphql/resolvers/event.ex:241
|
||||
msgid "Organizer profile is not owned by the user"
|
||||
msgstr ""
|
||||
|
||||
@@ -837,3 +833,8 @@ msgstr ""
|
||||
#: lib/graphql/resolvers/person.ex:246
|
||||
msgid "The provided picture is too heavy"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/web/views/utils.ex:34
|
||||
msgid "Index file not found. You need to recompile the front-end."
|
||||
msgstr ""
|
||||
|
||||
Reference in New Issue
Block a user