MediaPlayer: missing localization

Fixes #16062
This commit is contained in:
Adrien Destugues 2020-05-22 10:30:30 +02:00
parent 95b2739da8
commit 582b7d1685
2 changed files with 3 additions and 1 deletions

View File

@ -1196,7 +1196,7 @@ MainWin::OpenPlaylistItem(const PlaylistItemRef& item)
_PlaylistItemOpened(item, ret);
} else {
BString string;
string << "Opening '" << item->Name() << "'.";
string.SetToFormat(B_TRANSLATE("Opening '%s'.", item->Name());
fControls->SetDisabledString(string.String());
}
}

View File

@ -150,6 +150,8 @@ FilePlaylistItem::GetAttribute(const Attribute& attribute,
BString& string) const
{
if (attribute == ATTR_STRING_NAME) {
if (fRefs[0].name == NULL)
return B_NAME_NOT_FOUND;
string = fRefs[0].name;
return B_OK;
}