SF.net SVN: phpwiki:[10949] trunk

vargenau--- via phpwiki-checkins <[email protected]> Thu, 27 Jan 2022 13:58:39 +0000
Newsgroups gmane.comp.web.wiki.phpwiki.checkins
Message-ID <[email protected]>
Revision: 10949
          http://sourceforge.net/p/phpwiki/code/10949
Author:   vargenau
Date:     2022-01-27 13:58:39 +0000 (Thu, 27 Jan 2022)
Log Message:
-----------
lib/plugin/AnalyseAccessLogSql.php: add class error to error messages

Modified Paths:
--------------
    trunk/lib/plugin/AnalyseAccessLogSql.php
    trunk/locale/de/LC_MESSAGES/phpwiki.mo
    trunk/locale/es/LC_MESSAGES/phpwiki.mo
    trunk/locale/fr/LC_MESSAGES/phpwiki.mo
    trunk/locale/it/LC_MESSAGES/phpwiki.mo
    trunk/locale/ja/LC_MESSAGES/phpwiki.mo
    trunk/locale/nl/LC_MESSAGES/phpwiki.mo
    trunk/locale/po/de.po
    trunk/locale/po/es.po
    trunk/locale/po/fr.po
    trunk/locale/po/it.po
    trunk/locale/po/ja.po
    trunk/locale/po/nl.po
    trunk/locale/po/phpwiki.pot
    trunk/locale/po/sv.po
    trunk/locale/po/zh.po
    trunk/locale/sv/LC_MESSAGES/phpwiki.mo
    trunk/locale/zh/LC_MESSAGES/phpwiki.mo

Modified: trunk/lib/plugin/AnalyseAccessLogSql.php
===================================================================
--- trunk/lib/plugin/AnalyseAccessLogSql.php	2022-01-27 11:58:52 UTC (rev 10948)
+++ trunk/lib/plugin/AnalyseAccessLogSql.php	2022-01-27 13:58:39 UTC (rev 10949)
@@ -284,11 +284,15 @@
         // flag that the output may not be cached - i.e. it is dynamic
         $request->setArg('nocache', 1);
 
-        if (!$request->_user->isAdmin())
-            return HTML::p(_("The requested information is available only to Administrators."));
+        if (!$request->_user->isAdmin()) {
+            return HTML::p(array('class' => 'error'),
+                           _("The requested information is available only to Administrators."));
+        }
 
-        if (!ACCESS_LOG_SQL) // need read access
-            return HTML::p(_("The SQL_ACCESS_LOG is not enabled."));
+        if (!ACCESS_LOG_SQL) { // need read access
+            return HTML::p(array('class' => 'error'),
+                           _("The ACCESS_LOG_SQL is not enabled."));
+        }
 
         // set aside a place for the table headers, see setHeaders()
         $this->_theadrow = HTML::tr();
@@ -298,9 +302,10 @@
 
         $query = $this->getQueryString($args);
 
-        if ($query == '')
-            return HTML::p(sprintf(_("Unrecognised parameter 'mode=%s'"),
-                $args['mode']));
+        if ($query == '') {
+            return HTML::p(array('class' => 'error'),
+                           sprintf(_("Unrecognised parameter 'mode=%s'"), $args['mode']));
+        }
 
         // get the data back.
         // Note that this must be done before the final generation ofthe table,

Modified: trunk/locale/de/LC_MESSAGES/phpwiki.mo
===================================================================
(Binary files differ)

Modified: trunk/locale/es/LC_MESSAGES/phpwiki.mo
===================================================================
(Binary files differ)

Modified: trunk/locale/fr/LC_MESSAGES/phpwiki.mo
===================================================================
(Binary files differ)

Modified: trunk/locale/it/LC_MESSAGES/phpwiki.mo
===================================================================
(Binary files differ)

Modified: trunk/locale/ja/LC_MESSAGES/phpwiki.mo
===================================================================
(Binary files differ)

Modified: trunk/locale/nl/LC_MESSAGES/phpwiki.mo
===================================================================
(Binary files differ)

Modified: trunk/locale/po/de.po
===================================================================
--- trunk/locale/po/de.po	2022-01-27 11:58:52 UTC (rev 10948)
+++ trunk/locale/po/de.po	2022-01-27 13:58:39 UTC (rev 10949)
@@ -6,7 +6,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.6.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-01-26 13:12+0100\n"
+"POT-Creation-Date: 2022-01-27 14:57+0100\n"
 "PO-Revision-Date: 2000-10-31 02:23+0200\n"
 "Last-Translator: Reini Urban <[email protected]>, Carsten Klapp "
 "<[email protected]>, Helmer Pardun <pardunpress@t-online."
