Added the possibility to show messages depending on the login-status for the sledrun...
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 19 Oct 2013 20:23:25 +0000 (20:23 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 19 Oct 2013 20:23:25 +0000 (20:23 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrreport/trunk@1739 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport.body.php
wrreport.i18n.php

index 6684bc838740418390beda3bfbce6d203a06520c..887153351a941b266589f0e60524dc9c7174a22c 100644 (file)
@@ -1076,6 +1076,10 @@ class SpecialWrReport extends SpecialPage {
                                $output->addWikiText(wfMessage('wrreport-newreport-preview-middle')->text());
                                $output->addHTML(wrReportFormRender(FALSE, $page_title, $date_report, $time_report, $condition, $description, $author_name));
                                $output->addWikiText(wfMessage('wrreport-newreport-preview-bottom')->text());
+                               if ($author_userid)
+                                       $output->addWikiText(wfMessage('wrreport-newreport-preview-bottom-loggedin')->text());
+                               else
+                                       $output->addWikiText(wfMessage('wrreport-newreport-preview-bottom-anonymous')->text());
                        }
 
                }
index 18d768bc2bd41ed6aa8cd93c5bb4b9896974c188..9b170107278b87785d25664631649a30df06cc55 100644 (file)
@@ -50,6 +50,8 @@ $messages['qqq'] = array(
        'wrreport-newreport-preview-top' => 'WikiText',
        'wrreport-newreport-preview-middle' => 'WikiText',
        'wrreport-newreport-preview-bottom' => 'WikiText',
+       'wrreport-newreport-preview-bottom-loggedin' => 'Shown on the bottom of the preview page (after \'wrreport-deletereport-preview-bottom\') if the user is logged in. WikiText.',
+       'wrreport-newreport-preview-bottom-anonymous' => 'Shown on the bottom of the preview page (after \'wrreport-deletereport-preview-bottom\') if the user is not logged in. WikiText.',
        'wrreport-newreport-success' => 'WikiText',
        'wrreport-deletereport-tablesummary' => 'Text',
        'wrreport-deletereport-reason' => 'Text',
@@ -134,6 +136,8 @@ $messages['en'] = array(
        'wrreport-newreport-preview-top' => '== Preview (\'\'not saved yet\'\') ==',
        'wrreport-newreport-preview-middle' => '== Save or change ==',
        'wrreport-newreport-preview-bottom' => '',
+       'wrreport-newreport-preview-bottom-loggedin' => '',
+       'wrreport-newreport-preview-bottom-anonymous' => '',
        'wrreport-newreport-success' => '<div class="successbox">The sledrun report for $1 was saved successfully.</div>',
        'wrreport-deletereport-tablesummary' => 'Form to delete a sledrun report',
        'wrreport-deletereport-reason' => 'Reason',
@@ -222,6 +226,8 @@ $messages['de'] = array(
        'wrreport-newreport-preview-top' => '== Vorschau (\'\'noch nicht gespeichert\'\') ==',
        'wrreport-newreport-preview-middle' => '== Speichern oder Ändern ==',
        'wrreport-newreport-preview-bottom' => '',
+       'wrreport-newreport-preview-bottom-loggedin' => '',
+       'wrreport-newreport-preview-bottom-anonymous' => '',
        'wrreport-newreport-success' => '<div class="successbox">Der Bahnbericht für $1 wurde erfolgreich gespeichert.</div>',
        'wrreport-deletereport-tablesummary' => 'Formular zum Löschen eines Schneelageberichtes',
        'wrreport-deletereport-reason' => 'Begründung',