From 5ed3420173f283db051553e8f83729e55aaa5229 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sat, 30 Dec 2017 12:53:12 -0700 Subject: [PATCH] Add i18n to change_password --- apps/change_password.php | 15 ++++++++++----- lang/en_us.php | 3 +++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/apps/change_password.php b/apps/change_password.php index d57e603..f012820 100644 --- a/apps/change_password.php +++ b/apps/change_password.php @@ -6,16 +6,21 @@ dieifnotloggedin(); -$APPS["change_password"]["title"] = "Change Password"; +$oldpass = lang("current password", false); +$newpass = lang("new password", false); +$conpass = lang("confirm password", false); +$change = lang("change password", false); + +$APPS["change_password"]["title"] = lang("change password", false); $APPS["change_password"]["icon"] = "key"; $APPS["change_password"]["content"] = << - - - + + +
- + CONTENTEND; diff --git a/lang/en_us.php b/lang/en_us.php index e9a2687..97c90a5 100644 --- a/lang/en_us.php +++ b/lang/en_us.php @@ -40,6 +40,9 @@ $STRINGS = [ "new password mismatch" => "The new passwords did not match. Try again.", "weak password" => "Password does not meet requirements.", "password updated" => "Password updated successfully.", + "current password" => "Current password", + "new password" => "New password", + "confirm password" => "New password (again)", "setup 2fa" => "Setup 2-factor authentication", "2fa removed" => "2-factor authentication disabled.", "2fa enabled" => "2-factor authentication activated.",