Hi.
Just wanna ask: how to change language for guests, like it maded with styles:
/forum/index.php?style=x
are there some mod to change language by typing
/forum/index.php?lang=xx
Quick Language Switch
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Re: Quick Language Switch
OPEN includes/sessions.php
FIND:
BEFORE, ADD:
FIND:
Code: Select all
// We include common language file here to not load it every time a custom language file is included
Code: Select all
$lang = request_var('lang', '', false, true);
if (file_exists($phpbb_root_path . 'language/' . $lang . "/common.$phpEx"))
{
$this->lang_name = $lang;
$this->lang_path = $phpbb_root_path . 'language/' . $this->lang_name . '/';
$cookie_expire = $this->time_now + (($config['max_autologin_time']) ? 86400 * (int) $config['max_autologin_time'] : 31536000);
$this->set_cookie('lang', $lang, $cookie_expire);
unset($cookie_expire);
}
phpBB3.pl - user-friendly Polish phpBB3 support
Re: Quick Language Switch
Huge thanks!!
P.S.
How to save language on every page when you surfing the board?
P.S.
How to save language on every page when you surfing the board?