add home app for loading all langs

This commit is contained in:
Miles Lott 2002-05-21 03:03:22 +00:00
parent 5dc37bbc0d
commit 66b702e1f7

View File

@ -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))