mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-26 21:41:04 +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(
|
Redirect::to(
|
||||||
uri!(super::posts::details: blog = blog_name, slug = slug, responding_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| {
|
.map_err(|errors| {
|
||||||
|
@ -169,7 +169,7 @@ pub fn delete(
|
||||||
}
|
}
|
||||||
Ok(Flash::success(
|
Ok(Flash::success(
|
||||||
Redirect::to(uri!(super::posts::details: blog = blog, slug = slug, responding_to = _)),
|
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)?;
|
user.set_avatar(&*conn, media.id)?;
|
||||||
Ok(Flash::success(
|
Ok(Flash::success(
|
||||||
Redirect::to(uri!(details: id = id)),
|
Redirect::to(uri!(details: id = id)),
|
||||||
i18n!(intl.catalog, "Your avatar have been updated."),
|
i18n!(intl.catalog, "Your avatar has been updated."),
|
||||||
))
|
))
|
||||||
} else {
|
} else {
|
||||||
Ok(Flash::error(
|
Ok(Flash::error(
|
||||||
|
|
|
@ -347,7 +347,7 @@ pub fn update(
|
||||||
|
|
||||||
Ok(Flash::success(
|
Ok(Flash::success(
|
||||||
Redirect::to(uri!(details: blog = blog, slug = new_slug, responding_to = _)),
|
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 {
|
} else {
|
||||||
|
@ -529,13 +529,13 @@ pub fn create(
|
||||||
|
|
||||||
Ok(Flash::success(
|
Ok(Flash::success(
|
||||||
Redirect::to(uri!(details: blog = blog_name, slug = slug, responding_to = _)),
|
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 {
|
} else {
|
||||||
let medias = Media::for_user(&*conn, user.id).expect("posts::create: medias error");
|
let medias = Media::for_user(&*conn, user.id).expect("posts::create: medias error");
|
||||||
Err(Ok(render!(posts::new(
|
Err(Ok(render!(posts::new(
|
||||||
&rockets.to_context(),
|
&rockets.to_context(),
|
||||||
i18n!(rockets.intl.catalog, "New post"),
|
i18n!(rockets.intl.catalog, "New article"),
|
||||||
blog,
|
blog,
|
||||||
false,
|
false,
|
||||||
&*form,
|
&*form,
|
||||||
|
@ -594,7 +594,7 @@ pub fn delete(
|
||||||
|
|
||||||
Ok(Flash::success(
|
Ok(Flash::success(
|
||||||
Redirect::to(uri!(super::blogs::details: name = blog_name, page = _)),
|
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 {
|
} else {
|
||||||
Ok(Flash::error(Redirect::to(
|
Ok(Flash::error(Redirect::to(
|
||||||
|
|
|
@ -396,7 +396,7 @@ pub fn update(
|
||||||
)?;
|
)?;
|
||||||
Ok(Flash::success(
|
Ok(Flash::success(
|
||||||
Redirect::to(uri!(me)),
|
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(
|
Ok(Flash::success(
|
||||||
Redirect::to(uri!(super::instance::index)),
|
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 {
|
} else {
|
||||||
Ok(Flash::error(
|
Ok(Flash::error(
|
||||||
|
@ -526,7 +526,7 @@ pub fn create(
|
||||||
Redirect::to(uri!(super::session::new: m = _)),
|
Redirect::to(uri!(super::session::new: m = _)),
|
||||||
i18n!(
|
i18n!(
|
||||||
rockets.intl.catalog,
|
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