summaryrefslogtreecommitdiff
path: root/app/frontend/dto/LanguageDTO.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/frontend/dto/LanguageDTO.php')
-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) {