Fix posts and rework graphql errors
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -114,7 +114,7 @@ msgid "Current profile is not an administrator of the selected group"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:514
|
||||
#: lib/graphql/resolvers/user.ex:516
|
||||
msgid "Error while saving user settings"
|
||||
msgstr ""
|
||||
|
||||
@@ -146,18 +146,18 @@ 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:419
|
||||
msgid "No profile found for the moderator user"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:195
|
||||
#: lib/graphql/resolvers/user.ex:197
|
||||
msgid "No user to validate with this email was found"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/person.ex:217 lib/graphql/resolvers/user.ex:76
|
||||
#: lib/graphql/resolvers/user.ex:219
|
||||
#: lib/graphql/resolvers/user.ex:221
|
||||
msgid "No user with this email was found"
|
||||
msgstr ""
|
||||
|
||||
@@ -178,38 +178,38 @@ msgid "Registrations are not open"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:330
|
||||
#: lib/graphql/resolvers/user.ex:332
|
||||
msgid "The current password is invalid"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:382
|
||||
#: lib/graphql/resolvers/user.ex:384
|
||||
msgid "The new email doesn't seem to be valid"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:379
|
||||
#: lib/graphql/resolvers/user.ex:381
|
||||
msgid "The new email must be different"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:333
|
||||
#: lib/graphql/resolvers/user.ex:335
|
||||
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:378 lib/graphql/resolvers/user.ex:441
|
||||
#: lib/graphql/resolvers/user.ex:444
|
||||
msgid "The password provided is invalid"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:337
|
||||
#: lib/graphql/resolvers/user.ex:339
|
||||
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:217
|
||||
msgid "This user can't reset their password"
|
||||
msgstr ""
|
||||
|
||||
@@ -219,17 +219,17 @@ msgid "This user has been disabled"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:179
|
||||
#: lib/graphql/resolvers/user.ex:181
|
||||
msgid "Unable to validate user"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:420
|
||||
#: lib/graphql/resolvers/user.ex:422
|
||||
msgid "User already disabled"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:489
|
||||
#: lib/graphql/resolvers/user.ex:491
|
||||
msgid "User requested is not logged-in"
|
||||
msgstr ""
|
||||
|
||||
@@ -254,12 +254,12 @@ msgid "You may not list groups unless moderator."
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/user.ex:387
|
||||
#: lib/graphql/resolvers/user.ex:389
|
||||
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:347
|
||||
msgid "You need to be logged-in to change your password"
|
||||
msgstr ""
|
||||
|
||||
@@ -269,7 +269,7 @@ 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:449
|
||||
msgid "You need to be logged-in to delete your account"
|
||||
msgstr ""
|
||||
|
||||
@@ -299,7 +299,7 @@ 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:200 lib/graphql/resolvers/user.ex:224
|
||||
msgid "You requested again a confirmation email too soon"
|
||||
msgstr ""
|
||||
|
||||
@@ -389,16 +389,11 @@ msgid "Event id not found"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/event.ex:236 lib/graphql/resolvers/event.ex:278
|
||||
#: lib/graphql/error.ex:85 lib/graphql/resolvers/event.ex:236
|
||||
#: lib/graphql/resolvers/event.ex:278
|
||||
msgid "Event not found"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/event.ex:41 lib/graphql/resolvers/event.ex:46
|
||||
#: lib/graphql/resolvers/event.ex:60
|
||||
msgid "Event with UUID %{uuid} not found"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/participant.ex:87
|
||||
#: lib/graphql/resolvers/participant.ex:128 lib/graphql/resolvers/participant.ex:160
|
||||
@@ -430,12 +425,6 @@ msgstr ""
|
||||
msgid "No such feed token"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/post.ex:79 lib/graphql/resolvers/post.ex:94
|
||||
#: lib/graphql/resolvers/post.ex:99
|
||||
msgid "No such post"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/resource.ex:87
|
||||
msgid "No such resource"
|
||||
@@ -474,12 +463,12 @@ msgid "Picture with ID %{id} was not found"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/post.ex:152 lib/graphql/resolvers/post.ex:185
|
||||
#: lib/graphql/resolvers/post.ex:165 lib/graphql/resolvers/post.ex:198
|
||||
msgid "Post ID is not a valid ID"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/post.ex:155 lib/graphql/resolvers/post.ex:188
|
||||
#: lib/graphql/resolvers/post.ex:168 lib/graphql/resolvers/post.ex:201
|
||||
msgid "Post doesn't exist"
|
||||
msgstr ""
|
||||
|
||||
@@ -494,8 +483,8 @@ msgid "Profile is already a member of this group"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/post.ex:125 lib/graphql/resolvers/post.ex:158
|
||||
#: lib/graphql/resolvers/post.ex:191 lib/graphql/resolvers/resource.ex:86 lib/graphql/resolvers/resource.ex:123
|
||||
#: lib/graphql/resolvers/post.ex:131 lib/graphql/resolvers/post.ex:171
|
||||
#: lib/graphql/resolvers/post.ex:204 lib/graphql/resolvers/resource.ex:86 lib/graphql/resolvers/resource.ex:123
|
||||
#: lib/graphql/resolvers/resource.ex:152 lib/graphql/resolvers/resource.ex:181 lib/graphql/resolvers/todos.ex:60
|
||||
#: lib/graphql/resolvers/todos.ex:84 lib/graphql/resolvers/todos.ex:102 lib/graphql/resolvers/todos.ex:174
|
||||
#: lib/graphql/resolvers/todos.ex:197 lib/graphql/resolvers/todos.ex:225
|
||||
@@ -705,7 +694,7 @@ msgid "You need to be logged-in to create events"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/post.ex:130
|
||||
#: lib/graphql/resolvers/post.ex:139
|
||||
msgid "You need to be logged-in to create posts"
|
||||
msgstr ""
|
||||
|
||||
@@ -730,7 +719,7 @@ msgid "You need to be logged-in to delete an identity"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/post.ex:196
|
||||
#: lib/graphql/resolvers/post.ex:209
|
||||
msgid "You need to be logged-in to delete posts"
|
||||
msgstr ""
|
||||
|
||||
@@ -760,7 +749,7 @@ msgid "You need to be logged-in to update an identity"
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/resolvers/post.ex:163
|
||||
#: lib/graphql/resolvers/post.ex:176
|
||||
msgid "You need to be logged-in to update posts"
|
||||
msgstr ""
|
||||
|
||||
@@ -823,3 +812,8 @@ msgstr ""
|
||||
#: lib/mobilizon/users/user.ex:104
|
||||
msgid "This email is already used."
|
||||
msgstr ""
|
||||
|
||||
#, elixir-format
|
||||
#: lib/graphql/error.ex:84
|
||||
msgid "Post not found"
|
||||
msgstr ""
|
||||
|
||||
Reference in New Issue
Block a user