added gettext support.
authorserek <serek@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 13 Jan 2000 21:26:30 +0000 (21:26 +0000)
committerserek <serek@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 13 Jan 2000 21:26:30 +0000 (21:26 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@171 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/prefs.php

index 0a685e65667447cde7afc5539fc7bd7a7417e789..6962e6a585220d98a7cae5b262ae842aa76a3106 100644 (file)
@@ -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.<BR>";
+         echo _("Preference file, ") "\"$filename\"". _(", does not exist.  Log out, and log back in to create a default preference file. ") ."<BR>";
          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;
          }
       }
          }
          fclose($file);
       } else {
-         echo "Signature file not found.";
+         echo _("Signature file not found.");
          exit;
       }
       return $sig;
    }
-?>
\ No newline at end of file
+?>