mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 09:28:29 +01:00
Patch to migrate lang files from setup/egw_*.lang to lang/egw_*.lang
This commit is contained in:
parent
697cc4f310
commit
f092da71fd
@ -292,8 +292,8 @@ class solangfile
|
|||||||
define('SEP',filesystem_separator());
|
define('SEP',filesystem_separator());
|
||||||
|
|
||||||
$langarray = array();
|
$langarray = array();
|
||||||
$fd = EGW_SERVER_ROOT . SEP . $app . SEP . ($app == 'setup' ? 'lang' : 'setup');
|
$fn = translation::get_lang_file($app,$userlang);
|
||||||
$fn = $fd . SEP . translation::LANGFILE_PREFIX . $userlang . '.lang';
|
$fd = dirname($fn);
|
||||||
|
|
||||||
if (@is_writeable($fn) || is_writeable($fd))
|
if (@is_writeable($fn) || is_writeable($fd))
|
||||||
{
|
{
|
||||||
@ -364,7 +364,7 @@ class solangfile
|
|||||||
$from = translation::charset();
|
$from = translation::charset();
|
||||||
//echo "<p>solangfile::write_file('$app_name',,'$userlang') converting from '$from' to charset('$userlang')='$to'</p>\n";
|
//echo "<p>solangfile::write_file('$app_name',,'$userlang') converting from '$from' to charset('$userlang')='$to'</p>\n";
|
||||||
|
|
||||||
$fn = EGW_SERVER_ROOT . SEP . $app_name . SEP . ($app_name == 'setup' ? 'lang' : 'setup') . SEP . translation::LANGFILE_PREFIX . $userlang . '.lang';
|
$fn = EGW_SERVER_ROOT . SEP . $app_name . SEP . 'lang' . SEP . translation::LANGFILE_PREFIX . $userlang . '.lang';
|
||||||
if (file_exists($fn))
|
if (file_exists($fn))
|
||||||
{
|
{
|
||||||
$backup = $fn . '.old';
|
$backup = $fn . '.old';
|
||||||
|
Loading…
Reference in New Issue
Block a user