juks (juks) wrote in changelog,
juks
juks
changelog

[livejournal] r18788: LJSV-1495 Language changes on a tab "Dis...

Committer: iaskarov
LJSV-1495 Language changes on a tab "Display"
U   trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm
===================================================================
--- trunk/cgi-bin/LJ/S2.pm	2011-04-05 04:43:39 UTC (rev 18787)
+++ trunk/cgi-bin/LJ/S2.pm	2011-04-05 05:21:58 UTC (rev 18788)
@@ -715,10 +715,14 @@
         my $bl = $remote->prop('browselang');
         
         if($bl) {
-            my $style = LJ::Customize->save_language($u, $bl, 'return' => 1);
+            my %journal_style = LJ::S2::get_style($u, "verify");
+            
+            unless ($journal_style{i18nc}) {
+                my $style = LJ::Customize->save_language($u, $bl, 'return' => 1);
 
-            $style{i18nc} = $style->{i18nc} if ($style->{i18nc});
-            $style{i18n} = $style->{i18n}   if ($style->{i18n});
+                $style{i18nc} = $style->{i18nc} if ($style->{i18nc});
+                $style{i18n} = $style->{i18n}   if ($style->{i18n});
+            }
         }   
     }
 

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