Translate Rust strings

This commit is contained in:
Bat
2018-06-17 17:06:47 +01:00
parent ab841f826d
commit 152eafc06f
7 changed files with 104 additions and 6 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
use gettextrs::gettext;
use rocket::{request::Form, response::Redirect};
use rocket_contrib::{Json, Template};
use serde_json;
@@ -38,7 +39,7 @@ fn index(conn: DbConn, user: Option<User>) -> Template {
}
None => {
Template::render("errors/500", json!({
"error_message": "You need to configure your instance before using it."
"error_message": gettext("You need to configure your instance before using it.".to_string())
}))
}
}