From 1bbe053848828e5748c9c2fc18e8288d3ec88ab7 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 13 Jan 2023 17:52:20 +0000 Subject: [PATCH] Language: fixed another couple of hardcoded translation keys --- src/lang/Language.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lang/Language.php b/src/lang/Language.php index d6e2b2214..af4d6a381 100644 --- a/src/lang/Language.php +++ b/src/lang/Language.php @@ -73,8 +73,8 @@ class Language{ try{ $code = explode(".", $file)[0]; $strings = self::loadLang($path, $code); - if(isset($strings["language.name"])){ - $result[$code] = $strings["language.name"]; + if(isset($strings[KnownTranslationKeys::LANGUAGE_NAME])){ + $result[$code] = $strings[KnownTranslationKeys::LANGUAGE_NAME]; } }catch(LanguageNotFoundException $e){ // no-op