load translation of the app we edit the template from

This commit is contained in:
Ralf Becker 2002-10-06 00:21:52 +00:00
parent 0bcaa1b8b3
commit bda27e3125

View File

@ -96,6 +96,10 @@
} }
} }
list($app) = explode('.',$this->etemplate->name); 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) && if ($app && $app != 'etemplate' && is_array($this->extensions) &&
(!is_array($this->extensions['**loaded**']) || !$this->extensions['**loaded**'][$app])) (!is_array($this->extensions['**loaded**']) || !$this->extensions['**loaded**'][$app]))
{ {
@ -668,6 +672,11 @@
$this->edit(); $this->edit();
return; 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); $content = $this->etemplate->as_array() + array('msg' => $msg);
$show = new etemplate('etemplate.editor.show'); $show = new etemplate('etemplate.editor.show');