Searched hist:"26676 c9792ddd7dcb5d1204fddef0af7fc4600e1" (Results 1 – 1 of 1) sorted by relevance
| /plugin/usersettings/ |
| H A D | action.php | 26676c9792ddd7dcb5d1204fddef0af7fc4600e1 Wed Jun 03 09:48:36 UTC 2026 tracker-user <82045103+tracker-user@users.noreply.github.com> Fix per-user language not applying to JS bundle
JS strings (LANG, LANG.plugins.*) are built by lib/exe/js.php, which is a separate request that never fires ACTION_ACT_PREPROCESS — so applyUserLang() never ran for it and the JS bundle always shipped in the site-default language.
Hook JS_SCRIPT_LIST (BEFORE) to apply the preferred language before js.php builds its cache and loads JS strings. The handler also rewrites the inc/lang/<lang>/jquery.ui.datepicker.js entry in the file list, because js.php keys its output cache on md5(serialize($files)) and that datepicker path is the only language-dependent member — without rewriting it, two users with different languages collide on one cached bundle.
Shared lang-resolution logic extracted to resolvePreferredLang() so both ACTION_ACT_PREPROCESS and JS_SCRIPT_LIST handlers stay DRY.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|