Add date in open/closed text.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 22 Dec 2019 22:15:04 +0000 (22:15 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 22 Dec 2019 22:15:04 +0000 (22:15 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrreport/trunk@2889 7aebc617-e5e2-0310-91dc-80fb5f6d2477

i18n/de.json
i18n/en.json
i18n/qqq.json
wrreport_body.php

index b3f9897f77b78c1a6da8ecc9be7428ab4c368b3e..a1bacdc2a4972ed2d8f0ac2d7d125d5bbda1dbae 100644 (file)
@@ -93,8 +93,8 @@
        "wrreport-icon-walkupseparate": "Aufstieg getrennt",
        "wrreport-icon-publictransport": "Öffentliche Anreise möglich",
        "wrreport-icon-intermaps-status": "Geöffnet oder Gesperrt (Informationen von Intermaps)",
-       "wrreport-icon-intermaps-open": "Geöffnet (Informationen von Intermaps)",
-       "wrreport-icon-intermaps-closed": "Gesperrt (Informationen von Intermaps)",
+       "wrreport-icon-intermaps-open": "Geöffnet (Letztes Update: $1; Informationen von Intermaps)",
+       "wrreport-icon-intermaps-closed": "Gesperrt (Letztes Update: $1; Informationen von Intermaps)",
        "wrreport-avatar-nousername": "Der Benutzername fehlt im <avatar> Tag. Bitte sowas wie \"<avatar>MediawikiBenutzername</avatar>\" verwenden.",
        "wrreport-avatar-invalidusername": "Ein ungültiger Benutzername wurde im <avatar> Tag verwendet: \"$1\"",
        "wrreport-avatar-userunknown": "Ein unbekannter Benutzername wurde im <avatar> Tag verwendet: \"$1\"",
index 127869382c365463431e5b7b4c7a01d3610c7018..b1dc604cd03f76c707b87aadd7ecba82e02ca698 100644 (file)
@@ -93,8 +93,8 @@
        "wrreport-icon-walkupseparate": "Walkup separate",
        "wrreport-icon-publictransport": "Public transport",
        "wrreport-icon-intermaps-status": "Open or closed (Information from Intermaps)",
-       "wrreport-icon-intermaps-open": "Open (Information from Intermaps)",
-       "wrreport-icon-intermaps-closed": "Closed (Information from Intermaps)",
+       "wrreport-icon-intermaps-open": "Open (last udate: $1; information from Intermaps)",
+       "wrreport-icon-intermaps-closed": "Closed (last udate: $1; information from Intermaps)",
        "wrreport-avatar-nousername": "User name is missing in the <avatar> tag. You should use something like \"<avatar>MediawikiUser</avatar>\".",
        "wrreport-avatar-invalidusername": "An invalid username is given in the <avatar> tag: \"$1\"",
        "wrreport-avatar-userunknown": "The username given in the <avatar> tag is unknown: \"$1\"",
index 1fcabced6b1140bdd08638fff98453fcee668844..6d8a09c5b1c6a5d36d181310945af55e4bcf03b6 100644 (file)
@@ -93,8 +93,8 @@
        "wrreport-icon-walkupseparate": "Text",
        "wrreport-icon-publictransport": "Text",
        "wrreport-icon-intermaps-status": "Text. Intermaps status (open or closed)",
-       "wrreport-icon-intermaps-open": "Text. open (Information from Intermaps)",
-       "wrreport-icon-intermaps-closed": "Text. Closed (Information from Intermaps)",
+       "wrreport-icon-intermaps-open": "Text. open (Information from Intermaps). $1 is the date of the last update.",
+       "wrreport-icon-intermaps-closed": "Text. Closed (Information from Intermaps). $1 is the date of the last update.",
        "wrreport-avatar-nousername": "Text. User name is missing in the <avatar> tag.",
        "wrreport-avatar-invalidusername": "Text. An invalid username is given in the <avatar> tag. Get the invalid username as parameter.",
        "wrreport-avatar-userunknown": "Text. A valid but unknown username is given in the <avatar> tag. Get the username as parameter.",
index 0afeb5bbc6679bcffab0edc2db69f6e4ab192211..00c9e785f28804241a6981afacada336e65fe8c3 100644 (file)
@@ -824,9 +824,11 @@ class WrReport {
                                $td = $tr->appendElement('td');
                                if ($row->show_status) {
                                        if ($row->status == 'open') {
-                                               $td->appendElement('img', array('src' => '/vorlagen/s_open.png', 'alt' => wfMessage('wrreport-icon-intermaps-open')->text(), 'title' => wfMessage('wrreport-icon-intermaps-open')->text()));
+                                               $msg = wfMessage('wrreport-icon-intermaps-open', $row->last_update)->text();
+                                               $td->appendElement('img', array('src' => '/vorlagen/s_open.png', 'alt' => $msg, 'title' => $msg));
                                        } elseif ($row->status == 'closed') {
-                                               $td->appendElement('img', array('src' => '/vorlagen/s_closed.png', 'alt' => wfMessage('wrreport-icon-intermaps-closed')->text(), 'title' => wfMessage('wrreport-icon-intermaps-closed')->text()));
+                                               $msg = wfMessage('wrreport-icon-intermaps-closed', $row->last_update)->text();
+                                               $td->appendElement('img', array('src' => '/vorlagen/s_closed.png', 'alt' => $msg, 'title' => $msg));
                                        } else {
                                                $td->appendText($row->status);
                                        }