ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[livejournal] r17674: LJSUP-7323: Language of System message s...

Committer: ssafronova
LJSUP-7323: Language of System message should be inherited from account insted of style
U   trunk/cgi-bin/LJ/Widget/SiteMessages.pm
Modified: trunk/cgi-bin/LJ/Widget/SiteMessages.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/SiteMessages.pm	2010-11-12 08:16:51 UTC (rev 17673)
+++ trunk/cgi-bin/LJ/Widget/SiteMessages.pm	2010-11-12 09:56:25 UTC (rev 17674)
@@ -13,8 +13,13 @@
     my $class = shift;
     my $message = shift;
 
+    my $lang;
+    my $remote = LJ::get_remote();
+    $lang = $remote->prop("browselang") if $remote; # exlude s2 context language from opportunities,
+        # because S2 journal code executes BML::set_language($lang, \&LJ::Lang::get_text) with its own language
+
     my $mid = $message->{'mid'};
-    my $text = $class->ml( $class->ml_key("$mid.text") );
+    my $text = $class->ml( $class->ml_key("$mid.text"), undef, $lang );
     $text .= "<i class='close' lj-sys-message-close='1'></i>";
     ## LJ::CleanHTML::clean* will fix broken HTML and expand 
     ## <lj user> tags and lj-sys-message-close attributes

Tags: livejournal, pm, ssafronova
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 

  • 0 comments