Index: trunk/extensions/WikiSync/WikiSync.php |
— | — | @@ -142,7 +142,7 @@ |
143 | 143 | } |
144 | 144 | |
145 | 145 | static function checkUserMembership( $groups ) { |
146 | | - global $wgUser; |
| 146 | + global $wgUser, $wgLang; |
147 | 147 | $ug = $wgUser->getEffectiveGroups(); |
148 | 148 | if ( !$wgUser->isAnon() && !in_array( 'user', $ug ) ) { |
149 | 149 | $ug[] = 'user'; |
— | — | @@ -150,7 +150,7 @@ |
151 | 151 | if ( array_intersect( $groups, $ug ) ) { |
152 | 152 | return true; |
153 | 153 | } |
154 | | - return wfMsg( 'wikisync_api_result_noaccess', implode( $groups, ',' ) ); |
| 154 | + return wfMsg( 'wikisync_api_result_noaccess', $wgLang->commaList( $groups ) ); |
155 | 155 | } |
156 | 156 | |
157 | 157 | /* |