журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[livejournal] r22679: LJSUP-13327: XML RPC: parseljtags=true a...

Committer: nnikulochkina
LJSUP-13327: XML RPC: parseljtags=true and video
U   trunk/cgi-bin/ljtextutil.pl
Modified: trunk/cgi-bin/ljtextutil.pl
===================================================================
--- trunk/cgi-bin/ljtextutil.pl	2012-08-16 13:56:23 UTC (rev 22678)
+++ trunk/cgi-bin/ljtextutil.pl	2012-08-16 14:02:05 UTC (rev 22679)
@@ -863,10 +863,12 @@
        } else {
            $name = "#$pollid";
        }
-       $args{event} =~ s#<lj-poll-$pollid>#<a href="$LJ::SITEROOT/poll/?id=$pollid" target="_blank" >View Poll: $name.</a>#g;
+       my $polltext = LJ::Lang::ml('entry.ljpoll', {name=>$name});
+       $args{event} =~ s#<lj-poll-$pollid>#<a href="$LJ::SITEROOT/poll/?id=$pollid" target="_blank" >$polltext</a>#g;
     }
     
-    $args{event} =~ s#<lj\-embed[^>]+/>#<a href="$args{embed_url}">View movie.</a>#g;
+    my $embedtext = LJ::Lang::ml('entry.ljembed');
+    $args{event} =~ s#<lj\-embed[^>]+/>#<a href="$args{embed_url}">$embedtext</a>#g;
     while ( $args{event} =~ /<lj\s+user="([^>"]+)"\s*\/?>/g ){
         # follow the documentation - no about communites, openid or syndicated, just user
         my $username = $1;

Tags: livejournal, nikulochkina, nnikulochkina, pl
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