From a152404955cc61b5e47834398a2a256742d27096 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 13 Feb 2011 09:11:33 +0000 Subject: [PATCH] Fixed invalid gettextized strings --- gl/includes/db/gl_db_rates.inc | 2 +- includes/packages.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gl/includes/db/gl_db_rates.inc b/gl/includes/db/gl_db_rates.inc index b91e909..d954a7d 100644 --- a/gl/includes/db/gl_db_rates.inc +++ b/gl/includes/db/gl_db_rates.inc @@ -125,7 +125,7 @@ function get_extern_rate($curr_b, $provider = 'ECB', $date) $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') { diff --git a/includes/packages.inc b/includes/packages.inc index cc387f6..6e97e7d 100644 --- a/includes/packages.inc +++ b/includes/packages.inc @@ -187,7 +187,7 @@ function get_control_file($file, $index = false) { 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; -- 2.30.2