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
+115 -8
View File
@@ -46,6 +46,14 @@ msgstr ""
msgid "A blog with the same name already exists."
msgstr "Et innlegg med samme navn finnes allerede."
# src/routes/blogs.rs:142
msgid "Your blog was successfully created!"
msgstr ""
# src/routes/blogs.rs:167
msgid "Your blog was deleted."
msgstr ""
#, fuzzy
msgid "You are not allowed to delete this blog."
msgstr "Du er ikke denne bloggens forfatter."
@@ -62,10 +70,54 @@ msgstr "Du er ikke denne bloggens forfatter."
msgid "You can't use this media as a blog banner."
msgstr "Du er ikke denne bloggens forfatter."
# src/routes/blogs.rs:312
msgid "Your blog information have been updated."
msgstr ""
# src/routes/comments.rs:89
msgid "Your comment have been posted."
msgstr ""
# src/routes/comments.rs:163
msgid "Your comment have been deleted."
msgstr ""
# 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:47
msgid "To like a post, you need to be logged in"
msgstr ""
# src/routes/medias.rs:143
msgid "Your media have been deleted."
msgstr ""
#, fuzzy
msgid "You are not allowed to delete this media."
msgstr "Du er ikke denne bloggens forfatter."
# src/routes/medias.rs:154
msgid "Your avatar have been updated."
msgstr ""
#, fuzzy
msgid "You are not allowed to use this media."
msgstr "Du er ikke denne bloggens forfatter."
# src/routes/notifications.rs:29
msgid "To see your notifications, you need to be logged in"
msgstr ""
@@ -89,6 +141,32 @@ msgstr "Nytt innlegg"
msgid "Edit {0}"
msgstr "Kommentér \"{0}\""
#, fuzzy
msgid "You are not allowed to publish on this blog."
msgstr "Du er ikke denne bloggens forfatter."
# src/routes/posts.rs:351
msgid "Your article have been updated."
msgstr ""
# src/routes/posts.rs:527
msgid "Your post have been saved."
msgstr ""
#, fuzzy
msgid "You are not allowed to delete this article."
msgstr "Du er ikke denne bloggens forfatter."
#, fuzzy
msgid "Your article have been deleted."
msgstr "Ingen innlegg å vise enda."
# 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/user.rs:222
msgid ""
"Couldn't obtain enough information about your account. Please make sure your "
@@ -99,6 +177,14 @@ msgstr ""
msgid "To reshare a post, you need to be logged in"
msgstr ""
#, fuzzy
msgid "You are now connected."
msgstr "Det har du har ikke tilgang til."
#, fuzzy
msgid "You are now logged off."
msgstr "Det har du har ikke tilgang til."
#, fuzzy
msgid "Password reset"
msgstr "Passord"
@@ -119,6 +205,14 @@ msgstr ""
msgid "To access your dashboard, you need to be logged in"
msgstr ""
# src/routes/user.rs:158
msgid "You are no longer following {}."
msgstr ""
#, fuzzy
msgid "You are now following {}."
msgstr "{0} har begynt å følge deg"
# src/routes/user.rs:187
msgid "To subscribe to someone, you need to be logged in"
msgstr ""
@@ -127,6 +221,27 @@ msgstr ""
msgid "To edit your profile, you need to be logged in"
msgstr ""
# src/routes/user.rs:390
msgid "Your profile have been updated."
msgstr ""
# src/routes/user.rs:409
msgid "Your account have been deleted."
msgstr ""
# 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"
@@ -948,10 +1063,6 @@ msgstr ""
#~ msgid "{0}'s followers"
#~ msgstr "Én følger"
#, fuzzy
#~ msgid "{0} is now following you."
#~ msgstr "{0} har begynt å følge deg"
#, fuzzy
#~ msgid "People {0} follows"
#~ msgstr "Én følger"
@@ -966,10 +1077,6 @@ msgstr ""
#~ msgid "Unfollow"
#~ msgstr "Slutt å følge"
#, fuzzy
#~ msgid "No articles to see here yet."
#~ msgstr "Ingen innlegg å vise enda."
#~ msgid "New blog"
#~ msgstr "Ny blogg"