Open Gergely opened 7 years ago
Include language code from library Source: https://github.com/jackmoore/colorbox/tree/master/i18n
An example of v2.3.4 codebase:
function execute() { global $PHP_SELF, $oscTemplate, $lng, $languages_id; if (!isset($lng) || (isset($lng) && !is_object($lng))) { include(DIR_WS_CLASSES . 'language.php'); $lng = new language; } foreach ($lng->catalog_languages as $lkey => $lvalue) { if ($lvalue['id'] == $languages_id) { $language_code = $lkey; break; } } . . . $oscTemplate->addBlock('<script src="ext/colorbox/i18n/jquery.colorbox-' . $language_code . '.js"></script>' . "\n", $this->group);
Include language code from library Source: https://github.com/jackmoore/colorbox/tree/master/i18n
An example of v2.3.4 codebase: