Changeset 919 for trunk/expressoCalendar/inc
- Timestamp:
- 05/27/09 11:27:48 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoCalendar/inc/load_lang.php
r632 r919 1 1 <? 2 2 // Load the lang of the module. 3 if(!$_SESSION['phpgw_info'][' calendar']['lang'])3 if(!$_SESSION['phpgw_info']['expressoCalendar']['lang']) 4 4 { 5 5 $array_keys = array(); … … 9 9 while ($data = fgets($fp,16000)) { 10 10 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; 12 12 } 13 13 fclose($fp); … … 15 15 } 16 16 $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) 18 18 $script .= "array_lang['".str_replace("'","\'",strtolower($key))."'] = '".str_replace("'","\'",$value)."';\n"; 19 19 echo $script;
Note: See TracChangeset
for help on using the changeset viewer.