fix: use string type for all translation formatting

This commit is contained in:
Eva
2023-04-25 21:01:59 +02:00
committed by Tomas Klaen
parent 1fb0528f9e
commit e7f4989da1
3 changed files with 8 additions and 4 deletions

View File

@@ -106,14 +106,14 @@ function create_select_tracklist_type_menu_opener(menu_title, track_type, track_
end
if track['demux-fps'] then h(string.format('%.5gfps', track['demux-fps'])) end
h(track.codec)
if track['audio-channels'] then h(t('%d channels', track['audio-channels'])) end
if track['audio-channels'] then h(t('%s channels', track['audio-channels'])) end
if track['demux-samplerate'] then h(string.format('%.3gkHz', track['demux-samplerate'] / 1000)) end
if track.forced then h(t('forced')) end
if track.default then h(t('default')) end
if track.external then h(t('external')) end
items[#items + 1] = {
title = (track.title and track.title or t('Track') .. ' ' .. track.id),
title = (track.title and track.title or t('Track %s', track.id)),
hint = table.concat(hint_values, ', '),
value = track.id,
active = track.selected,