@@ -1346,8 +1346,8 @@
 msgid "The requested information is available only to Administrators."
 msgstr "Diese Information ist nur für Administratoren zugänglich."
 
-msgid "The SQL_ACCESS_LOG is not enabled."
-msgstr "SQL_ACCESS_LOG ist nicht aktiviert."
+msgid "The ACCESS_LOG_SQL is not enabled."
+msgstr "ACCESS_LOG_SQL ist nicht aktiviert."
 
 #, php-format
 msgid "Unrecognised parameter 'mode=%s'"

Modified: trunk/locale/po/es.po
===================================================================
--- trunk/locale/po/es.po	2022-01-27 11:58:52 UTC (rev 10948)
+++ trunk/locale/po/es.po	2022-01-27 13:58:39 UTC (rev 10949)
@@ -11,7 +11,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.6.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-01-26 13:12+0100\n"
+"POT-Creation-Date: 2022-01-27 14:57+0100\n"
 "PO-Revision-Date: 2000-02-01 00:50-0500\n"
 "Last-Translator: Pablo Roca <[email protected]>\n"
 "Language-Team: \n"
@@ -1325,7 +1325,7 @@
 msgid "The requested information is available only to Administrators."
 msgstr ""
 
-msgid "The SQL_ACCESS_LOG is not enabled."
+msgid "The ACCESS_LOG_SQL is not enabled."
 msgstr ""
 
 #, php-format

Modified: trunk/locale/po/fr.po
===================================================================
--- trunk/locale/po/fr.po	2022-01-27 11:58:52 UTC (rev 10948)
+++ trunk/locale/po/fr.po	2022-01-27 13:58:39 UTC (rev 10949)
@@ -6,7 +6,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.6.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-01-26 13:12+0100\n"
+"POT-Creation-Date: 2022-01-27 14:57+0100\n"
 "PO-Revision-Date: 2004-06-22 21:10+0200\n"
 "Last-Translator: Pierrick Meignen <[email protected]>, Roland "
 "Trique <[email protected]>, Stéphane Gourichon <stephane.gourichon@lip6."
@@ -1336,8 +1336,8 @@
 msgid "The requested information is available only to Administrators."
 msgstr "L'information demandée n'est accessible qu'aux administrateurs."
 
-msgid "The SQL_ACCESS_LOG is not enabled."
-msgstr "SQL_ACCESS_LOG n'est pas activé."
+msgid "The ACCESS_LOG_SQL is not enabled."
+msgstr "ACCESS_LOG_SQL n'est pas activé."
 
 #, php-format
 msgid "Unrecognised parameter 'mode=%s'"

Modified: trunk/locale/po/it.po
===================================================================
--- trunk/locale/po/it.po	2022-01-27 11:58:52 UTC (rev 10948)
+++ trunk/locale/po/it.po	2022-01-27 13:58:39 UTC (rev 10949)
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.6.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-01-26 13:12+0100\n"
+"POT-Creation-Date: 2022-01-27 14:57+0100\n"
 "PO-Revision-Date: 2005-02-12 16:23+0100\n"
 "Last-Translator: Antonio Bonifati ant[(at)]monitor.deis.unical.it\n"
 "Language-Team: \n"
@@ -1308,7 +1308,7 @@
 msgid "The requested information is available only to Administrators."
 msgstr ""
 
-msgid "The SQL_ACCESS_LOG is not enabled."
+msgid "The ACCESS_LOG_SQL is not enabled."
 msgstr ""
 
 #, php-format

Modified: trunk/locale/po/ja.po
===================================================================
--- trunk/locale/po/ja.po	2022-01-27 11:58:52 UTC (rev 10948)
+++ trunk/locale/po/ja.po	2022-01-27 13:58:39 UTC (rev 10949)
@@ -6,7 +6,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.6.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-01-26 13:12+0100\n"
+"POT-Creation-Date: 2022-01-27 14:57+0100\n"
 "PO-Revision-Date: 2003-06-07 09:01+0900\n"
 "Last-Translator: Tadashi Jokagi <[email protected]>\n"
 "Language-Team: LANGUAGE <[email protected]>\n"
