Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-8639 now.

Always using English questions for QA captcha (fix completed in vcs)

If you set the default language of the board to Arabic a guest will still only see English questions.

This is caused by the line:
Code: Select all
$this->question_lang $user->data['user_lang']; 

It's grabbing the language from the profile of Anonymous, not the board's default language.
Also on the registration terms page, after choosing Arabic, the $user->data['user_lang'] isn't set to Arabic but stays English.

For the posting page (captcha) this could be easily solved by using $config['default_lang'] instead of $user->data['user_lang'].
But for the registration page you can now choose your language first... so then the user_lang should be overwritten I think.

Comments / History

Changed ticket severity from "Uncategorised/normal" to "Severe"

Action performed by Kellanved (Former Team Member) on Aug 30th 2009, 05:48

Changed ticket severity from "Severe" to "Uncategorised/normal"

Action performed by Kellanved (Former Team Member) on Aug 30th 2009, 05:49

Changed ticket status from "New" to "Not a bug"

Action performed by Kellanved (Former Team Member) on Aug 30th 2009, 05:51

Posted by Kellanved (Former Team Member) on Aug 30th 2009, 05:51

User_lang is correct. The question is whether to change the setup requirement to use the anon language, but that would open another can of worms.

Posted by Derky (MOD Team Member) on Aug 30th 2009, 08:00

Well... the different languages for the QA questions are not working now (only display english) so there is a bug. (somewhere)

Posted by ToonArmy (Development Team Member) on Aug 30th 2009, 10:04

Works for me.

Changed ticket status from "Not a bug" to "New"

Action performed by Kellanved (Former Team Member) on Sep 3rd 2009, 19:55

Linked ticket with changeset: r10095

Action performed by Kellanved (Former Team Member) on Sep 3rd 2009, 20:06

Changed ticket status from "New" to "Fix completed in SVN"

Action performed by Kellanved (Former Team Member) on Sep 3rd 2009, 20:07

Posted by Derky (MOD Team Member) on Sep 21st 2009, 09:50

This is not totally fixed when you don't change the language during registration.

To reproduce this:
- Install a secondairy language and set it as the board's default
- Create 2 Q&A questions, one in English and one in the secondairy language.
- Go to the registration page and click accept terms (do not change language anywhere), then you will get an English Q&A question and the rest of the page in nicely in the secondairy language.

Linked ticket with changeset: r10173

Action performed by Kellanved (Former Team Member) on Sep 21st 2009, 11:36

Ticket details

Related SVN changesets