mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 07:39:57 +00:00
Language: fixed another couple of hardcoded translation keys
This commit is contained in:
parent
2ed48c8469
commit
1bbe053848
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user