diff options
Diffstat (limited to 'lib/class')
-rw-r--r-- | lib/class/catalog.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php index 723d7c55..ee51e9e5 100644 --- a/lib/class/catalog.class.php +++ b/lib/class/catalog.class.php @@ -490,13 +490,13 @@ class Catalog { if (!$file_size) { debug_event('read',"Unable to get filesize for $full_file",'2','ampache-catalog'); - Error::add('catalog_add',_('Error: Unable to get filesize for') . ' ' . $full_file); + Error::add('catalog_add',sprintf(_('Error: Unable to get filesize for %s'), $full_file)); } // file_size check if (!is_readable($full_file)) { // not readable, warn user debug_event('read',"$full_file is not readable by ampache",'2','ampache-catalog'); - Error::add('catalog_add',"$full_file " . _('is not readable by ampache')); + Error::add('catalog_add', sprintf(_('%s is not readable by ampache'), $full_file)); continue; } @@ -504,7 +504,7 @@ class Catalog { if (function_exists('iconv')) { if (strcmp($full_file,iconv(Config::get('site_charset'),Config::get('site_charset'),$full_file)) != '0') { debug_event('read',$full_file . ' has non-' . Config::get('site_charset') . ' characters and can not be indexed','1'); - Error::add('catalog_add',$full_file . ' ' . _('does not match site charset')); + Error::add('catalog_add', sprintf(_('%s does not match site charset'), $full_file)); continue; } } // end if iconv |