finish sessions i18n

This commit is contained in:
wvengen 2013-02-04 01:46:07 +01:00
parent 2b11549d33
commit 0c09696b2c
2 changed files with 16 additions and 8 deletions

View file

@ -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'
= submit_tag t('.login'), class: 'btn'
= link_to t('.forgot_password'), :controller => 'login', :action => 'forgot_password'

View file

@ -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?'