|
I encountered an issue. Could someone please help take a look: Steps to reproduce: Added a new language pack (EN_UTF8, already uploaded to the /source/i18n/ directory) in the admin panel: Templates → Language Packs → Activate. Cleared the cache: Tools → Update Cache. The language pack can be switched on the frontend, but cannot log in.
From the browser logs, I see that the page is requesting a non-existent file at this path: /static/js/lang_EN_UT8.js. Sometimes it's another file: /static/js/lang_default.js. I suspect the issue is in this section of /static/js/common.js: - var _i18n_ = 'default';
- if (typeof IN_ADMINCP == 'undefined') {
- try {
- var _i18n_ = getcookie('i18n');
- _i18n_ = !_i18n_ ? 'default' : _i18n_;
- } catch (e) {
- }
- }
- var _JSLANG_ = new Array();
- try {
- _JSLANG_ = JSON.parse(loadUserdata('i18n_' + _i18n_));
- } catch (e) {
- _JSLANG_ = new Array();
- }
- if (!_JSLANG_ || _JSLANG_['_verhash_'] != VERHASH) {
- var _script_ = document.createElement("script");
- _script_.type = "text/javascript";
- _script_.src = (typeof (JSCACHEPATH) == 'undefined' ? JSPATH : JSCACHEPATH) + 'lang_' + _i18n_ + '.js?' + VERHASH;
- document.head.appendChild(_script_);
- _script_.onload = function () {
- _JSLANG_['_verhash_'] = VERHASH;
- saveUserdata('i18n_' + _i18n_, JSON.stringify(_JSLANG_));
- };
- }
Copy Code
|