mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
load translation of the app we edit the template from
This commit is contained in:
parent
0bcaa1b8b3
commit
bda27e3125
@ -96,6 +96,10 @@
|
||||
}
|
||||
}
|
||||
list($app) = explode('.',$this->etemplate->name);
|
||||
if ($app && $app != 'etemplate')
|
||||
{
|
||||
$GLOBALS['phpgw']->translation->add_app($app); // load translations for app
|
||||
}
|
||||
if ($app && $app != 'etemplate' && is_array($this->extensions) &&
|
||||
(!is_array($this->extensions['**loaded**']) || !$this->extensions['**loaded**'][$app]))
|
||||
{
|
||||
@ -668,6 +672,11 @@
|
||||
$this->edit();
|
||||
return;
|
||||
}
|
||||
list($app) = explode('.',$this->etemplate->name);
|
||||
if ($app && $app != 'etemplate')
|
||||
{
|
||||
$GLOBALS['phpgw']->translation->add_app($app); // load translations for app
|
||||
}
|
||||
$content = $this->etemplate->as_array() + array('msg' => $msg);
|
||||
|
||||
$show = new etemplate('etemplate.editor.show');
|
||||
|
Loading…
Reference in New Issue
Block a user