Changeset 1853

Show
Ignore:
Timestamp:
06/01/07 19:37:00 (1 year ago)
Author:
antoine
Message:

Change to gettext

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternd/trunk/spike/ui/app/controllers/user_controller.rb

    r1846 r1853  
    11class UserController < ApplicationController 
    22        def login 
    3                 @page_title = L_BASE[:user_login_page_title] 
     3                @page_title = _('user_login_page_title')% {:SERVER_NAME => SERVER_NAME} 
    44        end 
    55end 
  • alternd/trunk/spike/ui/app/views/user/login.rhtml

    r1846 r1853  
    11<% if session[:test_xhtml] %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
    22        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
    3 <html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="<%= LANG %>"> 
     3<html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="<%= session[:lang] %>"> 
    44<% else %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    55        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= LANG %>" lang="<%= LANG %>"><% end %> 
     6<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= session[:lang] %>" lang="<%= session[:lang] %>"><% end %> 
    77<head> 
    88        <title><%= @page_title %></title> 
     
    1212        <h1><%= @page_title %></h1> 
    1313        <form action="login_submit" method="post" accept-charset="utf-8"><fieldset> 
    14                 <p id="p_login_nom"><label for="login_nom"><%= @langs[:user_login_nom] %>:</label> 
     14                <p id="p_login_nom"><label for="login_nom"><%= _('user_login_nom') %>:</label> 
    1515                        <input type="text" name="login[nom]" value="" id="login_nom" /> 
    1616                </p> 
    17                 <p id="p_login_password"><label for="login_password"><%= @langs[:user_login_password] %>:</label> 
     17                <p id="p_login_password"><label for="login_password"><%= _('user_login_password') %>:</label> 
    1818                        <input type="password" name="login[password]" value="" id="login_password" /> 
    1919                </p> 
    20                 <p id="p_login_session"><label for="login_session"><%= @langs[:user_login_session] %>:</label> 
     20                <p id="p_login_session"><label for="login_session"><%= _('user_login_session') %>:</label> 
    2121                        <input type="checkbox" name="login[session]" value="" id="login_session" /> 
    2222                </p> 
    23                 <input type="submit" value="<%= @langs[:user_login_submit] %>" id="connexion"/> 
     23                <input type="submit" value="<%= _('user_login_submit') %>" id="connexion"/> 
    2424        </fieldset></form> 
    2525</body>