From 74d0bea99c85b561649fced513c256ac86c76718 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 18 Jun 2010 16:04:04 -0300 Subject: Implement gettext() calls --- usr/local/www/diag_patterns.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'usr') diff --git a/usr/local/www/diag_patterns.php b/usr/local/www/diag_patterns.php index 2e1d264..09f5472 100755 --- a/usr/local/www/diag_patterns.php +++ b/usr/local/www/diag_patterns.php @@ -40,13 +40,13 @@ require("guiconfig.inc"); //Move the upload file to /usr/local/share/protocols (is_uploaded_file must use tmp_name as argument) -if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['ulfile']['tmp_name'])) { +if (($_POST['submit'] == gettext("Upload")) && is_uploaded_file($_FILES['ulfile']['tmp_name'])) { if(fileExtension($_FILES['ulfile']['name'])) { move_uploaded_file($_FILES['ulfile']['tmp_name'], "/usr/local/share/protocols/" . $_FILES['ulfile']['name']); - $ulmsg = "Uploaded file to /usr/local/share/protocols/" . htmlentities($_FILES['ulfile']['name']); + $ulmsg = gettext("Uploaded file to") . " /usr/local/share/protocols/" . htmlentities($_FILES['ulfile']['name']); } else - $ulmsg = "Warning: You must upload a file with .pat extension."; + $ulmsg = gettext("Warning: You must upload a file with .pat extension."); } //Check if file has correct extension (.pat) @@ -55,7 +55,7 @@ function fileExtension($nameFile) { return ($format == ".pat"); } -$pgtitle = array("Diagnostics","Add layer7 pattern"); +$pgtitle = array(gettext("Diagnostics"), gettext("Add layer7 pattern")); include("head.inc"); ?> @@ -95,24 +95,24 @@ pre { -

You can upload new layer7 patterns to your system!

+

" . $ulmsg . "

\n"; ?>
- + - + + "> -- cgit v1.1
Upload
File to upload::
    -