Remove more usages of hardcoded translation keys

This commit is contained in:
Dylan K. Taylor
2021-08-15 19:22:40 +01:00
parent 752d1179a1
commit 60ac76a3bc
8 changed files with 95 additions and 36 deletions

View File

@ -44,7 +44,7 @@ class Jukebox extends Opaque{
if($this->record !== null){
$this->ejectRecord();
}elseif($item instanceof Record){
$player->sendJukeboxPopup("record.nowPlaying", ["%" . $item->getRecordType()->getTranslationKey()]);
$player->sendJukeboxPopup("record.nowPlaying", [$player->getLanguage()->translate($item->getRecordType()->getTranslatableName())]);
$this->insertRecord($item->pop());
}
}