From a697d396b27cad3e28a4a78a91b95f741507380e Mon Sep 17 00:00:00 2001 From: Rafael Lucas Date: Thu, 29 Jul 2010 11:50:59 -0300 Subject: Implement gettext() calls --- usr/local/www/uploadconfig.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr/local/www/uploadconfig.php') diff --git a/usr/local/www/uploadconfig.php b/usr/local/www/uploadconfig.php index af58111..5a6196c 100644 --- a/usr/local/www/uploadconfig.php +++ b/usr/local/www/uploadconfig.php @@ -45,7 +45,7 @@ header("Content-Type: text/plain"); if ($_POST['config']) { $fd = @fopen("{$g['tmp_path']}/config.xml", "w"); if (!$fd) { - echo "ERR Could not save configuration.\n"; + echo gettext("ERR Could not save configuration.")."\n"; exit(0); } fwrite($fd, $_POST['config']); @@ -54,10 +54,10 @@ if ($_POST['config']) { echo "OK\n"; system_reboot(); } else { - echo "ERR Could not install configuration.\n"; + echo gettext("ERR Could not install configuration.")."\n"; } } else { - echo "ERR Invalid configuration received.\n"; + echo gettext("ERR Invalid configuration received.")."\n"; } exit(0); -- cgit v1.1