From e98c34018893d7edae69e5978c58d7bcac505b22 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 10 Jun 2016 15:56:08 +0200 Subject: * verbose language label --- app/frontend/dto/LanguageDTO.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/frontend') 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) { -- cgit v1.2.3