Hi again,
i use the getTranslation() function of the documentation, but i get a Notice and an Error:
Notice: Undefined variable: t Fatal error: Call to a member function _() on null in
Here is the code:
class UsersController extends ControllerBase{
protected function getTranslation(){
    // Ask browser what is the best language
    $language = $this->request-> getBestLanguage();
    // Check if we have a translation file for that lang
    if (file_exists("app/messages/" . $language . ".php")) {
        require "app/messages/" . $language . ".php";
    } else {
        // Fallback to some default
        require "app/messages/en.php";
    }
    // Return a translation object
    return new NativeArray(
        array(
            "content" => $messages
        )
    );
}
.......Can anyone help me please :-)
And how can i also do an Route for that?
Rgds
Stefan