Add some feedback when performing some actions (#552)

* Add a way to display flash messages

* Make the flash messages look nice

* Add actual feedback messages

* cargo fmt

* Move flash messages to PlumeRocket

And add trait to convert PlumeRocket to BaseContext

* Remove useless lifetime
This commit is contained in:
Baptiste Gelez
2019-04-30 11:04:25 +01:00
committed by GitHub
parent 18ae6e26b3
commit 8f1ab3485e
40 changed files with 3255 additions and 445 deletions
+120
View File
@@ -48,6 +48,15 @@ msgstr "Para crear un nuevo blog, necesita estar logueado"
msgid "A blog with the same name already exists."
msgstr ""
# src/routes/session.rs:259
#, fuzzy
msgid "Your blog was successfully created!"
msgstr "Su contraseña se ha restablecido correctamente."
# src/routes/blogs.rs:167
msgid "Your blog was deleted."
msgstr ""
# src/routes/blogs.rs:172
msgid "You are not allowed to delete this blog."
msgstr "No está autorizado a eliminar este registro."
@@ -64,10 +73,56 @@ msgstr "No puede usar este medio como icono del blog."
msgid "You can't use this media as a blog banner."
msgstr "No puede usar este medio como bandera del blog."
# src/routes/blogs.rs:312
msgid "Your blog information have been updated."
msgstr ""
#, fuzzy
msgid "Your comment have been posted."
msgstr "Todavía no tiene ningún medio."
#, fuzzy
msgid "Your comment have been deleted."
msgstr "Todavía no tiene ningún medio."
# src/routes/instance.rs:145
msgid "Instance settings have been saved."
msgstr ""
# src/routes/instance.rs:182
msgid "{} have been unblocked."
msgstr ""
# src/routes/instance.rs:184
msgid "{} have been blocked."
msgstr ""
# src/routes/instance.rs:218
msgid "{} have been banned."
msgstr ""
# src/routes/likes.rs:51
msgid "To like a post, you need to be logged in"
msgstr "Para darle un Me Gusta a un artículo, necesita estar conectado"
# src/routes/medias.rs:143
msgid "Your media have been deleted."
msgstr ""
# src/routes/blogs.rs:172
#, fuzzy
msgid "You are not allowed to delete this media."
msgstr "No está autorizado a eliminar este registro."
# src/routes/medias.rs:154
msgid "Your avatar have been updated."
msgstr ""
# src/routes/blogs.rs:217
#, fuzzy
msgid "You are not allowed to use this media."
msgstr "No tiene permiso para editar este blog."
# src/routes/notifications.rs:29
msgid "To see your notifications, you need to be logged in"
msgstr "Para ver tus notificaciones, necesitas estar conectado"
@@ -92,6 +147,34 @@ msgstr "Nueva publicación"
msgid "Edit {0}"
msgstr "Editar {0}"
# src/routes/blogs.rs:217
#, fuzzy
msgid "You are not allowed to publish on this blog."
msgstr "No tiene permiso para editar este blog."
# src/routes/posts.rs:351
msgid "Your article have been updated."
msgstr ""
#, fuzzy
msgid "Your post have been saved."
msgstr "Todavía no tiene ningún medio."
# src/routes/blogs.rs:172
#, fuzzy
msgid "You are not allowed to delete this article."
msgstr "No está autorizado a eliminar este registro."
# src/routes/posts.rs:589
msgid "Your article have been deleted."
msgstr ""
# src/routes/posts.rs:593
msgid ""
"It looks like the article you tried to delete doesn't exist. Maybe it is "
"already gone?"
msgstr ""
# src/routes/posts.rs:630
msgid ""
"Couldn't obtain enough information about your account. Please make sure your "
@@ -102,6 +185,14 @@ msgstr ""
msgid "To reshare a post, you need to be logged in"
msgstr "Para compartir un artículo, necesita estar logueado"
#, fuzzy
msgid "You are now connected."
msgstr "No está autorizado."
#, fuzzy
msgid "You are now logged off."
msgstr "No está autorizado."
# src/routes/session.rs:181
msgid "Password reset"
msgstr "Reiniciar contraseña"
@@ -122,6 +213,14 @@ msgstr "Lo sentimos, pero el enlace expiró. Inténtalo de nuevo"
msgid "To access your dashboard, you need to be logged in"
msgstr "Para acceder a su panel de control, necesita estar conectado"
# src/routes/user.rs:158
msgid "You are no longer following {}."
msgstr ""
# src/routes/user.rs:174
msgid "You are now following {}."
msgstr ""
# src/routes/user.rs:244
msgid "To subscribe to someone, you need to be logged in"
msgstr "Para suscribirse a alguien, necesita estar conectado"
@@ -130,6 +229,27 @@ msgstr "Para suscribirse a alguien, necesita estar conectado"
msgid "To edit your profile, you need to be logged in"
msgstr "Para editar su perfil, necesita estar conectado"
# src/routes/user.rs:390
msgid "Your profile have been updated."
msgstr ""
#, fuzzy
msgid "Your account have been deleted."
msgstr "Todavía no tiene ningún medio."
# src/routes/user.rs:411
msgid "You can't delete someone else's account."
msgstr ""
# src/routes/user.rs:473
msgid "Registrations are closed on this instance."
msgstr ""
# src/routes/user.rs:491
msgid ""
"Your account have been created. You just need to login before you can use it."
msgstr ""
msgid "Plume"
msgstr "Plume"