$contents = url_get_contents("http://".$site.$filename);
}
if (!$contents) {
- display_warning(_("Cannot retrieve currency rate from $provider page. Please set the rate manually."));
+ display_warning(sprintf(_("Cannot retrieve currency rate from %s page. Please set the rate manually."), $provider));
}
if ($provider == 'ECB')
{
if ($index !== true) {
if ($index === false) break;
if (!isset($pkg[$index])) {
- display_error(_("No key field '$index' in file '$file'"));
+ display_error(sprintf(_("No key field '%s' in file '%s'"), $index, $file));
return null;
}
$repo[$pkg[$index]] = $pkg;