http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88205
Revision: 88205
Author: ashley
Date: 2011-05-15 22:56:44 +0000 (Sun, 15 May 2011)
Log Message:
-----------
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
trunk/extensions/SocialProfile/UserProfile/SpecialRemoveAvatar.php
trunk/extensions/SocialProfile/UserProfile/SpecialUpdateProfile.php
trunk/extensions/SocialProfile/UserProfile/SpecialUploadAvatar.php
trunk/extensions/SocialProfile/UserProfile/UserProfile.i18n.php
Modified: trunk/extensions/SocialProfile/UserProfile/SpecialEditProfile.php
===================================================================
--- trunk/extensions/SocialProfile/UserProfile/SpecialEditProfile.php
2011-05-15 22:35:33 UTC (rev 88204)
+++ trunk/extensions/SocialProfile/UserProfile/SpecialEditProfile.php
2011-05-15 22:56:44 UTC (rev 88205)
@@ -88,7 +88,7 @@
UserProfile::clearCache( $target->getID() );
- $log = new LogPage( wfMsgForContent(
'user-profile-update-profile' ) );
+ $log = new LogPage( 'profile' );
if ( !$wgUpdateProfileInRecentChanges ) {
$log->updateRecentChanges = false;
}
Modified: trunk/extensions/SocialProfile/UserProfile/SpecialRemoveAvatar.php
===================================================================
--- trunk/extensions/SocialProfile/UserProfile/SpecialRemoveAvatar.php
2011-05-15 22:35:33 UTC (rev 88204)
+++ trunk/extensions/SocialProfile/UserProfile/SpecialRemoveAvatar.php
2011-05-15 22:56:44 UTC (rev 88205)
@@ -65,12 +65,12 @@
$this->deleteImage( $user_id, 'l' );
$this->deleteImage( $user_id, 'ml' );
- $log = new LogPage( wfMsgForContent(
'user-profile-picture-log' ) );
+ $log = new LogPage( 'avatar' );
if ( !$wgUploadAvatarInRecentChanges ) {
$log->updateRecentChanges = false;
}
$log->addEntry(
- wfMsg( 'user-profile-picture-log' ),
+ 'avatar',
$wgUser->getUserPage(),
wfMsg( 'user-profile-picture-log-delete-entry',
$user_deleted->getName() )
);
Modified: trunk/extensions/SocialProfile/UserProfile/SpecialUpdateProfile.php
===================================================================
--- trunk/extensions/SocialProfile/UserProfile/SpecialUpdateProfile.php
2011-05-15 22:35:33 UTC (rev 88204)
+++ trunk/extensions/SocialProfile/UserProfile/SpecialUpdateProfile.php
2011-05-15 22:56:44 UTC (rev 88205)
@@ -104,12 +104,12 @@
UserProfile::clearCache( $wgUser->getID() );
- $log = new LogPage( wfMsgForContent(
'user-profile-update-profile' ) );
+ $log = new LogPage( 'profile' );
if ( !$wgUpdateProfileInRecentChanges ) {
$log->updateRecentChanges = false;
}
$log->addEntry(
- wfMsgForContent( 'user-profile-update-profile'
),
+ 'profile',
$wgUser->getUserPage(),
wfMsgForContent(
'user-profile-update-log-section' ) .
" '{$section}'"
Modified: trunk/extensions/SocialProfile/UserProfile/SpecialUploadAvatar.php
===================================================================
--- trunk/extensions/SocialProfile/UserProfile/SpecialUploadAvatar.php
2011-05-15 22:35:33 UTC (rev 88204)
+++ trunk/extensions/SocialProfile/UserProfile/SpecialUploadAvatar.php
2011-05-15 22:56:44 UTC (rev 88205)
@@ -68,12 +68,12 @@
private function showSuccess( $ext ) {
global $wgUser, $wgOut, $wgDBname, $wgUploadPath,
$wgUploadAvatarInRecentChanges;
- $log = new LogPage( wfMsgForContent( 'user-profile-picture-log'
) );
+ $log = new LogPage( 'avatar' );
if ( !$wgUploadAvatarInRecentChanges ) {
$log->updateRecentChanges = false;
}
$log->addEntry(
- wfMsgForContent( 'user-profile-picture-log' ),
+ 'avatar',
$wgUser->getUserPage(),
wfMsgForContent( 'user-profile-picture-log-entry' )
);
Modified: trunk/extensions/SocialProfile/UserProfile/UserProfile.i18n.php
===================================================================
--- trunk/extensions/SocialProfile/UserProfile/UserProfile.i18n.php
2011-05-15 22:35:33 UTC (rev 88204)
+++ trunk/extensions/SocialProfile/UserProfile/UserProfile.i18n.php
2011-05-15 22:56:44 UTC (rev 88205)
@@ -93,7 +93,6 @@
'user-profile-update-saved' => 'Your profile has been saved',
'user-profile-edit-profile-update-saved' => 'The user\'s profile was
successfully saved',
'user-profile-update-log-section' => 'changed section',
- 'user-profile-update-profile' => 'profile',
'user-profile-default-country' => 'United States',
'user-profile-points' => '$1 {{PLURAL:$1|point|points}}',
'user-profile-section-personal' => 'Personal information',
@@ -193,7 +192,6 @@
'avatarlogpage' => 'Avatar upload log',
'avatarlogpagetext' => 'This is a log of user avatar uploads',
'avatarlogentry' => '', # For compatibility, don't translate this
- 'user-profile-picture-log' => 'avatar',
'user-profile-picture-log-entry' => 'uploaded new avatar',
'user-profile-picture-log-delete-entry' => 'deleted $1\'s avatar',
'userprofile-country-list' => '
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs