From 1af011759fbfe2003273e859440e0d3bc211e528 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 18 Sep 2010 13:57:31 +0200 Subject: Update FunnyQuestion extension * use MediaWiki hooks to add custom form entries on user creation * make extension translatable --- extensions/FunnyQuestion/FunnyQuestion.i18n.php | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 extensions/FunnyQuestion/FunnyQuestion.i18n.php (limited to 'extensions/FunnyQuestion/FunnyQuestion.i18n.php') 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 @@ + '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; + } + } +} + +?> + -- cgit v1.2.3-54-g00ecf