Changeset 1572
- Timestamp:
- 11/03/09 11:14:50 (14 years ago)
- Location:
- trunk/expressoMail1_2/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.functions.inc.php
r1526 r1572 101 101 function getLang($key){ 102 102 if ($_SESSION['phpgw_info']['expressomail']['lang'][$key]) 103 return $_SESSION['phpgw_info']['expressomail']['lang'][$key]; 103 return $_SESSION['phpgw_info']['expressomail']['lang'][$key]; 104 else 105 return ($key . '*'); 104 106 } 105 107 -
trunk/expressoMail1_2/inc/load_lang.php
r1526 r1572 5 5 } 6 6 7 if(!$_SESSION['phpgw_info']['expressomail']['lang']) 8 { 7 9 $array_keys = array(); 8 10 $fn = 'setup/phpgw_'.$_SESSION['phpgw_info']['expressomail']['user']['preferences']['common']['lang'].'.lang'; … … 11 13 while ($data = fgets($fp,16000)){ 12 14 list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1)); 13 $ script .= "array_lang['".str_replace("'","\'",strtolower($message_id))."'] = '".str_replace("'","\'",$content)."';\n";15 $_SESSION['phpgw_info']['expressomail']['lang'][$message_id] = $content; 14 16 } 15 17 fclose($fp); 16 18 } 19 } 20 21 foreach($_SESSION['phpgw_info']['expressomail']['lang'] as $key => $value) 22 $script .= "array_lang['".str_replace("'","\'",strtolower($key))."'] = '".str_replace("'","\'",$value)."';\n"; 17 23 echo "<script type='text/javascript'>$script</script>"; 18 24 ?>
Note: See TracChangeset
for help on using the changeset viewer.