mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Changes in setup to handle egw_ prefix in lang files
This commit is contained in:
parent
b018b25a15
commit
7bbfae68c6
@ -16,6 +16,9 @@
|
|||||||
define('MAX_MESSAGE_ID_LENGTH',128);
|
define('MAX_MESSAGE_ID_LENGTH',128);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Define prefix for langfiles (historically 'phpgw_')
|
||||||
|
define('EGW_LANGFILE_PREFIX', 'egw_');
|
||||||
|
|
||||||
class setup_translation
|
class setup_translation
|
||||||
{
|
{
|
||||||
var $langarray = array();
|
var $langarray = array();
|
||||||
@ -40,10 +43,10 @@
|
|||||||
$lang = $ConfigLang;
|
$lang = $ConfigLang;
|
||||||
}
|
}
|
||||||
|
|
||||||
$fn = '.' . SEP . 'lang' . SEP . 'phpgw_' . $lang . '.lang';
|
$fn = '.' . SEP . 'lang' . SEP . EGW_LANGFILE_PREFIX . $lang . '.lang';
|
||||||
if (!file_exists($fn))
|
if (!file_exists($fn))
|
||||||
{
|
{
|
||||||
$fn = '.' . SEP . 'lang' . SEP . 'phpgw_en.lang';
|
$fn = '.' . SEP . 'lang' . SEP . EGW_LANGFILE_PREFIX .'en.lang';
|
||||||
}
|
}
|
||||||
if (file_exists($fn))
|
if (file_exists($fn))
|
||||||
{
|
{
|
||||||
@ -151,7 +154,7 @@
|
|||||||
while(($line = fgets($f)) !== false)
|
while(($line = fgets($f)) !== false)
|
||||||
{
|
{
|
||||||
list($lang,$language) = explode("\t",trim($line));
|
list($lang,$language) = explode("\t",trim($line));
|
||||||
if ($lang && ($lf = @fopen("../phpgwapi/setup/phpgw_$lang.lang",'r')))
|
if ($lang && ($lf = @fopen("../phpgwapi/setup/" . EGW_LANGFILE_PREFIX . "$lang.lang",'r')))
|
||||||
{
|
{
|
||||||
while(($line = fgets($lf)) !== false)
|
while(($line = fgets($lf)) !== false)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user