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-21 05:37 am

[dw-free] English-strip /mobile

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

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

English strip /mobile.

Patch by [personal profile] anotherdream.

Files modified:
  • htdocs/mobile/index.bml
  • htdocs/mobile/index.bml.text
--------------------------------------------------------------------------------
diff -r 1b3b4d28d511 -r d286fa06c8e7 htdocs/mobile/index.bml
--- a/htdocs/mobile/index.bml	Tue Apr 21 04:31:32 2009 +0000
+++ b/htdocs/mobile/index.bml	Tue Apr 21 05:37:35 2009 +0000
@@ -1,35 +1,32 @@
 <html>
 <head>
-<title><?_code return $LJ::SITENAMESHORT; _code?> Mobile</title>
+<title><?_code BML::ml( ".title", { sitename => $LJ::SITENAMESHORT } ) _code?></title>
 <meta name="viewport" content="width = 320" />
 </head>
 <body>
-<h1><?_code return $LJ::SITENAMESHORT; _code?> Mobile</h1>
+<h1><?_code BML::ml( ".intro.header", { sitename => $LJ::SITENAMESHORT } ) _code?></h1>
 <p><?_code
 {
     my $u = LJ::User->remote;
     my $ret = "";
-    $ret .= $u ? "Hello, <b>" . $u->display_name . "</b>!\n" : "";
+    $ret .= $u ? BML::ml( ".intro.hello", { user => "<b>" . $u->display_name . "</b>" } ) . "\n" : "";
 
-    $ret .= "<p>Welcome to the mobile version of $LJ::SITENAMESHORT.</p>"
+    $ret .= "<p>" . BML::ml( ".intro.text", { sitename => $LJ::SITENAMESHORT } ) . "</p>"
         unless $u;
 
-    $ret .= "<h2>Options:</h2><ul>";
+    $ret .= "<h2><?_ml .options.header _ml?></h2><ul>";
 
     unless ($u) {
-	$ret .= <<OPTS
-<li><a href="login.bml">Log in</a> -- required</li>
-OPTS
-
+        $ret .= "<li>" . BML::ml( ".options.login_prompt", { aopts => "href='login.bml'"  } ) . "</li>";
     }
 
 
     if ($u) {
-	$ret .= "<li><a href='login.bml'>Log in</a> -- you're currently logged in as ";
+        $ret .= "<li>" . BML::ml( ".options.logged_in", { aopts => "href='login'" } );
         $ret .= $u->display_name . "</li>";
-        $ret .= '<li><a href="post.bml">Post to LiveJournal</a></li>'
+        $ret .= "<li>" . BML::ml( ".options.post", { aopts => "href='post'", sitename => $LJ::SITENAMESHORT } ). "</li>"
             unless $u->{'journaltype'} eq 'I';
-        $ret .= '<li><a href="friends.bml">Read friends page</a></li>';
+        $ret .= "<li>" . BML::ml( ".options.readingpage", { aopts => "href='read'" } ) . "</li>";
     }
 
 return $ret;
diff -r 1b3b4d28d511 -r d286fa06c8e7 htdocs/mobile/index.bml.text
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/htdocs/mobile/index.bml.text	Tue Apr 21 05:37:35 2009 +0000
@@ -0,0 +1,17 @@
+.title=[[sitename]] Mobile
+
+.intro.header=[[sitename]] Mobile
+
+.intro.hello=Hello, [[user]]!
+
+.intro.text=Welcome to the mobile version of [[sitename]].
+
+.options.header=Options
+
+.options.login_prompt=<a [[aopts]]>Log in</a> -- required
+
+.options.logged_in=<a [[aopts]]>Log in</a> -- you're currently logged in as 
+
+.options.post=<a [[aopts]]>Post to [[sitename]]</a>
+
+.options.readingpage=<a [[aopts]]>Your reading page</a>
--------------------------------------------------------------------------------