diff options
author | Esther Brunner <esther@kaffeehaus.ch> | 2006-03-22 15:05:25 +0100 |
---|---|---|
committer | Esther Brunner <esther@kaffeehaus.ch> | 2006-03-22 15:05:25 +0100 |
commit | 4a778400790148873f7f17dd7df42ca018b60e36 (patch) | |
tree | 24e8d14fec1d14e4e9602ca7b948b3cbca065da9 /lib/plugins/config/admin.php | |
parent | 78d4e784c199ffdd0540a1fc96b6b41ff2c8e0ec (diff) | |
download | rpg-4a778400790148873f7f17dd7df42ca018b60e36.tar.gz rpg-4a778400790148873f7f17dd7df42ca018b60e36.tar.bz2 |
changes to config plugin needed for template and plugin configuration
darcs-hash:20060322140525-283c4-54953a1954beba0e78c896610b33a6f3c953cbb6.gz
Diffstat (limited to 'lib/plugins/config/admin.php')
-rw-r--r-- | lib/plugins/config/admin.php | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/lib/plugins/config/admin.php b/lib/plugins/config/admin.php index 05e4a8029..5b44dece5 100644 --- a/lib/plugins/config/admin.php +++ b/lib/plugins/config/admin.php @@ -184,14 +184,12 @@ class admin_plugin_config extends DokuWiki_Admin_Plugin { } - function _setup_localised_plugin_prompts() { + function _setup_localised_plugintpl_prompts() { global $conf; $langfile = '/lang/'.$conf[lang].'/settings.php'; $enlangfile = '/lang/en/settings.php'; - $lang = array(); - if ($dh = opendir(DOKU_PLUGIN)) { while (false !== ($plugin = readdir($dh))) { if ($plugin == '.' || $plugin == '..' || $plugin == 'tmp' || $plugin == 'config') continue; @@ -208,7 +206,19 @@ class admin_plugin_config extends DokuWiki_Admin_Plugin { } closedir($dh); } - + + // the same for the active template + $tpl = $conf['template']; + + if (@file_exists(DOKU_TPLINC.$enlangfile)){ + $lang = array(); + @include(DOKU_TPLINC.$enlangfile); + if ($conf['lang'] != 'en') @include(DOKU_TPLINC.$langfile); + foreach ($lang as $key => $value){ + $this->lang['tpl'.CM_KEYMARKER.$tpl.CM_KEYMARKER.$key] = $value; + } + } + return true; } |