mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-23 03:51:00 +00:00
Fix occurrences of 'have been' to 'has been' (#578)
* Update comments.rs * Update medias.rs * Update posts.rs * Update user.rs * Update posts.rs * Update user.rs
This commit is contained in:
parent
d78b3a05ec
commit
c67f65e684
4 changed files with 10 additions and 10 deletions
|
@ -94,7 +94,7 @@ pub fn create(
|
|||
Redirect::to(
|
||||
uri!(super::posts::details: blog = blog_name, slug = slug, responding_to = _),
|
||||
),
|
||||
i18n!(&rockets.intl.catalog, "Your comment have been posted."),
|
||||
i18n!(&rockets.intl.catalog, "Your comment has been posted."),
|
||||
)
|
||||
})
|
||||
.map_err(|errors| {
|
||||
|
@ -169,7 +169,7 @@ pub fn delete(
|
|||
}
|
||||
Ok(Flash::success(
|
||||
Redirect::to(uri!(super::posts::details: blog = blog, slug = slug, responding_to = _)),
|
||||
i18n!(&rockets.intl.catalog, "Your comment have been deleted."),
|
||||
i18n!(&rockets.intl.catalog, "Your comment has been deleted."),
|
||||
))
|
||||
}
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@ pub fn set_avatar(
|
|||
user.set_avatar(&*conn, media.id)?;
|
||||
Ok(Flash::success(
|
||||
Redirect::to(uri!(details: id = id)),
|
||||
i18n!(intl.catalog, "Your avatar have been updated."),
|
||||
i18n!(intl.catalog, "Your avatar has been updated."),
|
||||
))
|
||||
} else {
|
||||
Ok(Flash::error(
|
||||
|
|
|
@ -347,7 +347,7 @@ pub fn update(
|
|||
|
||||
Ok(Flash::success(
|
||||
Redirect::to(uri!(details: blog = blog, slug = new_slug, responding_to = _)),
|
||||
i18n!(intl, "Your article have been updated."),
|
||||
i18n!(intl, "Your article has been updated."),
|
||||
))
|
||||
}
|
||||
} else {
|
||||
|
@ -529,13 +529,13 @@ pub fn create(
|
|||
|
||||
Ok(Flash::success(
|
||||
Redirect::to(uri!(details: blog = blog_name, slug = slug, responding_to = _)),
|
||||
i18n!(&rockets.intl.catalog, "Your post have been saved."),
|
||||
i18n!(&rockets.intl.catalog, "Your article has been saved."),
|
||||
))
|
||||
} else {
|
||||
let medias = Media::for_user(&*conn, user.id).expect("posts::create: medias error");
|
||||
Err(Ok(render!(posts::new(
|
||||
&rockets.to_context(),
|
||||
i18n!(rockets.intl.catalog, "New post"),
|
||||
i18n!(rockets.intl.catalog, "New article"),
|
||||
blog,
|
||||
false,
|
||||
&*form,
|
||||
|
@ -594,7 +594,7 @@ pub fn delete(
|
|||
|
||||
Ok(Flash::success(
|
||||
Redirect::to(uri!(super::blogs::details: name = blog_name, page = _)),
|
||||
i18n!(intl.catalog, "Your article have been deleted."),
|
||||
i18n!(intl.catalog, "Your article has been deleted."),
|
||||
))
|
||||
} else {
|
||||
Ok(Flash::error(Redirect::to(
|
||||
|
|
|
@ -396,7 +396,7 @@ pub fn update(
|
|||
)?;
|
||||
Ok(Flash::success(
|
||||
Redirect::to(uri!(me)),
|
||||
i18n!(intl.catalog, "Your profile have been updated."),
|
||||
i18n!(intl.catalog, "Your profile has been updated."),
|
||||
))
|
||||
}
|
||||
|
||||
|
@ -423,7 +423,7 @@ pub fn delete(
|
|||
|
||||
Ok(Flash::success(
|
||||
Redirect::to(uri!(super::instance::index)),
|
||||
i18n!(rockets.intl.catalog, "Your account have been deleted."),
|
||||
i18n!(rockets.intl.catalog, "Your account has been deleted."),
|
||||
))
|
||||
} else {
|
||||
Ok(Flash::error(
|
||||
|
@ -526,7 +526,7 @@ pub fn create(
|
|||
Redirect::to(uri!(super::session::new: m = _)),
|
||||
i18n!(
|
||||
rockets.intl.catalog,
|
||||
"Your account have been created. You just need to login before you can use it."
|
||||
"Your account has been created. Now you just need to log in, before you can use it."
|
||||
),
|
||||
))
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue