blob: 1bd830e007d5d25cbffa9a0d12196962e9aec050 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
global $wgFunnyQuestions;
$messages = array();
$messages['en'] = array(
'question-label' => 'Your answer:',
'wrong-answer' => 'Sorry, your answer was wrong. Try again!'
);
$messages['de'] = array(
'question-label' => 'Deine Antwort:',
'wrong-answer' => 'Deine Antwort war leider falsch. Versuche es nocheinmal!'
);
foreach ($messages as $lang => $translations) {
if (!empty($wgFunnyQuestions[$lang])) {
foreach (array_keys($wgFunnyQuestions[$lang]) as $question) {
$messages[$lang]['question-'.sha1($question)] = $question;
}
}
}
?>
|