Undid commit r560 because the change was done to workaround a PHP bug that is fixed...
[philipp/winterrodeln/mediawiki_extensions/wrreport.git] / wrreport.body.php
index 6e1c25e8f230c372568a57da1751c6dc09a3d140..70db62da288982bc54bae884fe0f394d0e01fe95 100644 (file)
@@ -382,7 +382,7 @@ function bahnbewertungParserHook($input, $args, &$parser) {
                if ($userMayReport) $wikiText = "<small>''[[" . $titleText . '#' . $wrNewReportSection . "|Bitte eintragen]]''</small>";
                else $wikiText = '--';
        }
-       return wrCommonReplaceByMarker(wrCommonSandboxParse($wikiText), 'wrreports');
+       return wrCommonReplaceByMarker(wrCommonSandboxParse($wikiText), 'wrreports', FALSE);
 }
 
 
@@ -423,7 +423,7 @@ function bahnentabelleParserHook($input, $args, &$parser) {
 
        // Title
        $html = "<table class=\"wikitable\">\n";
-       $html .= utf8_encode('<tr><th>V</th><th>B</th><th>L</th<th>A</th><th>Ö</th><th>Rodelbahn</th>') .
+       $html .= utf8_encode('<tr><th>V</th><th>B</th><th>L</th><th>A</th><th>Ö</th><th>Rodelbahn</th>') .
        ($wgWrReportMode == 'summer' ? '' : '<th>Schneelage</th>') . 
        utf8_encode("<th>Auskunft</th><th>Gehzeit</th><th>Höhe unten</th><th>Höhe oben</th><th>Länge</th></tr>\n");
 
@@ -722,7 +722,7 @@ class WrReport extends SpecialPage {
                                // $wgOut->redirect($title->getFullURL() . '#Eintr.C3.A4ge');
                        }
                        if ($action == 'preview') {
-                               $wgOut->addWikiText(utf8_encode("== Vorschau (noch nicht gespeichert) ==\n"));
+                               $wgOut->addWikiText(wfMsg('wrreportnewreportpreviewtop'));
                                $format = WRREPORT_COMPACT_PAGE;
                                $row = array_fill_keys(wrReportGetColumnNames(), NULL);
                                $row['page_title'] = $page_title;
@@ -731,8 +731,9 @@ class WrReport extends SpecialPage {
                                $row['description'] = $description;
                                $row['author_name'] = $author_name;
                                $wgOut->addHTML(wrReportTableRender2(array($row), $format, FALSE));
-                               $wgOut->addWikiText(utf8_encode("== Speichern oder Ändern ==\n"));
+                               $wgOut->addWikiText(wfMsg('wrreportnewreportpreviewmiddle'));
                                $wgOut->addHTML(wrReportFormRender(FALSE, $page_title, $date_report, $condition, $description, $author_name));
+                               $wgOut->addWikiText(wfMsg('wrreportnewreportpreviewbottom'));
                        } 
                        
                }