From 0c09696b2ca76eb400e687896f166e0bb35208e8 Mon Sep 17 00:00:00 2001 From: wvengen Date: Mon, 4 Feb 2013 01:46:07 +0100 Subject: [PATCH] finish sessions i18n --- app/views/sessions/new.html.haml | 14 ++++++-------- config/locales/de/de.sessions.yml | 10 ++++++++++ 2 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 config/locales/de/de.sessions.yml diff --git a/app/views/sessions/new.html.haml b/app/views/sessions/new.html.haml index 13413eaa..f06db3ef 100644 --- a/app/views/sessions/new.html.haml +++ b/app/views/sessions/new.html.haml @@ -4,26 +4,24 @@ $('#nick').focus(); }); -- title "FoodSoft login" +- title t('.title') %noscript .alert.alert-error - Achtung, Cookies und Javascript müssen aktiviert sein! - = link_to "NoScript", "http://noscript.net/" - bitte abschalten. + != t '.nojs', link: link_to(t('.noscript'), "http://noscript.net/") = form_tag sessions_path, class: 'form-horizontal' do .control-group - %label(for='nick' class='control-label') Benutzerin + %label(for='nick' class='control-label')= t '.user' .controls = text_field_tag 'nick' .control-group - %label(for='password' class='control-label') Passwort + %label(for='password' class='control-label')= t '.password' .controls = password_field_tag 'password' .control-group .controls - = submit_tag "Anmelden", class: 'btn' - = link_to "Passwort vergessen?", :controller => 'login', :action => 'forgot_password' \ No newline at end of file + = submit_tag t('.login'), class: 'btn' + = link_to t('.forgot_password'), :controller => 'login', :action => 'forgot_password' diff --git a/config/locales/de/de.sessions.yml b/config/locales/de/de.sessions.yml new file mode 100644 index 00000000..1b0b1d6c --- /dev/null +++ b/config/locales/de/de.sessions.yml @@ -0,0 +1,10 @@ +de: + sessions: + new: + title: 'Foodsoft login' + nojs: 'Achtung, Cookies und Javascript müssen aktiviert sein! %{link} bitte abschalten.' + noscript: 'NoScript' + user: 'Benutzerin' + password: 'Passwort' + login: 'Anmelden' + forgot_password: 'Passwort vergessen?'