Language: fixed another couple of hardcoded translation keys

This commit is contained in:
Dylan K. Taylor 2023-01-13 17:52:20 +00:00
parent 2ed48c8469
commit 1bbe053848
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -73,8 +73,8 @@ class Language{
try{ try{
$code = explode(".", $file)[0]; $code = explode(".", $file)[0];
$strings = self::loadLang($path, $code); $strings = self::loadLang($path, $code);
if(isset($strings["language.name"])){ if(isset($strings[KnownTranslationKeys::LANGUAGE_NAME])){
$result[$code] = $strings["language.name"]; $result[$code] = $strings[KnownTranslationKeys::LANGUAGE_NAME];
} }
}catch(LanguageNotFoundException $e){ }catch(LanguageNotFoundException $e){
// no-op // no-op