Multi language registration terms and conditions

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
dandpclements
Registered User
Posts: 2
Joined: Sat Aug 07, 2010 9:42 am

Multi language registration terms and conditions

Post by dandpclements »

We have a multi language website from which users can request to register on the form (phpBB3). Is there any way I can get them to see the terms and conditions in their own language depending on the language they are using on the website - ideally by calling different url's. At present the link always displays terms and conditons in english (the forum default language)
narqelion
I've Been Banned!
Posts: 7235
Joined: Sat Dec 13, 2008 5:00 pm

Re: Multi language registration terms and conditions

Post by narqelion »

I have no firsthand knowledge of the MOD nor do I know if it will address your need but you can check it out yourself and see if this will do what you want. :)
User avatar
AmigoJack
Registered User
Posts: 6127
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン

Re: Multi language registration terms and conditions

Post by AmigoJack »

I understand what you want and there is no MOD for this available (the one suggested above won't help - such a combobox is already available to the registration process if you have more than one language pack installed).

The most quick hack would be to open /includes/ucp/ucp_register.php, search for

Code: Select all

		if ($change_lang || $user_lang != $config['default_lang'])
and to add before

Code: Select all

		if( !$change_lang ) $change_lang= substr( $_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2 );
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
narqelion
I've Been Banned!
Posts: 7235
Joined: Sat Dec 13, 2008 5:00 pm

Re: Multi language registration terms and conditions

Post by narqelion »

AmigoJack wrote:I understand what you want and there is no MOD for this available
Actually there is a MOD for automatic browser language detection, it has been around for quite some time. Whether it is the best solution depends on what language packs you are using on your board. It works quite well for unique languages but when you start using multiple localized versions of the same base language things get a bit hairy. ;)
AmigoJack wrote:(the one suggested above won't help - such a combobox is already available to the registration process if you have more than one language pack installed).
The MOD I linked to will actually allow a guest registering to choose to view the registration page (terms & conditions) or any visible page in any language available on the board via a drop-down menu in the overall header. It's not automatic detection and requires a single mouse action on the part of the visitor but it does take any potential browser language detection errors out of the mix. It removes the extra steps of having to select Agree to the default language TOS, proceed to the registration form, select the appropriate language from the board languages available and then be redirected back to the TOS in the chosen language and then again back to the registration form. Both MOD's should work for you, which one will work best will depend on what languages you have available on your board. :)
User avatar
AmigoJack
Registered User
Posts: 6127
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン

Re: Multi language registration terms and conditions

Post by AmigoJack »

narqelion wrote:It removes the extra steps of having to select Agree to the default language TOS, proceed to the registration form, select the appropriate language from the board languages available and then be redirected back to the TOS in the chosen language and then again back to the registration form.
In 3.0.7-PL1 you have the combobox on the first (TOS) page aswell. ;)
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28

Return to “[3.0.x] Support Forum”