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:
Marek Ľach 2019-05-14 12:54:16 +02:00 committed by Baptiste Gelez
parent d78b3a05ec
commit c67f65e684
4 changed files with 10 additions and 10 deletions

View File

@ -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."),
)) ))
} }

View File

@ -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(

View File

@ -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(

View File

@ -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."
), ),
)) ))
}) })