From 5f29dd3b476131f4cdadf71c0d6e076aec7afc60 Mon Sep 17 00:00:00 2001 From: serek Date: Thu, 13 Jan 2000 21:26:30 +0000 Subject: [PATCH] added gettext support. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@171 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/prefs.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/functions/prefs.php b/functions/prefs.php index 0a685e65..6962e6a5 100644 --- a/functions/prefs.php +++ b/functions/prefs.php @@ -9,7 +9,7 @@ function getPref($data_dir, $username, $string) { $filename = "$data_dir$username.pref"; if (!file_exists($filename)) { - echo "Preference file \"$filename\" not found. Exiting abnormally"; + echo _("Preference file ") "\"$filename\"" _(" not found. Exiting abnormally"); exit; } @@ -32,7 +32,7 @@ $filename = "$data_dir$username.pref"; $found = false; if (!file_exists($filename)) { - echo "Preference file, $filename, does not exist. Log out, and log back in to create a default preference file.
"; + echo _("Preference file, ") "\"$filename\"". _(", does not exist. Log out, and log back in to create a default preference file. ") ."
"; exit; } $file = fopen($filename, "r"); @@ -74,7 +74,7 @@ $filename = "$data_dir$username.pref"; if (!file_exists($filename)) { if (!copy("$data_dir" . "default_pref", $filename)) { - echo "Error opening $filename"; + echo _("Error opening ") ."$filename"; exit; } } @@ -103,9 +103,9 @@ } fclose($file); } else { - echo "Signature file not found."; + echo _("Signature file not found."); exit; } return $sig; } -?> \ No newline at end of file +?> -- 2.25.1