r88205 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88204‎ | r88205 | r88206 >
Date:22:56, 15 May 2011
Author:ashley
Status:deferred
Tags:
Comment:
SocialProfile: i18n cleanup for UserProfile -- internal log names (like 'rights' in Special:Log/rights) probably shouldn't be translated
Modified paths:
  • /trunk/extensions/SocialProfile/UserProfile/SpecialEditProfile.php (modified) (history)
  • /trunk/extensions/SocialProfile/UserProfile/SpecialRemoveAvatar.php (modified) (history)
  • /trunk/extensions/SocialProfile/UserProfile/SpecialUpdateProfile.php (modified) (history)
  • /trunk/extensions/SocialProfile/UserProfile/SpecialUploadAvatar.php (modified) (history)
  • /trunk/extensions/SocialProfile/UserProfile/UserProfile.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/UserProfile/SpecialRemoveAvatar.php
@@ -65,12 +65,12 @@
6666 $this->deleteImage( $user_id, 'l' );
6767 $this->deleteImage( $user_id, 'ml' );
6868
69 - $log = new LogPage( wfMsgForContent( 'user-profile-picture-log' ) );
 69+ $log = new LogPage( 'avatar' );
7070 if ( !$wgUploadAvatarInRecentChanges ) {
7171 $log->updateRecentChanges = false;
7272 }
7373 $log->addEntry(
74 - wfMsg( 'user-profile-picture-log' ),
 74+ 'avatar',
7575 $wgUser->getUserPage(),
7676 wfMsg( 'user-profile-picture-log-delete-entry', $user_deleted->getName() )
7777 );
Index: trunk/extensions/SocialProfile/UserProfile/SpecialUpdateProfile.php
@@ -104,12 +104,12 @@
105105
106106 UserProfile::clearCache( $wgUser->getID() );
107107
108 - $log = new LogPage( wfMsgForContent( 'user-profile-update-profile' ) );
 108+ $log = new LogPage( 'profile' );
109109 if ( !$wgUpdateProfileInRecentChanges ) {
110110 $log->updateRecentChanges = false;
111111 }
112112 $log->addEntry(
113 - wfMsgForContent( 'user-profile-update-profile' ),
 113+ 'profile',
114114 $wgUser->getUserPage(),
115115 wfMsgForContent( 'user-profile-update-log-section' ) .
116116 " '{$section}'"
Index: trunk/extensions/SocialProfile/UserProfile/SpecialEditProfile.php
@@ -88,7 +88,7 @@
8989
9090 UserProfile::clearCache( $target->getID() );
9191
92 - $log = new LogPage( wfMsgForContent( 'user-profile-update-profile' ) );
 92+ $log = new LogPage( 'profile' );
9393 if ( !$wgUpdateProfileInRecentChanges ) {
9494 $log->updateRecentChanges = false;
9595 }
Index: trunk/extensions/SocialProfile/UserProfile/UserProfile.i18n.php
@@ -93,7 +93,6 @@
9494 'user-profile-update-saved' => 'Your profile has been saved',
9595 'user-profile-edit-profile-update-saved' => 'The user\'s profile was successfully saved',
9696 'user-profile-update-log-section' => 'changed section',
97 - 'user-profile-update-profile' => 'profile',
9897 'user-profile-default-country' => 'United States',
9998 'user-profile-points' => '$1 {{PLURAL:$1|point|points}}',
10099 'user-profile-section-personal' => 'Personal information',
@@ -193,7 +192,6 @@
194193 'avatarlogpage' => 'Avatar upload log',
195194 'avatarlogpagetext' => 'This is a log of user avatar uploads',
196195 'avatarlogentry' => '', # For compatibility, don't translate this
197 - 'user-profile-picture-log' => 'avatar',
198196 'user-profile-picture-log-entry' => 'uploaded new avatar',
199197 'user-profile-picture-log-delete-entry' => 'deleted $1\'s avatar',
200198 'userprofile-country-list' => '
Index: trunk/extensions/SocialProfile/UserProfile/SpecialUploadAvatar.php
@@ -68,12 +68,12 @@
6969 private function showSuccess( $ext ) {
7070 global $wgUser, $wgOut, $wgDBname, $wgUploadPath, $wgUploadAvatarInRecentChanges;
7171
72 - $log = new LogPage( wfMsgForContent( 'user-profile-picture-log' ) );
 72+ $log = new LogPage( 'avatar' );
7373 if ( !$wgUploadAvatarInRecentChanges ) {
7474 $log->updateRecentChanges = false;
7575 }
7676 $log->addEntry(
77 - wfMsgForContent( 'user-profile-picture-log' ),
 77+ 'avatar',
7878 $wgUser->getUserPage(),
7979 wfMsgForContent( 'user-profile-picture-log-entry' )
8080 );

Status & tagging log