Oops, undo the english-stripping, and add comment explaining why we
need to be careful about english-stripping the page.
Patch by fu.
diffs (38 lines):
diff -r eff6f5a0005f -r b97315fc8d4b htdocs/latest.bml
--- a/htdocs/latest.bml Wed Jun 16 01:26:31 2010 +0800
+++ b/htdocs/latest.bml Wed Jun 16 13:48:22 2010 +0800
@@ -129,14 +129,19 @@ body<=
$tagfeeds .= "<br /><br />" . LJ::tag_cloud( $taghr ) . "\n";
}
-
-
- my $ret = "";
- $ret .= "<?p " . BML::ml( ".intro", { sitename => $LJ::SITENAME } ) . "
p?>";
- $ret .= "<?p " . BML::ml( ".intro.moods", { sitenameshort =>
$LJ::SITENAMESHORT, aopts => "href='$LJ::SITEROOT/latest/mood'" } ) . " p?>";
-
# put filtering options in a standout box
$tagfeeds = "<?standout $tagfeeds standout?><br />" if $tagfeeds;
+
+ # FIXME: don't english-strip this just yet. Needs some extra work
+ # The entire page is cached for efficiency, so if anyone does ?uselang=x
+ # /latest will show as that language to all users until cache expires
+ my $ret = <<EOC;
+<?p Latest things on $LJ::SITENAME. This page shows you a sample of the most
recently posted things that are available on the site. The feed is updated
every minute or two. Also, new posts and comments won't show up until five (5)
minutes after they are posted. Just in case they are accidentally posted
public. p?>
+
+<?p Other things you can do with the latest entries: find out the <a
href="$LJ::SITEROOT/latest/mood">general mood of $LJ::SITENAMESHORT</a>. p?>
+
+$tagfeeds
+EOC
# great, we now have objects, we can construct our results in some fashion
my $now = time;
diff -r eff6f5a0005f -r b97315fc8d4b htdocs/latest.bml.text
--- a/htdocs/latest.bml.text Wed Jun 16 01:26:31 2010 +0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-;; -*- coding: utf-8 -*-
-
-.intro=Latest things on [[sitename]]. This page shows you a sample of the
most recently posted things that are available on the site. The feed is
updated every minute or two. Also, new posts and comments won't show up until
five (5) minutes after they are posted. Just in case they are accidentally
posted public.
-
-.intro.moods=Other things you can do with the latest entries: find out the <a
[[aopts]]>general mood of [[sitenameshort]]</a>.
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog