| @@ 169-173 (lines=5) @@ | ||
| 166 | } | |
| 167 | $language = empty($language) ? \XoopsLocale::getLegacyLanguage() : $language; | |
| 168 | // expanded domain to multiple categories, e.g. module:system, framework:filter, etc. | |
| 169 |         if ((empty($domain) || 'global' === $domain)) { | |
| 170 | $path = ''; | |
| 171 |         } else { | |
| 172 |             $path = (is_array($domain)) ? array_shift($domain) : "modules/{$domain}"; | |
| 173 | } | |
| 174 | $xoops = \Xoops::getInstance(); | |
| 175 |         $fullPath = $xoops->path("{$path}/language/{$language}/{$name}.php"); | |
| 176 |         if (!$ret = \XoopsLoad::loadFile($fullPath)) { | |
| @@ 193-198 (lines=6) @@ | ||
| 190 |     { | |
| 191 | $xoops = \Xoops::getInstance(); | |
| 192 | // expanded domain to multiple categories, e.g. module:system, framework:filter, etc. | |
| 193 |         if ($domain === null) { | |
| 194 | $path = ''; | |
| 195 | $domain = 'xoops'; | |
| 196 |         } else { | |
| 197 |             $path = (is_array($domain)) ? array_shift($domain) : "modules/{$domain}"; | |
| 198 | } | |
| 199 |         if (null !== $forcedLocale) { | |
| 200 |             try { | |
| 201 | Data::setDefaultLocale($locale); | |
| @@ 1058-1062 (lines=5) @@ | ||
| 1055 | ||
| 1056 | $language = empty($language) ? XoopsLocale::getLegacyLanguage() : $language; | |
| 1057 | // expanded domain to multiple categories, e.g. module:Fsystem, framework:filter, etc. | |
| 1058 |         if ((empty($domain) || 'global' === $domain)) { | |
| 1059 | $path = ''; | |
| 1060 |         } else { | |
| 1061 |             $path = (is_array($domain)) ? array_shift($domain) . '/' : "modules/{$domain}/"; | |
| 1062 | } | |
| 1063 | $path .= 'language'; | |
| 1064 | ||
| 1065 |         if (!XoopsLoad::fileExists($file = $this->path("{$path}/{$language}/{$name}.php"))) { | |