@@ -1294,7 +1294,7 @@
 msgid "The requested information is available only to Administrators."
 msgstr ""
 
-msgid "The SQL_ACCESS_LOG is not enabled."
+msgid "The ACCESS_LOG_SQL is not enabled."
 msgstr ""
 
 #, php-format

Modified: trunk/locale/po/nl.po
===================================================================
--- trunk/locale/po/nl.po	2022-01-27 11:58:52 UTC (rev 10948)
+++ trunk/locale/po/nl.po	2022-01-27 13:58:39 UTC (rev 10949)
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.6.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-01-26 13:12+0100\n"
+"POT-Creation-Date: 2022-01-27 14:57+0100\n"
 "PO-Revision-Date: 2000-09-30 02:23+0200\n"
 "Last-Translator: Jan Nieuwenhuizen <[email protected]>\n"
 "Language-Team: Dutch <[email protected]>\n"
@@ -1300,7 +1300,7 @@
 msgid "The requested information is available only to Administrators."
 msgstr ""
 
-msgid "The SQL_ACCESS_LOG is not enabled."
+msgid "The ACCESS_LOG_SQL is not enabled."
 msgstr ""
 
 #, php-format

Modified: trunk/locale/po/phpwiki.pot
===================================================================
--- trunk/locale/po/phpwiki.pot	2022-01-27 11:58:52 UTC (rev 10948)
+++ trunk/locale/po/phpwiki.pot	2022-01-27 13:58:39 UTC (rev 10949)
@@ -6,7 +6,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki-1.6.0\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-01-26 13:12+0100\n"
+"POT-Creation-Date: 2022-01-27 14:57+0100\n"
 "PO-Revision-Date: 2002-12-14 17:51-0500\n"
 "Last-Translator: Reini Urban <[email protected]>\n"
 "Language-Team: LANGUAGE <[email protected]>\n"
@@ -1294,7 +1294,7 @@
 msgid "The requested information is available only to Administrators."
 msgstr ""
 
-msgid "The SQL_ACCESS_LOG is not enabled."
+msgid "The ACCESS_LOG_SQL is not enabled."
 msgstr ""
 
 #, php-format

Modified: trunk/locale/po/sv.po
===================================================================
--- trunk/locale/po/sv.po	2022-01-27 11:58:52 UTC (rev 10948)
+++ trunk/locale/po/sv.po	2022-01-27 13:58:39 UTC (rev 10949)
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.6.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-01-26 13:12+0100\n"
+"POT-Creation-Date: 2022-01-27 14:57+0100\n"
 "PO-Revision-Date: 2001-01-27 01:58+0200\n"
 "Last-Translator: Jon Åslund <[email protected]>\n"
 "Language-Team: \n"
@@ -1295,7 +1295,7 @@
 msgid "The requested information is available only to Administrators."
 msgstr ""
 
-msgid "The SQL_ACCESS_LOG is not enabled."
+msgid "The ACCESS_LOG_SQL is not enabled."
 msgstr ""
 
 #, php-format

Modified: trunk/locale/po/zh.po
===================================================================
--- trunk/locale/po/zh.po	2022-01-27 11:58:52 UTC (rev 10948)
+++ trunk/locale/po/zh.po	2022-01-27 13:58:39 UTC (rev 10949)
@@ -6,7 +6,7 @@
 msgstr ""
 "Project-Id-Version: PhpWiki 1.6.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-01-26 13:12+0100\n"
+"POT-Creation-Date: 2022-01-27 14:57+0100\n"
 "PO-Revision-Date: 2004-04-21 10:08+0800\n"
 "Last-Translator: DruryL <[email protected]>\n"
 "Language-Team: DruryL <[email protected]>\n"
@@ -1297,7 +1297,7 @@
 msgid "The requested information is available only to Administrators."
 msgstr ""
 
-msgid "The SQL_ACCESS_LOG is not enabled."
+msgid "The ACCESS_LOG_SQL is not enabled."
 msgstr ""
 
 #, php-format

Modified: trunk/locale/sv/LC_MESSAGES/phpwiki.mo
===================================================================
(Binary files differ)

Modified: trunk/locale/zh/LC_MESSAGES/phpwiki.mo
===================================================================
(Binary files differ)

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



_______________________________________________
phpwiki-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpwiki-checkins