From dd6d39135e71cd4f4f22befb45da46d89d39ae33 Mon Sep 17 00:00:00 2001 From: fdb-hiroshima <35889323+fdb-hiroshima@users.noreply.github.com> Date: Thu, 24 Oct 2019 16:44:14 +0200 Subject: [PATCH] re-add empty strings in translation (#682) --- templates/search/index.rs.html | 2 +- templates/users/new.rs.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/search/index.rs.html b/templates/search/index.rs.html index 5f0463a2..4e84b17b 100644 --- a/templates/search/index.rs.html +++ b/templates/search/index.rs.html @@ -26,7 +26,7 @@ .input_type("date") .set_prop("max", now) .html(ctx.1)) - @(Input::new("before", i18n!(ctx.1, "")) + @(Input::new("before", i18n!(ctx.1, "To this date")) .input_type("date") .set_prop("max", now) .html(ctx.1)) diff --git a/templates/users/new.rs.html b/templates/users/new.rs.html index b75168da..bd38d622 100644 --- a/templates/users/new.rs.html +++ b/templates/users/new.rs.html @@ -15,23 +15,23 @@

@errs[0].message.as_ref().unwrap_or(&Cow::from("Unknown error"))

} - @(Input::new("username", i18n!(ctx.1, "")) + @(Input::new("username", i18n!(ctx.1, "Username")) .default(&form.username) .error(&errors) .set_prop("minlength", 1) .html(ctx.1)) - @(Input::new("email", i18n!(ctx.1, "")) + @(Input::new("email", i18n!(ctx.1, "Email")) .default(&form.email) .error(&errors) .set_prop("minlength", 1) .html(ctx.1)) - @(Input::new("password", i18n!(ctx.1, "")) + @(Input::new("password", i18n!(ctx.1, "Password")) .default(&form.password) .error(&errors) .set_prop("minlength", 8) .input_type("password") .html(ctx.1)) - @(Input::new("password_confirmation", i18n!(ctx.1, "")) + @(Input::new("password_confirmation", i18n!(ctx.1, "Password confirmation")) .default(&form.password_confirmation) .error(&errors) .set_prop("minlength", 8)