Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[ljcom] r10968: LJSUP-9157: Self promo

Committer: gariev
LJSUP-9157: Self promo
U   trunk/cgi-bin/LJ/Pay/Payment/PayItem/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment/PayItem/SelfPromo.pm	2011-09-06 12:05:58 UTC (rev 10967)
+++ trunk/cgi-bin/LJ/Pay/Payment/PayItem/SelfPromo.pm	2011-09-06 13:47:11 UTC (rev 10968)
@@ -71,9 +71,10 @@
     my ( $self, $payment, $buyer_u, $rcpt_u, $note_rec_change ) = @_;
 
     # this should be temporary until we l10n the shop
+    my $lang = ($rcpt_u && $rcpt_u->prop('browselang')) ? $rcpt_u->prop('browselang') : $LJ::DEFAULT_LANG;
     my $ml = sub {
         my ( $code, $params ) = @_;
-        return LJ::Lang::get_text( $LJ::DEFAULT_LANG, $code, undef, $params );
+        return LJ::Lang::get_text( $lang, $code, undef, $params );
     };
 
     my $lock = LJ::Pay::SelfPromo->lock;

Tags: gariev, ljcom, 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