diff options
author | emkael <emkael@tlen.pl> | 2016-06-10 15:56:08 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-06-10 15:56:08 +0200 |
commit | e98c34018893d7edae69e5978c58d7bcac505b22 (patch) | |
tree | 22333a2019be0bfd2f2a609d04c36c71a9941a7c /app/frontend/dto/LanguageDTO.php | |
parent | afc6ff4012f4bfd6e020c865c2dfd7884476c66a (diff) |
* verbose language label
Diffstat (limited to 'app/frontend/dto/LanguageDTO.php')
-rw-r--r-- | app/frontend/dto/LanguageDTO.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/frontend/dto/LanguageDTO.php b/app/frontend/dto/LanguageDTO.php index fa39d03..b2655cd 100644 --- a/app/frontend/dto/LanguageDTO.php +++ b/app/frontend/dto/LanguageDTO.php @@ -7,7 +7,11 @@ class LanguageDTO { public function __construct(string $name) { $this->Name = $name; - $this->Label = Locale::getDisplayLanguage($this->Name); + $this->Label = sprintf( + '[%s] %s', + $this->Name, + Locale::getDisplayLanguage($this->Name) + ); } public static function __compare(LanguageDTO $l1, LanguageDTO $l2) { |