Community AlphaAlpha MUADMINS
RUРусский
Войти
На MuADMINSConfig ScannerЗагрузите zip своих файлов: рейты, дропы, споты, лимитыОткрытьНа MuADMINSПрисоединяйтесь к нам в DiscordПросите помощи, показывайте свои проекты и общайтесь о MU с другими владельцами серверов.Открыть
← Все решения

WebEngine CMS: official plugins always show the default language, not the language the visitor picked

✓ Подтверждено в issue

Инструмент: WebEngine CMS 1.2.x

  1. The official plugins' loader.php loads languages/ + config('language_default', true) + /language.php, so the visitor's choice is ignored.
  2. In the plugin's loader.php take the session language first: $language = isset($_SESSION['language_display']) ? $_SESSION['language_display'] : config('language_default', true);
  3. Load languages/' . $language . '/language.php with that value, keeping the default language as the fallback.
  4. When you install a plugin, upload the contents of its __upload folder to the site root, not the folder itself, or the admin panel reports that plugin files are missing.

Человек, открывший issue, подтвердил, что это исправило проблему.

Оригинальный текст (английский)

“I'll close this one since the initial problem is solved.”

В issue, 2024-12-27 (дословно)
Это помогло?

Всё ещё не получается? Поиск в MuGPS Спросить Помощника MU

MuADMINS Community Alpha: бесплатно, создаётся сообществом, в активной разработке.