Use the remote user's language, or if not set, the site's default 
language.

        Patch by afuna. 

diffs (12 lines):

diff -r b8d88b12b7fc -r 50aa26b65ec0 cgi-bin/LJ/S2.pm
--- a/cgi-bin/LJ/S2.pm  Thu Jul 16 00:33:42 2009 -0500
+++ b/cgi-bin/LJ/S2.pm  Thu Jul 16 19:04:02 2009 -0500
@@ -69,7 +69,7 @@ sub make_journal
         return;
     }
 
-    my $lang = 'en';
+    my $lang = $remote && $remote->prop( "browselang" );
     LJ::run_hook('set_s2bml_lang', $ctx, \$lang);
 
     # note that's it's very important to pass LJ::Lang::get_text here 
explicitly
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to