diff options
author | Simon Rettberg | 2016-05-10 19:17:28 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-05-10 19:17:28 +0200 |
commit | a79bbfa1a23838b91e9a08f7014c2c7304976714 (patch) | |
tree | fafb56190707d10b01cb282bc14b99156e100dcb /modules-available/syslog | |
parent | Translating module strings and custom sections works (diff) | |
download | slx-admin-a79bbfa1a23838b91e9a08f7014c2c7304976714.tar.gz slx-admin-a79bbfa1a23838b91e9a08f7014c2c7304976714.tar.xz slx-admin-a79bbfa1a23838b91e9a08f7014c2c7304976714.zip |
Migrated messages to modules
Diffstat (limited to 'modules-available/syslog')
-rw-r--r-- | modules-available/syslog/page.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules-available/syslog/page.inc.php b/modules-available/syslog/page.inc.php index 43a9bd28..ea73d1b9 100644 --- a/modules-available/syslog/page.inc.php +++ b/modules-available/syslog/page.inc.php @@ -8,7 +8,7 @@ class Page_SysLog extends Page User::load(); if (!User::isLoggedIn()) { - Message::addError('no-permission'); + Message::addError('main.no-permission'); Util::redirect('?do=Main'); } } @@ -58,9 +58,9 @@ class Page_SysLog extends Page while ($row = $res->fetch(PDO::FETCH_ASSOC)) { $day = date('d.m.Y', $row['dateline']); if ($day === $today) { - $day = Dictionary::translate('today'); + $day = Dictionary::translate('lang_today'); } elseif ($day === $yesterday) { - $day = Dictionary::translate('yesterday'); + $day = Dictionary::translate('lang_yesterday'); } $row['date'] = $day . date(' H:i', $row['dateline']); $row['icon'] = $this->eventToIconName($row['logtypeid']); |