source: branches/2.2/reports1_0/js/modal/inc/load_lang.php @ 3471

Revision 3471, 694 bytes checked in by eduardoalex, 9 years ago (diff)

Ticket #1216 - Incorporacao do modulo de relatorios ao ambiente.

Line 
1<?
2/*
3        $fn = './setup/phpgw_'.$_SESSION['phpgw_info']['expressoAdmin']['user']['preferences']['common']['lang'].'.lang';
4       
5        if (file_exists($fn))
6        {
7                $lang = array();
8               
9                $fp = fopen($fn,'r');
10                while ($data = fgets($fp,16000))
11                {
12                        list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1));                 
13                        $lang[str_replace(" ", "_", (strtolower($message_id)) )] = $content;
14                }
15                fclose($fp);
16               
17                echo serialize($lang);
18        }               
19        exit;
20*/
21
22        $lang = array();
23        foreach($_SESSION['phpgw_info']['expressoAdmin']['lang'] as $message_id=>$content)
24        {
25                $lang[str_replace(" ", "_", (strtolower($message_id)) )] = $content;
26        }
27        echo serialize($lang);
28        exit;
29?>
Note: See TracBrowser for help on using the repository browser.