In the file audio_theme.inc the string "!playtime minutes (!filesize)" is not translated. I'm translating the string 'minutes' to my local string.

function theme_audio_format_filelength($fileinfo) {
  $format = !empty($fileinfo['playtime']) ? '@playtime minutes (@filesize)' : '@filesize';
  $args = array('@playtime' => check_plain($fileinfo['playtime']), '@filesize' => format_size($fileinfo['filesize'])); 
  return strtr($format, $args);
}
CommentFileSizeAuthor
#3 audio_184546_0.patch1.88 KBdrewish
#1 audio_184546.patch1.13 KBdrewish

Comments

drewish’s picture

Status: Active » Needs review
StatusFileSize
new1.13 KB

give this a try.

xl-network’s picture

This is working but I had to make a small ajustment

I changed $fileinfo['file_size'] to $fileinfo['filesize']

drewish’s picture

Status: Needs review » Fixed
StatusFileSize
new1.88 KB

i'm pretty sure file_size is correct. perhaps you're using and older version?

committing the attached to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.