mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
fixed creating of new translations / give [Write] button file not yet existing (permissions given)
This commit is contained in:
parent
78b40243b7
commit
e1ef462312
@ -339,10 +339,6 @@ class solangfile
|
|||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$fn = lang('no file');
|
|
||||||
}
|
|
||||||
if ($target)
|
if ($target)
|
||||||
{
|
{
|
||||||
$this->tgt_file = $fn;
|
$this->tgt_file = $fn;
|
||||||
|
@ -447,15 +447,16 @@ class translation
|
|||||||
$cur_appfile = $langprefix . $app . SEP . 'setup' . SEP . self::LANGFILE_PREFIX . $langsuffix;
|
$cur_appfile = $langprefix . $app . SEP . 'setup' . SEP . self::LANGFILE_PREFIX . $langsuffix;
|
||||||
$old_appfile = $langprefix . $app . SEP . 'setup' . SEP . self::OLD_LANGFILE_PREFIX . $langsuffix;
|
$old_appfile = $langprefix . $app . SEP . 'setup' . SEP . self::OLD_LANGFILE_PREFIX . $langsuffix;
|
||||||
// Note there's no chance for 'lang/phpgw_' files
|
// Note there's no chance for 'lang/phpgw_' files
|
||||||
|
$appfile = $new_appfile; // set as default
|
||||||
if (file_exists($new_appfile))
|
if (file_exists($new_appfile))
|
||||||
{
|
{
|
||||||
$appfile=$new_appfile;
|
// nothing to do, already default
|
||||||
}
|
}
|
||||||
elseif (file_exists($cur_appfile))
|
elseif (file_exists($cur_appfile))
|
||||||
{
|
{
|
||||||
$appfile=$cur_appfile;
|
$appfile=$cur_appfile;
|
||||||
}
|
}
|
||||||
else
|
elseif (file_exists($old_appfile))
|
||||||
{
|
{
|
||||||
$appfile=$old_appfile;
|
$appfile=$old_appfile;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user