Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#8 | security_questions.multi-lingual_questions.1655148.8.patch | 950 bytes | Dev1.addweb |
Comments
Comment #1
DavidWhite CreditAttribution: DavidWhite commentedIt 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.
Comment #2
chertzogYeah, 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.
Comment #3
bavarian CreditAttribution: bavarian commentedthanks 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 !
Comment #4
chertzogThere 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.
Comment #5
chertzogOk, 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?
Comment #6
muriqui CreditAttribution: muriqui commentedMoving outstanding feature requests to the 2.x branch.
Comment #7
fraweg CreditAttribution: fraweg commentedHello,
+1 in this feature request! Such a feature would be really helpfull....
Best regards
Frank
Comment #8
Dev1.addweb CreditAttribution: Dev1.addweb at AddWeb Solution Pvt. Ltd. commented@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!
Comment #9
Dev1.addweb CreditAttribution: Dev1.addweb at AddWeb Solution Pvt. Ltd. commentedComment #10
bavarian CreditAttribution: bavarian commentedthank you ... i have been out of town and have not had time to look at this yet.
will do so soon and provide feedback
Comment #11
bavarian CreditAttribution: bavarian commentedneed 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
Comment #12
Dev1.addweb CreditAttribution: Dev1.addweb at AddWeb Solution Pvt. Ltd. commentedVisit 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!
Comment #13
saurabh.dhariwal CreditAttribution: saurabh.dhariwal at AddWeb Solution Pvt. Ltd. commentedComment #14
AkshayAdhavThe patch is working perfectly.
Comment #15
Dev1.addweb CreditAttribution: Dev1.addweb at AddWeb Solution Pvt. Ltd. commented@Chris: Would be awaiting for your commit and provide credit for this issue.