From 58907e0bffb5a7d2d0bfc05cec28f366432bb3e8 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 22 Jun 2011 20:57:07 +0200 Subject: use php's gettext module Signed-off-by: Florian Pritz --- web/lib/acctfuncs.inc.php | 124 +++++++++++++++++++++++----------------------- 1 file changed, 62 insertions(+), 62 deletions(-) (limited to 'web/lib/acctfuncs.inc.php') diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index b2f0548e..3bdd8d0c 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php @@ -39,34 +39,34 @@ function display_account_form($UTYPE,$A,$U="",$T="",$S="", print " \n"; print ""; - print "".__("Username").":"; + print ""._("Username").":"; print " (".__("required").")"; + print " name='U' value='".htmlspecialchars($U,ENT_QUOTES)."' /> ("._("required").")"; print "\n"; # Only TUs or Devs can promote/demote/suspend a user if ($UTYPE == "Trusted User" || $UTYPE == "Developer") { print ""; - print "".__("Account Type").":"; + print ""._("Account Type").":"; print ""; print "\n"; print ""; - print "".__("Account Suspended").":"; + print ""._("Account Suspended").":"; print ""; @@ -77,43 +77,43 @@ function display_account_form($UTYPE,$A,$U="",$T="",$S="", } print ""; - print "".__("Email Address").":"; + print ""._("Email Address").":"; print " (".__("required").")"; + print " name='E' value='".htmlspecialchars($E,ENT_QUOTES)."' /> ("._("required").")"; print "\n"; print ""; - print "".__("Password").":"; + print ""._("Password").":"; print ""; if ($A != "UpdateAccount") { - print " (".__("required").")"; + print " ("._("required").")"; } print "\n"; print ""; - print "".__("Re-type password").":"; + print ""._("Re-type password").":"; print ""; if ($A != "UpdateAccount") { - print " (".__("required").")"; + print " ("._("required").")"; } print "\n"; print ""; - print "".__("Real Name").":"; + print ""._("Real Name").":"; print ""; print "\n"; print ""; - print "".__("IRC Nick").":"; + print ""._("IRC Nick").":"; print ""; print "\n"; print ""; - print "".__("Language").":"; + print ""._("Language").":"; print "   "; + print " value='"._("Update")."' />   "; } else { print "   "; + print " value='"._("Create")."' />   "; } - print ""; + print ""; print ""; print "\n"; @@ -181,44 +181,44 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="", $dbh = db_connect(); $error = ""; if (empty($E) || empty($U)) { - $error = __("Missing a required field."); + $error = _("Missing a required field."); } if ($TYPE == "new") { # they need password fields for this type of action # if (empty($P) || empty($C)) { - $error = __("Missing a required field."); + $error = _("Missing a required field."); } } else { if (!$UID) { - $error = __("Missing User ID"); + $error = _("Missing User ID"); } } if (!$error && !valid_username($U) && !user_is_privileged($editor_user)) - $error = __("The username is invalid.") . "