uncon (uncon) wrote in lj_dev,
uncon
uncon
lj_dev

console fix

Here's a patch to the console. This has been bothering me for obvious reasons, so I decided I'd fix it.

--- livejournal/htdocs/admin/console/index.bml  Thu Aug  8 07:41:41 2002
+++ local/htdocs/admin/console/index.bml        Fri Aug 16 15:19:31 2002
@@ -18,7 +18,7 @@
          return "<b>Error:</b> requires post.";
      }

-     $ret .= "[ <A HREF=\"./\">console</A> | <A HREF=\"reference.bml\">reference</A> ]<P>";
+     $ret .= "[ <A HREF=\"./\"><?_ml .console _ml?></A> | <A HREF=\"reference.bml\"><?_ml .reference _ml?></A> ]<P>";

      foreach my $cmd (split(/\n/, $commands))
      {
@@ -76,13 +76,13 @@

      $ret .= "<FORM METHOD=POST><TABLE WIDTH=400><TR VALIGN=BOTTOM>";
      $ret .= "<TD><IMG SRC=\"$LJ::IMGPREFIX/nerd_small.jpg\" WIDTH=167 HEIGHT=169 HSPACE=2 VSPACE=2></TD>";
-     $ret .= "<TD><B><TT>command console.</TT></B>";
-     $ret .= "<P>welcome to the livejournal console.  from here administrators can do administrative type things.  you will forget the commands, so there is a <A HREF=\"reference.bml\">reference</A>.</TD>";
+     $ret .= "<TD><B><TT><?_ml .title _ml?></TT></B>";
+     $ret .= "<P><?_ml .intro _ml?></TD>";
      $ret .= "</TR>";
      $ret .= "<TR><TD COLSPAN=2>";
-     $ret .= "<P><tt>enter commands:</tt><BR>";
+     $ret .= "<P><tt><?_ml .enter _ml?></tt><BR>";
      $ret .= "<TEXTAREA NAME=commands ROWS=10 COLS=60 WRAP=OFF></TEXTAREA></TD></TR>\n";
-     $ret .= "<TR><TD COLSPAN=2 ALIGN=RIGHT><INPUT TYPE=SUBMIT VALUE=\"execute\"></P></TD></TR></TABLE></FORM>\n";
+     $ret .= "<TR><TD COLSPAN=2 ALIGN=RIGHT><INPUT TYPE=SUBMIT VALUE=\"<?_ml .exec _ml?>\"></P></TD></TR></TABLE></FORM>\n";
      return $ret;
  }
and these needs to be added to en.dat:
/admin/console/index.bml.console=console
/admin/console/index.bml.reference=reference
/admin/console/index.bml.title=Command Console.
/admin/console/index.bml.intro=Welcome to the $LJ::SITENAME console. From here administrators can do administrative type things. You will forget the commands, so there is a <AHREF=\"reference.bml\">reference</A>.
/admin/console/index.bml.enter=Enter commands:
/admin/console/index.bml.exec=Execute


Update: Fixed capitalization and made translatable, but what do I do with $LJ::SITENAME now?
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 11 comments