summaryrefslogtreecommitdiff
path: root/inc/plugin.php
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-05-13 21:57:50 +0200
committerGerrit Uitslag <klapinklapin@gmail.com>2014-05-13 21:57:50 +0200
commit38fb1fc7a9bbb1e70f0f24352891601b2e0856d6 (patch)
tree0b82f809e35d35a3cb4b8aa325abf1323f5cf49e /inc/plugin.php
parent83014c076e261a0b6e13172a19ae684420e03e43 (diff)
downloadrpg-38fb1fc7a9bbb1e70f0f24352891601b2e0856d6.tar.gz
rpg-38fb1fc7a9bbb1e70f0f24352891601b2e0856d6.tar.bz2
extend lang file cascade, so users can override some lang strings
Fixes #692
Diffstat (limited to 'inc/plugin.php')
-rw-r--r--inc/plugin.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/plugin.php b/inc/plugin.php
index 7de4fbd74..dd374a4a4 100644
--- a/inc/plugin.php
+++ b/inc/plugin.php
@@ -124,6 +124,7 @@ class DokuWiki_Plugin {
// don't include once, in case several plugin components require the same language file
@include($path.'en/lang.php');
if ($conf['lang'] != 'en') @include($path.$conf['lang'].'/lang.php');
+ @include(DOKU_CONF.'plugin_lang/'.$this->getPluginName().'/'.$conf['lang'].'/lang.php');
$this->lang = $lang;
$this->localised = true;