From c67f65e6844b8e000795156d89ac01e50da6aba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20=C4=BDach?= Date: Tue, 14 May 2019 12:54:16 +0200 Subject: [PATCH] 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 --- src/routes/comments.rs | 4 ++-- src/routes/medias.rs | 2 +- src/routes/posts.rs | 8 ++++---- src/routes/user.rs | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/routes/comments.rs b/src/routes/comments.rs index 8c38231..fb6c4d0 100644 --- a/src/routes/comments.rs +++ b/src/routes/comments.rs @@ -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."), )) } diff --git a/src/routes/medias.rs b/src/routes/medias.rs index e93ffc0..7fa01c5 100644 --- a/src/routes/medias.rs +++ b/src/routes/medias.rs @@ -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( diff --git a/src/routes/posts.rs b/src/routes/posts.rs index 0ca476a..8c35b19 100644 --- a/src/routes/posts.rs +++ b/src/routes/posts.rs @@ -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( diff --git a/src/routes/user.rs b/src/routes/user.rs index fe47939..ef47e58 100644 --- a/src/routes/user.rs +++ b/src/routes/user.rs @@ -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." ), )) })