If running a drupal-site with several languages, how to translate the english questions coming with the module, or own english questions into the other languages of the site? is that possible?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DavidWhite’s picture

It currently is not possible; For the immediate solution, I would recommend not assigning any pre-defined questions, and instead allow each user to create their own questions (which IS possible in the module - you just have to delete the existing questions, and enable the feature to allow users to create their own questions on the Security Questions admin page).

In the future, I think it would be cool to integrate a multi-language feature into the module allowing you to separate (pre-defined) questions based on the user's language. But I don't see that coming anytime soon, unless chertzog (really) likes this suggestion and feels otherwise.

chertzog’s picture

Category: support » feature
Status: Active » Postponed

Yeah, at this time the best way to handle this would be to allow user defined questions.

I like the request, but dont have the time to invest into this feature. I dont have a lot of experience in dealing with multi-lingual sites, so if this sounds like it wont work do shoot me.

I would think that the way to achieve this, would be to add a language selector to the Question Add form and store that in the database table. Then when selecting questions for the user, it selects questions based on the language that the site is currently displayed in.

Again, i dont really have a lot of experience in multi-lingual requirements.

bavarian’s picture

thanks for your answers guys ! appreciate that immediate response !

I go for the immediate solution to let users create their own answers.

but: would it be possible to have the form-element with the drop-down list that shows "select" to automatically show "Enter your own question" if there are no predefined questions made available by the system admin? I would consider that nice ....

thanks again for a module I like !

chertzog’s picture

There is actually a patch over in #1651590: Just show question textfield if no predefined questions available that is trying to do just that. I will be reviewing it and committing it later today.

chertzog’s picture

Status: Postponed » Active

Ok, so i have been thinking about this and would appreciate some input from people that are using the module in a multi-lingual site. As stated above, i dont really have much experience with multi-lingual sites/features.

If we set a default language for each question, then on the add question form we gave the ability to select the question's language, we should be able to select the correct set of questions during registration.

Thoughts?

muriqui’s picture

Version: 7.x-1.0 » 7.x-2.x-dev

Moving outstanding feature requests to the 2.x branch.

fraweg’s picture

Hello,

+1 in this feature request! Such a feature would be really helpfull....

Best regards
Frank

Dev1.addweb’s picture

@bavarian,

Questions can be converted to multi-lingual using t() function when they are displayed. Apply following patch for it to work : security_questions.multi-lingual_questions.1655148.8.patch

Hope this helps.

Thanks!

Dev1.addweb’s picture

Status: Active » Needs review
bavarian’s picture

thank you ... i have been out of town and have not had time to look at this yet.
will do so soon and provide feedback

bavarian’s picture

need to ask how to proceed to convert questions to other languages. i am in admin/config/regional/translate/translate but a test-string i created as a question does not show up when searching/filtering

Dev1.addweb’s picture

Visit the page that contain the string. For Ex. visit page "user/register" after creating the question. This will register the string within Drupal so it can then be found using the Translate interface UI at admin/config/regional/translate/translate.

Let me know if you face any further query/concern regarding this.

Thanks!

saurabh.dhariwal’s picture

Status: Needs review » Reviewed & tested by the community
AkshayAdhav’s picture

The patch is working perfectly.

Dev1.addweb’s picture

@Chris: Would be awaiting for your commit and provide credit for this issue.