diff options
author | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-05-13 21:57:50 +0200 |
---|---|---|
committer | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-05-13 21:57:50 +0200 |
commit | 38fb1fc7a9bbb1e70f0f24352891601b2e0856d6 (patch) | |
tree | 0b82f809e35d35a3cb4b8aa325abf1323f5cf49e /inc/init.php | |
parent | 83014c076e261a0b6e13172a19ae684420e03e43 (diff) | |
download | rpg-38fb1fc7a9bbb1e70f0f24352891601b2e0856d6.tar.gz rpg-38fb1fc7a9bbb1e70f0f24352891601b2e0856d6.tar.bz2 |
extend lang file cascade, so users can override some lang strings
Fixes #692
Diffstat (limited to 'inc/init.php')
-rw-r--r-- | inc/init.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/init.php b/inc/init.php index 4ff239787..c7f9a406d 100644 --- a/inc/init.php +++ b/inc/init.php @@ -259,6 +259,11 @@ function init_paths(){ $conf['media_changelog'] = $conf['metadir'].'/_media.changes'; } +/** + * Load the language strings + * + * @param string $langCode language code, as passed by event handler + */ function init_lang($langCode) { //prepare language array global $lang; @@ -271,6 +276,9 @@ function init_lang($langCode) { require(DOKU_INC."inc/lang/$langCode/lang.php"); } } + if (file_exists(DOKU_CONF."lang/$langCode/lang.php")) { + require(DOKU_CONF."lang/$langCode/lang.php"); + } } /** |