|
@@ -9,7 +9,7 @@
|
|
function getPref($data_dir, $username, $string) {
|
|
function getPref($data_dir, $username, $string) {
|
|
$filename = "$data_dir$username.pref";
|
|
$filename = "$data_dir$username.pref";
|
|
if (!file_exists($filename)) {
|
|
if (!file_exists($filename)) {
|
|
- echo "Preference file \"$filename\" not found. Exiting abnormally";
|
|
|
|
|
|
+ echo _("Preference file ") "\"$filename\"" _(" not found. Exiting abnormally");
|
|
exit;
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -32,7 +32,7 @@
|
|
$filename = "$data_dir$username.pref";
|
|
$filename = "$data_dir$username.pref";
|
|
$found = false;
|
|
$found = false;
|
|
if (!file_exists($filename)) {
|
|
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;
|
|
exit;
|
|
}
|
|
}
|
|
$file = fopen($filename, "r");
|
|
$file = fopen($filename, "r");
|
|
@@ -74,7 +74,7 @@
|
|
$filename = "$data_dir$username.pref";
|
|
$filename = "$data_dir$username.pref";
|
|
if (!file_exists($filename)) {
|
|
if (!file_exists($filename)) {
|
|
if (!copy("$data_dir" . "default_pref", $filename)) {
|
|
if (!copy("$data_dir" . "default_pref", $filename)) {
|
|
- echo "Error opening $filename";
|
|
|
|
|
|
+ echo _("Error opening ") ."$filename";
|
|
exit;
|
|
exit;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -103,9 +103,9 @@
|
|
}
|
|
}
|
|
fclose($file);
|
|
fclose($file);
|
|
} else {
|
|
} else {
|
|
- echo "Signature file not found.";
|
|
|
|
|
|
+ echo _("Signature file not found.");
|
|
exit;
|
|
exit;
|
|
}
|
|
}
|
|
return $sig;
|
|
return $sig;
|
|
}
|
|
}
|
|
-?>
|
|
|
|
|
|
+?>
|