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:
+2
-2
@@ -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
@@ -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.")
|
||||
)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user