Lines Matching defs:lang
13 protected $lang = []; // array to hold language dependent strings, best accessed via ->getLang()
117 return ($this->lang[$id] ?? '');
135 $file = DOKU_CONF . 'plugin_lang/' . $plugin . '/' . $conf['lang'] . '/' . $id . '.' . $ext;
137 $file = DOKU_PLUGIN . $plugin . '/lang/' . $conf['lang'] . '/' . $id . '.' . $ext;
140 $file = DOKU_PLUGIN . $plugin . '/lang/en/' . $id . '.' . $ext;
153 global $conf, $config_cascade; // definitely don't invoke "global $lang"
154 $path = DOKU_PLUGIN . $this->getPluginName() . '/lang/';
156 $lang = [];
159 @include($path . 'en/lang.php');
160 foreach ($config_cascade['lang']['plugin'] as $config_file) {
161 if (file_exists($config_file . $this->getPluginName() . '/en/lang.php')) {
162 include($config_file . $this->getPluginName() . '/en/lang.php');
166 if ($conf['lang'] != 'en') {
167 @include($path . $conf['lang'] . '/lang.php');
168 foreach ($config_cascade['lang']['plugin'] as $config_file) {
169 if (file_exists($config_file . $this->getPluginName() . '/' . $conf['lang'] . '/lang.php')) {
170 include($config_file . $this->getPluginName() . '/' . $conf['lang'] . '/lang.php');
175 $this->lang = $lang;