Some corrections to English UI text (#506)

* Update some UI strings for more natural English

* Correct message text

* Correct message text

* Update the strings everywhere

Because they are also used as base messages for other languages
This commit is contained in:
Hugh
2019-03-29 19:12:21 +00:00
committed by Baptiste Gelez
parent c7ee779f51
commit a674df3a77
21 changed files with 164 additions and 110 deletions
+2 -2
View File
@@ -251,7 +251,7 @@ pub fn update(
code: Cow::from("icon"),
message: Some(Cow::from(i18n!(
intl.catalog,
"You can't use this media as blog icon."
"You can't use this media as a blog icon."
))),
params: HashMap::new(),
},
@@ -269,7 +269,7 @@ pub fn update(
code: Cow::from("banner"),
message: Some(Cow::from(i18n!(
intl.catalog,
"You can't use this media as blog banner."
"You can't use this media as a blog banner."
))),
params: HashMap::new(),
},
+2 -2
View File
@@ -135,7 +135,7 @@ pub fn new(blog: String, cl: ContentLen, rockets: PlumeRocket) -> Result<Ructe,
// TODO actually return 403 error code
return Ok(render!(errors::not_authorized(
&(&*conn, &intl.catalog, Some(user)),
i18n!(intl.catalog, "You are not author in this blog.")
i18n!(intl.catalog, "You are not an author of this blog.")
)));
}
@@ -173,7 +173,7 @@ pub fn edit(
if !user.is_author_in(&*conn, &b)? {
return Ok(render!(errors::not_authorized(
&(&*conn, &intl.catalog, Some(user)),
i18n!(intl.catalog, "You are not author in this blog.")
i18n!(intl.catalog, "You are not an author of this blog.")
)));
}
+1 -1
View File
@@ -65,7 +65,7 @@ macro_rules! render {
pub fn translate_notification(ctx: BaseContext, notif: Notification) -> String {
let name = notif.get_actor(ctx.0).unwrap().name();
match notif.kind.as_ref() {
notification_kind::COMMENT => i18n!(ctx.1, "{0} commented your article."; &name),
notification_kind::COMMENT => i18n!(ctx.1, "{0} commented on your article."; &name),
notification_kind::FOLLOW => i18n!(ctx.1, "{0} is subscribed to you."; &name),
notification_kind::LIKE => i18n!(ctx.1, "{0} liked your article."; &name),
notification_kind::MENTION => i18n!(ctx.1, "{0} mentioned you."; &name),