diff options
Diffstat (limited to 'extensions/FunnyQuestion/FunnyQuestion.i18n.php')
-rw-r--r-- | extensions/FunnyQuestion/FunnyQuestion.i18n.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/extensions/FunnyQuestion/FunnyQuestion.i18n.php b/extensions/FunnyQuestion/FunnyQuestion.i18n.php new file mode 100644 index 00000000..a8b31e3d --- /dev/null +++ b/extensions/FunnyQuestion/FunnyQuestion.i18n.php @@ -0,0 +1,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; + } + } +} + +?> + |