Changeset 1118


Ignore:
Timestamp:
07/14/09 10:57:52 (15 years ago)
Author:
amuller
Message:

Ticket #574 - Correção da página de ajuda no login usando lang

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/login.php

    r1117 r1118  
    105105 
    106106        $tmpl->set_var('template',$GLOBALS['phpgw_info']['login_template_set']); 
     107        $tmpl->set_var('lang',$_GET['lang']?$_GET['lang']:preg_replace("/\,.*/","",$GLOBALS['_SERVER']['HTTP_ACCEPT_LANGUAGE'])); 
     108 
    107109        if (count($GLOBALS['phpgw_info']['server']['login_logo_file']) > 0) 
    108110                $tmpl->set_var('logo_config',$GLOBALS['phpgw_info']['server']['login_logo_file']); 
  • trunk/phpgwapi/templates/azul/help.php

    r1117 r1118  
    1515        $GLOBALS['phpgw']->translation->init(); 
    1616        $GLOBALS['phpgw']->translation->add_app('loginhelp'); 
    17  
    18         if(lang('loginhelp_message') == 'loginhelp_message*') 
    19         { 
    20                 $GLOBALS['phpgw']->translation->add_app('loginhelp','en'); 
    21         } 
     17        $GLOBALS['phpgw']->translation->add_app('loginhelp',$_GET['lang']); 
    2218        if(lang('loginhelp_message') != 'loginhelp_message*') 
    2319        { 
  • trunk/phpgwapi/templates/azul/help.tpl

    r1117 r1118  
    1111<TITLE>{website_title} - {lang_login}</TITLE> 
    1212<BODY> 
    13 <div id="caixa_login"> 
    14         <div id="reflexo">{login_help} 
    15                 <div id="rodape_login"> 
    16                 </div> 
    17         </div> 
     13<div id="conteudo"> 
     14{login_help} 
    1815</div> 
    1916</BODY> 
  • trunk/phpgwapi/templates/azul/login.tpl

    r1117 r1118  
    8383          </div> 
    8484          <div id="rodape_login"> 
    85             <div class="ajuda"><a target="help" href="./phpgwapi/templates/{template}/help.php">Ajuda</a></div> 
     85            <div class="ajuda"><a target="help" href="./phpgwapi/templates/{template}/help.php?lang={lang}">Ajuda</a></div> 
    8686          </div> 
    8787        </div> 
Note: See TracChangeset for help on using the changeset viewer.