Page MenuHomePhabricator

Remove and replace $wgLang in extensions under the social tools umbrella
Open, Needs TriagePublic

Description

BlogPage

BlogPageClass.php:       * The return value of this function can be passed to the various $wgLang

LinkFilter

LinkPage.php:           global $wgLang;
LinkPage.php:           $create_date = $wgLang->timeanddate(

MiniInvite

InviteFriendOnEdit.php:                 global $wgLang;
InviteFriendOnEdit.php:                         if ( $wgLang->uc( $row->cl_to ) == 'OPINIONS' ) {

PollNY

PollClass.php:          global $wgLang;
PollClass.php:                          $percent = str_replace( '.0', '', $wgLang->formatNum( $row->pc_vote_count / $poll_vote_count * 100, 1 ) );

SocialProfile

UserActivity/UserActivityClass.php:             global $wgLang;
UserActivity/UserActivityClass.php:                     $user_name_short = $wgLang->truncate( $row->r_user_name, 25 );
UserActivity/UserActivityClass.php:             global $wgLang;
UserActivity/UserActivityClass.php:                     $user_name_short = $wgLang->truncate( $row->um_user_name, 15 );
UserActivity/UserActivityClass.php:             global $wgLang;
UserActivity/UserActivityClass.php:                     $user_name_short = $wgLang->truncate( $row->us_user_name, 15 );
UserActivity/UserActivityClass.php:             global $wgLang;
UserActivity/UserActivityClass.php:                             $user_name_short = $wgLang->truncate( $user_name, 15 );
UserActivity/UserActivityClass.php:             global $wgLang;
UserActivity/UserActivityClass.php:             $preview = $wgLang->truncate( $comment, 75 );
UserProfile/UserProfileClass.php:                       //return $day . ' ' . $wgLang->getMonthNameGen( $month );
UserProfile/UserProfilePage.php:                        global $wgLang;
UserProfile/UserProfilePage.php:                        $formattedValue = $wgLang->formatNum( $value );
UserProfile/UserProfilePage.php:                global $wgUser, $wgLang;
UserProfile/UserProfilePage.php:                                                        $wgLang->formatNum( $stats_data['points'] )
UserProfile/UserProfilePage.php:                        $output .= $wgLang->pipeList( array(
UserProfile/UserProfilePage.php:                                $output .= $wgLang->pipeList( array(
UserProfile/UserProfilePage.php:                                        $output .= $wgLang->pipeList( array(
UserProfile/UserProfilePage.php:                                        $output .= $wgLang->pipeList( array(
UserProfile/UserProfilePage.php:                global $wgMemc, $wgUser, $wgUserProfileDisplay, $wgLang;
UserProfile/UserProfilePage.php:                                $user_name = $wgLang->truncate( $friend['user_name'], 9, '..' );
UserStats/TopUsersTag.php:      global $wgLang;
UserStats/TopUsersTag.php:                              <span class=\"top-fans-points\"><b>+" . $wgLang->formatNum( $fan['points'] ) . '</b> ' .
UserWelcome/UserWelcomeClass.php:               global $wgUser, $wgLang;
UserWelcome/UserWelcomeClass.php:                                                       $wgLang->formatNum( $stats_data['points'] )
UserWelcome/UserWelcomeClass.php:                                               $wgLang->formatNum( $user_level->getPointsNeededToAdvance() )

TopLists

TopList.class.php:              global $wgLang;
TopList.class.php:              return !empty( $messages ) ? $wgLang->commaList( $messages ) : wfMessage( 'toplists-items-nochange' )->inContentLanguage()->text();
TopListHelper.class.php:                global $wgRequest, $wgUser, $wgFileExtensions, $wgLang;
TopListHelper.class.php:                                                                $wgLang->formatNum( count( $wgFileExtensions ) )

Video

VideoGallery.php:               global $wgLang;
VideoGallery.php:                               Linker::linkKnown( $nt, htmlspecialchars( $wgLang->truncate( $nt->getText(), 30, '...' ) ) ) . "<br />\n" :
VideoPage.php:          global $wgUser, $wgLang;
VideoPage.php:          $datetime = $wgLang->timeanddate( $timestamp, true );

WikiForum

Forum.php:              global $wgWikiForumLogInRC, $wgUser, $wgRequest, $wgLang;
Forum.php:              $shortText = $wgLang->truncate( $description, 50 );
Reply.php:              global $wgRequest, $wgUser, $wgWikiForumAllowAnonymous, $wgWikiForumLogInRC, $wgLang;
Reply.php:              $shortText = $wgLang->truncate( $text, 50 );
Thread.php:             global $wgRequest, $wgUser, $wgWikiForumAllowAnonymous, $wgWikiForumLogInRC, $wgLang;
Thread.php:             $shortText = $wgLang->truncate( $text, 50 );
WikiForumClass.php:             global $wgOut, $wgRequest, $wgUser, $wgLang;
WikiForumGui.php:               global $wgLang;
WikiForumGui.php:                       $wgLang->timeanddate( $timestamp ),
WikiForumGui.php:                       $wgLang->date( $timestamp ),
WikiForumGui.php:                       $wgLang->time( $timestamp )

Event Timeline

SamanthaNguyen renamed this task from Remove $wgLang in extensions under the social tools umbrella to Remove and replace $wgLang in extensions under the social tools umbrella.Mar 18 2017, 3:53 AM