From: Janusz Dobrowolski Date: Sun, 13 Feb 2011 09:11:33 +0000 (+0000) Subject: Fixed invalid gettextized strings X-Git-Tag: 2.3-final~791 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=1db01112d160c1e3c9a6c48cbe3a2b829c102b2e;p=fa-stable.git Fixed invalid gettextized strings --- diff --git a/gl/includes/db/gl_db_rates.inc b/gl/includes/db/gl_db_rates.inc index b91e909a..d954a7d6 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 cc387f64..6e97e7d1 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;