mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:49 +02:00
add home app for loading all langs
This commit is contained in:
parent
5dc37bbc0d
commit
66b702e1f7
@ -59,7 +59,7 @@
|
|||||||
$this->load_langs();
|
$this->load_langs();
|
||||||
}
|
}
|
||||||
if(!@isset($this->lang[$_key]) &&
|
if(!@isset($this->lang[$_key]) &&
|
||||||
($this->currentapp == 'admin' || $this->currentapp == 'preferences') &&
|
($this->currentapp == 'admin' || $this->currentapp == 'preferences' || $this->currentapp == 'home') &&
|
||||||
!$this->all_loaded
|
!$this->all_loaded
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@ -117,12 +117,12 @@
|
|||||||
//echo '<br>add_app(): userlang is: ' . $userlang;
|
//echo '<br>add_app(): userlang is: ' . $userlang;
|
||||||
|
|
||||||
$fn = PHPGW_SERVER_ROOT . SEP . $app . SEP . 'setup' . SEP . 'phpgw_' . $userlang . '.lang';
|
$fn = PHPGW_SERVER_ROOT . SEP . $app . SEP . 'setup' . SEP . 'phpgw_' . $userlang . '.lang';
|
||||||
if(!file_exists($fn))
|
if(!@file_exists($fn))
|
||||||
{
|
{
|
||||||
$fn = PHPGW_SERVER_ROOT . SEP . $app . SEP . 'setup' . SEP . 'phpgw_en.lang';
|
$fn = PHPGW_SERVER_ROOT . SEP . $app . SEP . 'setup' . SEP . 'phpgw_en.lang';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(file_exists($fn))
|
if(@file_exists($fn))
|
||||||
{
|
{
|
||||||
$fp = fopen($fn,'r');
|
$fp = fopen($fn,'r');
|
||||||
while($data = fgets($fp,8000))
|
while($data = fgets($fp,8000))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user