From 78f02ad40370b9eaf7aae9af60c7d83cdf81c220 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 28 Nov 2016 23:50:13 +0100 Subject: [PATCH] Html: move translate one level deeper --- library/Businessprocess/Html/BaseElement.php | 6 ------ library/Businessprocess/Html/Html.php | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/library/Businessprocess/Html/BaseElement.php b/library/Businessprocess/Html/BaseElement.php index 7043b24..15fd81e 100644 --- a/library/Businessprocess/Html/BaseElement.php +++ b/library/Businessprocess/Html/BaseElement.php @@ -89,12 +89,6 @@ abstract class BaseElement extends Html ); } - protected function translate($msg) - { - // TODO: Not so nice - return mt('businessprocess', $msg); - } - /** * Whether the given something can be rendered * diff --git a/library/Businessprocess/Html/Html.php b/library/Businessprocess/Html/Html.php index eafd2e7..70c5def 100644 --- a/library/Businessprocess/Html/Html.php +++ b/library/Businessprocess/Html/Html.php @@ -101,6 +101,12 @@ class Html implements Renderable return implode($this->contentSeparator, $html); } + protected function translate($msg) + { + // TODO: Not so nice + return mt('businessprocess', $msg); + } + public static function element($name, $attributes = null) { // TODO: This might be anything here, add a better check