// $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;
$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'));
}
}
<?php
$messages = array();
$messages['en'] = array(
- 'wrreport' => 'Reports'
+ 'wrreport' => 'Reports',
+ 'wrreportnewreportpreviewtop' => "== Preview (''not saved yet'') ==\n",
+ 'wrreportnewreportpreviewmiddle' => "== Save or change ==\n",
+ 'wrreportnewreportpreviewbottom' => ""
);
$messages['de'] = array(
- 'wrreport' => 'Bahnberichte'
+ 'wrreport' => 'Bahnberichte',
+ 'wrreportnewreportpreviewtop' => "== Vorschau (''noch nicht gespeichert'') ==\n",
+ 'wrreportnewreportpreviewmiddle' => utf8_encode("== Speichern oder Ändern ==\n")
);
$messages['de-formal'] = array(
- 'wrreport' => 'Bahnberichte'
);
?>