Revision 604,
765 bytes
checked in by niltonneto, 16 years ago
(diff) |
Resolve #397
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[2] | 1 | <? |
---|
| 2 | // Load the lang of the module. |
---|
| 3 | if(!$_SESSION['phpgw_info']['expressomail']['lang']) |
---|
| 4 | { |
---|
| 5 | $array_keys = array(); |
---|
[604] | 6 | $fn = 'setup/phpgw_'.$_SESSION['phpgw_info']['expressomail']['user']['preferences']['common']['lang'].'.lang'; |
---|
[2] | 7 | if (file_exists($fn)){ |
---|
| 8 | $fp = fopen($fn,'r'); |
---|
| 9 | while ($data = fgets($fp,16000)) { |
---|
| 10 | list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1)); |
---|
| 11 | $_SESSION['phpgw_info']['expressomail']['lang'][$message_id] = $content; |
---|
| 12 | } |
---|
| 13 | fclose($fp); |
---|
| 14 | } |
---|
| 15 | } |
---|
[604] | 16 | |
---|
[566] | 17 | foreach($_SESSION['phpgw_info']['expressomail']['lang'] as $key => $value) |
---|
| 18 | $script .= "array_lang['".str_replace("'","\'",strtolower($key))."'] = '".str_replace("'","\'",$value)."';\n"; |
---|
[604] | 19 | echo "<script type='text/javascript'>$script</script>"; |
---|
[566] | 20 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.