source: trunk/filemanager/inc/load_lang.php @ 2000

Revision 2000, 574 bytes checked in by amuller, 14 years ago (diff)

Ticket #597 - Implementação do módulo gerenciador de arquivos

Line 
1<?php
2        $array_keys = array();
3        $fn = $GLOBALS['phpgw_info']['flags']['currentapp'].'/setup/phpgw_'.$GLOBALS['phpgw_info']['user']['preferences']['common']['lang'].'.lang';
4        if (file_exists($fn)){
5                        $fp = fopen($fn,'r');
6                while ($data = fgets($fp,16000)){
7                        list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1));
8                        $script .= "array_lang['".str_replace("'","\'",strtolower($message_id))."'] = '".str_replace("'","\'",$content)."';\n";
9                }
10                fclose($fp);
11        }
12        echo "<script type='text/javascript'>var array_lang = new Array(); $script</script>";
13?>
Note: See TracBrowser for help on using the repository browser.