From 80424b29e00609bf837119fa810b5afdadf2b4e9 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 4 May 2016 18:27:28 +0200 Subject: Work on translations: templates and messages work --- inc/message.inc.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'inc/message.inc.php') diff --git a/inc/message.inc.php b/inc/message.inc.php index 96fb94c5..d6a62f4e 100644 --- a/inc/message.inc.php +++ b/inc/message.inc.php @@ -37,6 +37,9 @@ class Message */ private static function add($type, $id, $params) { + if (strstr($id, '.') === false) { + $id = Page::getModule()->getIdentifier() . '.' . $id; + } self::$list[] = array( 'type' => $type, 'id' => $id, -- cgit v1.2.3-55-g7522