Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[ljcom] r11301: LJSV-1830: Twitter digest posts contain ...

Committer: anazarov
LJSV-1830: Twitter digest posts contain Cyrillic subject lines when they shouldn't.
U   trunk/cgi-bin/LJ/TwitterDigest.pm
Modified: trunk/cgi-bin/LJ/TwitterDigest.pm
===================================================================
--- trunk/cgi-bin/LJ/TwitterDigest.pm	2011-12-27 11:17:35 UTC (rev 11300)
+++ trunk/cgi-bin/LJ/TwitterDigest.pm	2011-12-28 10:45:47 UTC (rev 11301)
@@ -248,12 +248,12 @@
             'time_zone' => $u->prop('timezone') || 'GMT',
         );
 
-        my $weekday = LJ::Lang::ml($weekdays_ml[$dt->wday_0]);
+        my $weekday = LJ::Lang::get_text($u->prop('browselang'), $weekdays_ml[$dt->wday_0]);
 
         my $text = $tw->text_formatted;
 
         if ( LJ::SpamFilter->is_spam($text) ) {
-            $text = LJ::Lang::ml('twitter_digest.spam');
+            $text = LJ::Lang::get_text($u->prop('browselang'), 'twitter_digest.spam');
         }
 
         push @tweets_display, {
@@ -293,9 +293,9 @@
         'ver' => 1,
         'username' => $u->user,
         'event' => $evt,
-        'subject' => LJ::Lang::ml('twitter_digest.subject'),
+        'subject' => LJ::Lang::get_text($u->prop('browselang'), 'twitter_digest.subject'),
         'props' => {
-            'taglist' => LJ::Lang::ml('twitter_digest.tags'),
+            'taglist' => LJ::Lang::get_text($u->prop('browselang'), 'twitter_digest.tags'),
         },
         'tz'    => 'guess',
 

Tags: anazarov, ljcom, nfokz, pm
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