Ok i looked a little into the multilingual support.. as I was not satisfied with the solution above. I am using the hack
https://vborg.vbsupport.ru/showthread.php?t=98904 by JoergZ for translating customfields and i thought that i could use a few lines of code here. (actually it is a code snippet I posted in that thread to adapt his hack)
The basic idea is: You only need the question translated, you can define the answers in different languages.. so you give the answers in all installed languages.
3 steps to make it work multilanguage with phrases.
Step one:
Modify the product xml:
find:
PHP Code:
$nospamquestion = $qanda[0];
below add:
PHP Code:
// ########### Lang hack ---start ########
$questionphrase = '';
$testforphrase = substr(trim($nospamquestion), 0, 1);
if ($testforphrase == '$')
{
$questionphrase = substr(trim($nospamquestion), 1);
$nospamquestion = $vbphrase[$questionphrase];
}
// ########### Lang hack ---end ########
Now reinstall the product.xml (with overwrite of course)
Step two:
Go to your phrase manager in the ACP and add a new phrase:
Phrase Type: GLOBAL
Product: vBulletin
Varname: nospam_question_01
Text: How much is 2+2
Then insert the translation for all istalled languages (in my case english, german and french)
German: Wieviel ist 2+2
Fran?ais: Combien font 2+2
Now save the phrase.
Repeat for all your questions using the variables:
Varname: nospam_question_02
Varname: nospam_question_03
Varname: nospam_question_04
Varname: nospam_question_05
............. and so on
IMPORTANT!!!: Write down the question number and the question on a piece of paper !!!! (happened to me.. i didnt remember which variable number was which question)
Now comes step three:
go to your nospam settings and define the questions the following way:
(in our example: How much is 2+2)
$nospam_question_01:4:four:vier:quatre
IMPORTANT: in your nospam setting you MUST set a $ sign in front of the varname you used in the phrases
other example: in your phrases you use the varname
nospam_question_04 in your nospam settings you use
$nospam_question_04
I hope it is clear.
I tested it on 3.64 and it works for me... THANK YOU for the great hack!!
Felix
Forgot to say, that if you dont use the
$ in the nospam settings for the question, the question will appear as you entered it. (Like in the original hack)
Hope this helps someone