English source strings corrected (#510)
Requires .po/.pot files to be rebuilt This resolves #508
This commit is contained in:
committed by
Baptiste Gelez
parent
a674df3a77
commit
2d12524cd1
+1
-1
@@ -68,7 +68,7 @@ pub fn new_auth(i18n: I18n) -> Flash<Redirect> {
|
||||
utils::requires_login(
|
||||
&i18n!(
|
||||
i18n.catalog,
|
||||
"You need to be logged in order to create a new blog"
|
||||
"To create a new blog, you need to be logged in"
|
||||
),
|
||||
uri!(new),
|
||||
)
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ pub fn create_auth(blog: String, slug: String, i18n: I18n) -> Flash<Redirect> {
|
||||
utils::requires_login(
|
||||
&i18n!(
|
||||
i18n.catalog,
|
||||
"You need to be logged in order to like a post"
|
||||
"To like a post, you need to be logged in"
|
||||
),
|
||||
uri!(create: blog = blog, slug = slug),
|
||||
)
|
||||
|
||||
@@ -27,7 +27,7 @@ pub fn notifications_auth(i18n: I18n, page: Option<Page>) -> Flash<Redirect> {
|
||||
utils::requires_login(
|
||||
&i18n!(
|
||||
i18n.catalog,
|
||||
"You need to be logged in order to see your notifications"
|
||||
"To see your notifications, you need to be logged in"
|
||||
),
|
||||
uri!(notifications: page = page),
|
||||
)
|
||||
|
||||
+1
-1
@@ -118,7 +118,7 @@ pub fn new_auth(blog: String, i18n: I18n) -> Flash<Redirect> {
|
||||
utils::requires_login(
|
||||
&i18n!(
|
||||
i18n.catalog,
|
||||
"You need to be logged in order to write a new post"
|
||||
"To write a new post, you need to be logged in"
|
||||
),
|
||||
uri!(new: blog = blog),
|
||||
)
|
||||
|
||||
@@ -45,7 +45,7 @@ pub fn create_auth(blog: String, slug: String, i18n: I18n) -> Flash<Redirect> {
|
||||
utils::requires_login(
|
||||
&i18n!(
|
||||
i18n.catalog,
|
||||
"You need to be logged in order to reshare a post"
|
||||
"To reshare a post, you need to be logged in"
|
||||
),
|
||||
uri!(create: blog = blog, slug = slug),
|
||||
)
|
||||
|
||||
@@ -35,7 +35,7 @@ pub fn new(user: Option<User>, conn: DbConn, m: Option<String>, intl: I18n) -> R
|
||||
|
||||
#[derive(Default, FromForm, Validate)]
|
||||
pub struct LoginForm {
|
||||
#[validate(length(min = "1", message = "We need an email or a username to identify you"))]
|
||||
#[validate(length(min = "1", message = "We need an email, or a username to identify you"))]
|
||||
pub email_or_name: String,
|
||||
#[validate(length(min = "1", message = "Your password can't be empty"))]
|
||||
pub password: String,
|
||||
@@ -73,7 +73,7 @@ pub fn create(
|
||||
.expect("No user is registered");
|
||||
|
||||
let mut err = ValidationError::new("invalid_login");
|
||||
err.message = Some(Cow::from("Invalid username or password"));
|
||||
err.message = Some(Cow::from("Invalid username, or password"));
|
||||
errors.add("email_or_name", err);
|
||||
String::new()
|
||||
};
|
||||
@@ -183,7 +183,7 @@ pub fn password_reset_request(
|
||||
) {
|
||||
if let Some(ref mut mail) = *mail.lock().unwrap() {
|
||||
mail.send(message.into())
|
||||
.map_err(|_| eprintln!("Couldn't send password reset mail"))
|
||||
.map_err(|_| eprintln!("Couldn't send password reset email"))
|
||||
.ok();
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -146,7 +146,7 @@ pub fn dashboard_auth(i18n: I18n) -> Flash<Redirect> {
|
||||
utils::requires_login(
|
||||
&i18n!(
|
||||
i18n.catalog,
|
||||
"You need to be logged in order to access your dashboard"
|
||||
"To access your dashboard, you need to be logged in"
|
||||
),
|
||||
uri!(dashboard),
|
||||
)
|
||||
@@ -185,7 +185,7 @@ pub fn follow_auth(name: String, i18n: I18n) -> Flash<Redirect> {
|
||||
utils::requires_login(
|
||||
&i18n!(
|
||||
i18n.catalog,
|
||||
"You need to be logged in order to subscribe to someone"
|
||||
"To subscribe to someone, you need to be logged in"
|
||||
),
|
||||
uri!(follow: name = name),
|
||||
)
|
||||
@@ -285,7 +285,7 @@ pub fn edit_auth(name: String, i18n: I18n) -> Flash<Redirect> {
|
||||
utils::requires_login(
|
||||
&i18n!(
|
||||
i18n.catalog,
|
||||
"You need to be logged in order to edit your profile"
|
||||
"To edit your profile, you need to be logged in"
|
||||
),
|
||||
uri!(edit: name = name),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user