mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-04-15 03:45 pm

[dw-free] finish stripping /register.bml

[commit: http://hg.dwscoalition.org/dw-free/rev/00b361f4388c]

http://bugs.dwscoalition.org/show_bug.cgi?id=771

English strip register.bml.

Patch by [personal profile] kareila.

Files modified:
  • htdocs/register.bml
  • htdocs/register.bml.text
--------------------------------------------------------------------------------
diff -r d242f067f260 -r 00b361f4388c htdocs/register.bml
--- a/htdocs/register.bml	Wed Apr 15 05:42:36 2009 +0000
+++ b/htdocs/register.bml	Wed Apr 15 15:45:24 2009 +0000
@@ -25,13 +25,13 @@ body<=
  if ($foruser) {
      $foru = LJ::load_user($foruser);
 
-     return "<?p User does not exist. p?>"
+     return "<?p $ML{'.error.usernonexistent'} p?>"
          unless $foru;
 
-     return "<?p You do not have access to send email validation requests to other people. p?>"
+     return "<?p $ML{'.error.noaccess'} p?>"
          unless (LJ::check_priv($remote, "siteadmin", "users") || LJ::check_priv($remote, "siteadmin", "*"));
 
-     return "<?p That user's email address is already validated. p?>"
+     return "<?p $ML{'.error.valid'} p?>"
          if $foru->is_validated;
  }
 
@@ -183,7 +183,4 @@ _code?>
 <=body
 head=><?_code     LJ::need_res('stc/lj_base.css', 'stc/lj_settings.css'); _code?>
 title=><?_code return $title; _code?>
-page?><?_c <LJDEP>
-link: htdocs/login.bml, htdocs/manage/profile/index.bml
-link: htdocs/update.bml
-</LJDEP> _c?>
+page?>
diff -r d242f067f260 -r 00b361f4388c htdocs/register.bml.text
--- a/htdocs/register.bml.text	Wed Apr 15 05:42:36 2009 +0000
+++ b/htdocs/register.bml.text	Wed Apr 15 15:45:24 2009 +0000
@@ -32,9 +32,15 @@ Sincerely,
 
 .error.invalidcode=Invalid validation code. The link in the email may have expired. Please <a [[aopts]]>request a new verification email</a>.
 
+.error.noaccess=You do not have access to send email validation requests to other people.
+
 .error.useralreadyvalidated=The email address for [[user]] has already been validated.
 
+.error.usernonexistent=User does not exist.
+
 .error.usernotfound=User not found.
+
+.error.valid=That user's email address is already validated.
 
 .new.101.community.answer=Discussion groups built around every topic imaginable. From music to ninjas, there's something here for you.
 
--------------------------------------------------------------------------------