diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index 047fb1865..e9ebc183f 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -17,17 +17,17 @@ $con_pw = $_POST["CONFIRM_PASSWORD"]; if ($old_pw == "") { - print "ERROR: Old password cannot be blank."; + print "ERROR: ".__("Old password cannot be blank."); return; } if ($new_pw == "") { - print "ERROR: New password cannot be blank."; + print "ERROR: ".__("New password cannot be blank."); return; } if ($new_pw != $con_pw) { - print "ERROR: Entered passwords do not match."; + print "ERROR: ".__("Entered passwords do not match."); return; } @@ -48,9 +48,9 @@ db_query($link, "UPDATE ttrss_users SET pwd_hash = '$new_pw_hash' WHERE id = '$active_uid'"); - print "Password has been changed."; + print __("Password has been changed."); } else { - print "ERROR: Old password is incorrect."; + print "ERROR: ".__('Old password is incorrect.'); } } @@ -180,8 +180,8 @@ pwd_hash = 'SHA1:".sha1("password")."')"); if (db_num_rows($result) != 0) { - print format_warning("Your password is at default value, - please change it.", "default_pass_warning"); + print format_warning(__("Your password is at default value, + please change it."), "default_pass_warning"); } /* if ($_SESSION["pwd_change_result"] == "failed") { @@ -195,11 +195,11 @@ $_SESSION["pwd_change_result"] = ""; */ if ($_SESSION["prefs_op_result"] == "reset-to-defaults") { - print format_notice("The configuration was reset to defaults."); + print format_notice(__("The configuration was reset to defaults.")); } if ($_SESSION["prefs_op_result"] == "save-config") { - print format_notice("The configuration was saved."); + print format_notice(__("The configuration was saved.")); } $_SESSION["prefs_op_result"] = ""; @@ -207,7 +207,7 @@ print "