Fixed invalid gettextized strings
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 13 Feb 2011 09:11:33 +0000 (09:11 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 13 Feb 2011 09:11:33 +0000 (09:11 +0000)
gl/includes/db/gl_db_rates.inc
includes/packages.inc

index b91e909a3146a0e7df5a2c39d749460095253d2b..d954a7d6165f81d466fee51844c9db218deb01c5 100644 (file)
@@ -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')
        {
index cc387f64425d121491be0cfa0497ad5ed31d4ef8..6e97e7d1cc8d787eae3e072287774278bdc4aeca 100644 (file)
@@ -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;