Introduced the i18n system of MediaWiki for the preview page to allow user-defined...
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 14 Mar 2009 21:33:25 +0000 (21:33 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 14 Mar 2009 21:33:25 +0000 (21:33 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/extensions/wrreport@420 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport.body.php
wrreport.i18n.php

index 6ff168a7f72ae1c79b7dc432f28eb5315ee65131..70db62da288982bc54bae884fe0f394d0e01fe95 100644 (file)
@@ -722,7 +722,7 @@ class WrReport extends SpecialPage {
                                // $wgOut->redirect($title->getFullURL() . '#Eintr.C3.A4ge');
                        }
                        if ($action == 'preview') {
                                // $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;
                                $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));
                                $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->addHTML(wrReportFormRender(FALSE, $page_title, $date_report, $condition, $description, $author_name));
+                               $wgOut->addWikiText(wfMsg('wrreportnewreportpreviewbottom'));
                        } 
                        
                }
                        } 
                        
                }
index 1f377e9f89940bc7115e028955cf2f6a0388f715..234ad1e99b6d0d657b4df18a5b3f01bc91668686 100644 (file)
@@ -1,12 +1,16 @@
 <?php
 $messages = array();
 $messages['en'] = array( 
 <?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(
 );
 $messages['de'] = array(
-       'wrreport' => 'Bahnberichte'
+       'wrreport' => 'Bahnberichte',
+       'wrreportnewreportpreviewtop' => "== Vorschau (''noch nicht gespeichert'') ==\n",
+       'wrreportnewreportpreviewmiddle' => utf8_encode("== Speichern oder Ändern ==\n")
 );
 $messages['de-formal'] = array(
 );
 $messages['de-formal'] = array(
-       'wrreport' => 'Bahnberichte'
 );
 ?>
 );
 ?>