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

[livejournal] r19323: LJSUP-9099: Some problems with language ...

Committer: gariev
LJSUP-9099: Some problems with language of variable when viewing community as non-authorized user

U   trunk/htdocs/js/contextualhover.js
U   trunk/htdocs/tools/endpoints/ctxpopup.bml
Modified: trunk/htdocs/js/contextualhover.js
===================================================================
--- trunk/htdocs/js/contextualhover.js	2011-06-20 07:57:53 UTC (rev 19322)
+++ trunk/htdocs/js/contextualhover.js	2011-06-20 08:15:09 UTC (rev 19323)
@@ -528,8 +528,9 @@
 				&& Site.current_journal.is_comm === "1" ) {
 		jQuery( '<a/>', {
 			href: Site.current_journal.url_journal + '/?poster=' + data.username,
-			text: ( Site.remoteUser === data.username ) ? ( Site.ml_text.ml_filter_by_poster_me || 'Filter community by me' ) :
-							( Site.ml_text.ml_filter_by_poster || 'Filter community by poster' )
+			text: ( Site.remoteUser === data.username ) 
+                    ? ( data.ml_filter_by_poster_me || 'Filter community by me' ) 
+                    : ( data.ml_filter_by_poster || 'Filter community by poster' )
 		} )
 		.appendTo(content);
 		content.appendChild(document.createElement('br'));

Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml
===================================================================
--- trunk/htdocs/tools/endpoints/ctxpopup.bml	2011-06-20 07:57:53 UTC (rev 19322)
+++ trunk/htdocs/tools/endpoints/ctxpopup.bml	2011-06-20 08:15:09 UTC (rev 19323)
@@ -140,6 +140,10 @@
     foreach my $key (@ml_keys) {
         $ret{"ml_$key"} = $ML{".$key"};
     }
+    if ($u->is_community) {
+        $ret{'ml_filter_by_poster_me'}  = $ML{'ml_filter_by_poster_me'};
+        $ret{'ml_filter_by_poster'}     = $ML{'ml_filter_by_poster'};
+    }
     if ($u && $remote && $u==$remote && $u->is_identity) {
         $ret{"ml_upgrade_account"} = $ML{"horizon.nav.identity_convert"};
     }

Tags: bml, gariev, js, livejournal
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