Html: move translate one level deeper

This commit is contained in:
Thomas Gelf 2016-11-28 23:50:13 +01:00
parent 162c19c023
commit 78f02ad403
2 changed files with 6 additions and 6 deletions

View file

@ -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
*

View file

@ -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