Index: trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php |
— | — | @@ -471,7 +471,7 @@ |
472 | 472 | global $wgUserLevels; |
473 | 473 | if( $wgUserLevels ){ |
474 | 474 | $output .= "<div id=\"points-level\"> |
475 | | - <a href=\"{$level_link->escapeFullURL()}\">{$stats_data["points"]}".wfMsg('user-profile-points')."</a> |
| 475 | + <a href=\"{$level_link->escapeFullURL()}\">" . wfMsgExt( 'user-profile-points', 'parsemag', $stats_data["points"] ) . "</a> |
476 | 476 | </div> |
477 | 477 | <div id=\"honorific-level\"> |
478 | 478 | <a href=\"{$level_link->escapeFullURL()}\" rel=\"nofollow\">({$user_level->getLevelName()})</a> |
— | — | @@ -607,9 +607,9 @@ |
608 | 608 | $output .= '</div> |
609 | 609 | <div class="action-left">'; |
610 | 610 | if( intval( str_replace( ",", "", $relationship_count ) ) > 4 ) { |
611 | | - $output .= "{$per_row} ".wfMsg('user-count-separator')." {$relationship_count}"; |
| 611 | + $output .= wfMsg( 'user-count-separator', $per_row, $relationship_count ); |
612 | 612 | } else { |
613 | | - $output .= "{$relationship_count} ".wfMsg('user-count-separator')." {$relationship_count}"; |
| 613 | + $output .= wfMsg( 'user-count-separator', $relationship_count, $relationship_count ); |
614 | 614 | } |
615 | 615 | $output .= '</div> |
616 | 616 | </div> |
— | — | @@ -687,9 +687,9 @@ |
688 | 688 | $output .= '</div> |
689 | 689 | <div class="action-left">'; |
690 | 690 | if( $gift_count > 4 ) { |
691 | | - $output .= "4 ".wfMsg('user-count-separator')." {$gift_count}"; |
| 691 | + $output .= wfMsg( 'user-count-separator', "4", $gift_count ); |
692 | 692 | } else { |
693 | | - $output .= "{$gift_count} ".wfMsg('user-count-separator')." {$gift_count}"; |
| 693 | + $output .= wfMsg( 'user-count-separator', $gift_count, $gift_count ); |
694 | 694 | } |
695 | 695 | $output .= '</div> |
696 | 696 | <div class="cleared"></div> |
— | — | @@ -770,9 +770,9 @@ |
771 | 771 | $output .= '</div> |
772 | 772 | <div class="action-left">'; |
773 | 773 | if( $system_gift_count > 4 ) { |
774 | | - $output .= "4 ".wfMsg('user-count-separator')." {$system_gift_count}"; |
| 774 | + $output .= wfMsg( 'user-count-separator', "4", $system_gift_count ); |
775 | 775 | } else { |
776 | | - $output .= "{$system_gift_count} ".wfMsg('user-count-separator')." {$system_gift_count}"; |
| 776 | + $output .= wfMsg( 'user-count-separator', $system_gift_count, $system_gift_count ); |
777 | 777 | } |
778 | 778 | $output .= "</div> |
779 | 779 | <div class=\"cleared\"></div> |
— | — | @@ -846,9 +846,9 @@ |
847 | 847 | $output .= '</div> |
848 | 848 | <div class="action-left">'; |
849 | 849 | if( $total > 10 ) { |
850 | | - $output .= "10 ".wfMsg('user-count-separator')." {$total}"; |
| 850 | + $output .= wfMsg( 'user-count-separator', "10", $total ); |
851 | 851 | } else if( $total > 0 ) { |
852 | | - $output .= "{$total} ".wfMsg('user-count-separator')." {$total}"; |
| 852 | + $output .= wfMsg( 'user-count-separator', $total, $total ); |
853 | 853 | } |
854 | 854 | $output .= '</div> |
855 | 855 | <div class="cleared"></div> |
— | — | @@ -939,9 +939,9 @@ |
940 | 940 | $output .= '</div> |
941 | 941 | <div class="action-left">'; |
942 | 942 | if( $fanbox_count > 10 ) { |
943 | | - $output .= "10 ".wfMsg('user-count-separator')." {$fanbox_count}"; |
| 943 | + $output .= wfMsg('user-count-separator', "10", $fanbox_count ); |
944 | 944 | } else { |
945 | | - $output .= "{$fanbox_count} ".wfMsg('user-count-separator')." {$fanbox_count}"; |
| 945 | + $output .= wfMsg( 'user-count-separator',$fanbox_count, $fanbox_count); |
946 | 946 | } |
947 | 947 | $output .= '</div> |
948 | 948 | <div class="cleared"></div> |
Index: trunk/extensions/SocialProfile/UserProfile/UserProfile.i18n.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | 'populateuserprofiles' => 'Populate user profiles', |
18 | 18 | 'user-awards-title' => 'Awards', |
19 | 19 | 'user-gifts-title' => 'Gifts', |
20 | | - 'user-count-separator' => 'of', |
| 20 | + 'user-count-separator' => '$1 of $2', |
21 | 21 | 'user-view-all' => 'View all', |
22 | 22 | 'user-upload-image' => 'Upload image', |
23 | 23 | 'user-edit-this' => 'Edit this', |
— | — | @@ -92,7 +92,7 @@ |
93 | 93 | 'user-profile-update-log-section' => 'changed section', |
94 | 94 | 'user-profile-update-profile' => 'profile', |
95 | 95 | 'user-profile-default-country' => 'United States', |
96 | | - 'user-profile-points' => ' points', |
| 96 | + 'user-profile-points' => '$1 {{PLURAL:$1|point|points}}', |
97 | 97 | 'user-profile-section-personal' => 'Personal information', |
98 | 98 | 'user-profile-section-sportsteams' => 'Update networks', |
99 | 99 | 'user-profile-section-custom' => 'Custom information', |