summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-06-10 15:56:08 +0200
committeremkael <emkael@tlen.pl>2016-06-10 15:56:08 +0200
commite98c34018893d7edae69e5978c58d7bcac505b22 (patch)
tree22333a2019be0bfd2f2a609d04c36c71a9941a7c /app
parentafc6ff4012f4bfd6e020c865c2dfd7884476c66a (diff)
* verbose language label
Diffstat (limited to 'app')
-rw-r--r--app/frontend/dto/LanguageDTO.php6
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) {