From 90dc6f44780a6515681a793bf0892afdcdf4e044 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Tue, 30 May 2017 23:49:49 +0200 Subject: [PATCH] Display each locale in its own language --- classes/Locale.php | 6 ++---- templates/inc/header.tpl | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/classes/Locale.php b/classes/Locale.php index 72e84e6..081e215 100644 --- a/classes/Locale.php +++ b/classes/Locale.php @@ -51,13 +51,11 @@ class Locale /** * Get the full name of the locale. * - * @param Locale $displayLocale Locale to get the name in - * * @return string */ - public function getFullName(Locale $displayLocale) + public function getFullName() { - return \Locale::getDisplayName($this->getIso15897(), $displayLocale->getIso15897()); + return \Locale::getDisplayName($this->getIso15897(), $this->getIso15897()); } /** diff --git a/templates/inc/header.tpl b/templates/inc/header.tpl index 71f24d2..fe57900 100644 --- a/templates/inc/header.tpl +++ b/templates/inc/header.tpl @@ -7,7 +7,7 @@