This.
What's the reasoning/purpose of not allowing users to use their preferred language for the language strings? Surely that can't affect your working on the board?thegioiluatsu wrote: ↑Mon Aug 26, 2024 2:30 pm Thank you @Mannix_ and @danieltj. I currently have 2 languages and I still want to keep both of them. At the same time, I want members to only use the forum's default language and not be able to set the language themselves in UCP. Please give me new ideas. Thank you!
What are the two languages you have installed out of curiosity? I'm going to assume that one of them is British English (the default).thegioiluatsu wrote: ↑Mon Aug 26, 2024 2:30 pm Thank you @Mannix_ and @danieltj. I currently have 2 languages and I still want to keep both of them. At the same time, I want members to only use the forum's default language and not be able to set the language themselves in UCP. Please give me new ideas. Thank you!
I think this is to prevent users from using British English (phpBB's default language) and only being able to use the default language of the board (Vietnamese).warmweer wrote: ↑Mon Aug 26, 2024 4:24 pmWhat's the reasoning/purpose of not allowing users to use their preferred language for the language strings? Surely that can't affect your working on the board?thegioiluatsu wrote: ↑Mon Aug 26, 2024 2:30 pm Thank you @Mannix_ and @danieltj. I currently have 2 languages and I still want to keep both of them. At the same time, I want members to only use the forum's default language and not be able to set the language themselves in UCP. Please give me new ideas. Thank you!
OK, but the board's default language can be set to Vietnamese, so all new users will have Vietnamese as language unless they explicitly (on purpose) select British English as language (the first page of registration uses the default language, but prospective members can select another language (if it's installed , which should always be the case for British English).
Code: Select all
UPDATE phpbb_users
SET user_lang = 'en'
WHERE user_type <> 2;
Code: Select all
UPDATE phpbbx7users SET user_lang = replace(user_lang, 'en', 'vi');
Code: Select all
UPDATE phpbbx7users
SET user_lang = 'vi'
WHERE user_type <> 2;
Can you give me more detailed instructions on this issue?From there you can add a restriction (maybe add an if U_ACP) statement to UCP to allow only admins to change their language.
Code: Select all
<!-- IF S_MORE_LANGUAGES -->
<dl>
<dt><label for="{{ LANG_OPTIONS.id }}">{L_BOARD_LANGUAGE}{L_COLON}</label></dt>
<dd>
{{ FormsSelect(LANG_OPTIONS) }}
</dd>
</dl>
<!-- ENDIF -->
Code: Select all
<!-- IF U_ACP or U_MCP --><!-- IF S_MORE_LANGUAGES -->
<dl>
<dt><label for="{{ LANG_OPTIONS.id }}">{L_BOARD_LANGUAGE}{L_COLON}</label></dt>
<dd>
{{ FormsSelect(LANG_OPTIONS) }}
</dd>
</dl>
<!-- ENDIF --><!-- ENDIF -->