Backend\Core\Language\Language::msg PHP Method

msg() public static method

Get a message from the language-file
public static msg ( string $key, string $module = null ) : string
$key string The key to get.
$module string The module wherein we should search.
return string
    public static function msg($key, $module = null)
    {
        return self::getMessage($key, $module);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Add postdata into the comment
  *
  * @param string $text The comment.
  * @param string $title The title for the blogarticle.
  * @param string $url The URL for the blogarticle.
  * @param int $id The id of the comment.
  *
  * @return string
  */
 public static function addPostData($text, $title, $url, $id)
 {
     // reset URL
     $url = BackendModel::getURLForBlock('Blog', 'Detail') . '/' . $url . '#comment-' . $id;
     // build HTML
     return '<p><em>' . sprintf(BL::msg('CommentOnWithURL'), $url, $title) . '</em></p>' . "\n" . (string) $text;
 }
All Usage Examples Of Backend\Core\Language\Language::msg