Ignore:
Timestamp:
05/27/09 11:27:48 (15 years ago)
Author:
amuller
Message:

Ticket #88 - Deixando lang do calendar e do expressocalendar independentes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoCalendar/inc/load_lang.php

    r632 r919  
    11<? 
    22// Load the lang of the module. 
    3         if(!$_SESSION['phpgw_info']['calendar']['lang'])  
     3        if(!$_SESSION['phpgw_info']['expressoCalendar']['lang'])  
    44        { 
    55                $array_keys = array(); 
     
    99                        while ($data = fgets($fp,16000))        { 
    1010                                list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1));                   
    11                                 $_SESSION['phpgw_info']['calendar']['lang'][$message_id] =  $content; 
     11                                $_SESSION['phpgw_info']['expressoCalendar']['lang'][$message_id] =  $content; 
    1212                        } 
    1313                        fclose($fp); 
     
    1515        } 
    1616        $script  = "array_lang = new Array();"; 
    17         foreach($_SESSION['phpgw_info']['calendar']['lang'] as $key => $value) 
     17        foreach($_SESSION['phpgw_info']['expressoCalendar']['lang'] as $key => $value) 
    1818                $script .= "array_lang['".str_replace("'","\'",strtolower($key))."'] = '".str_replace("'","\'",$value)."';\n"; 
    1919        echo $script; 
Note: See TracChangeset for help on using the changeset viewer.