Index: trunk/phase3/includes/Metadata.php |
— | — | @@ -122,7 +122,8 @@ |
123 | 123 | } else if( $real = $user->getRealName() ) { |
124 | 124 | $this->element( $name, $real ); |
125 | 125 | } else { |
126 | | - $this->pageOrString( $name, $user->getUserPage(), wfMsg( 'siteuser', $user->getName() ) ); |
| 126 | + $userName = $user->getName(); |
| 127 | + $this->pageOrString( $name, $user->getUserPage(), wfMsgExt( 'siteuser', 'parsemag', $userName, $userName ) ); |
127 | 128 | } |
128 | 129 | } |
129 | 130 | |
Index: trunk/extensions/Rdf/Rdf.php |
— | — | @@ -791,7 +791,7 @@ |
792 | 792 | $user_name = User::whoIs($id); |
793 | 793 | } |
794 | 794 | return MwRdfPageOrString($wgContLang->getNsText(NS_USER) . ':' . $user_name, |
795 | | - wfMsg('siteuser', $user_name)); |
| 795 | + wfMsgExt( 'siteuser', 'parsemag', $user_name, $user_name ) ); |
796 | 796 | } |
797 | 797 | } |
798 | 798 | |
Index: trunk/extensions/RdfRedland/test/MwRdfTest_Framework.php |
— | — | @@ -292,14 +292,14 @@ |
293 | 293 | $res = MwRdf::PersonToResource( |
294 | 294 | $user->getID(), $user->getName(), $user->getRealName() ); |
295 | 295 | $this->assertTrue( $res instanceof LibRDF_LiteralNode ); |
296 | | - $this->assertEquals( wfMsg( 'siteuser', "MwRdfPagelessNamelessUser" ), "$res" ); |
| 296 | + $this->assertEquals( wfMsgExt( 'siteuser', 'parsemag', "MwRdfPagelessNamelessUser", "MwRdfPagelessNamelessUser" ), "$res" ); |
297 | 297 | } |
298 | 298 | |
299 | 299 | public function testPersonToResource_JustId_UserHasNeitherRealNameNorPage() { |
300 | 300 | $user = MwRdfTest::CreateUserWithoutRealNameOrPage(); |
301 | 301 | $res = MwRdf::PersonToResource( $user->getID() ); |
302 | 302 | $this->assertTrue( $res instanceof LibRDF_LiteralNode ); |
303 | | - $this->assertEquals( wfMsg( 'siteuser', "MwRdfPagelessNamelessUser" ), "$res" ); |
| 303 | + $this->assertEquals( wfMsgExt( 'siteuser', 'parsemag', "MwRdfPagelessNamelessUser", "MwRdfPagelessNamelessUser" ), "$res" ); |
304 | 304 | } |
305 | 305 | |
306 | 306 | public function testPersonToResource_AnonymousUser() { |
Index: trunk/extensions/RdfRedland/Rdf.php |
— | — | @@ -331,7 +331,9 @@ |
332 | 332 | $mf = self::ModelingAgent( $user->getUserPage() ); |
333 | 333 | return $mf->titleResource(); |
334 | 334 | } |
335 | | - return self::LiteralNode( wfMsg( 'siteuser', $user->getName() ) ); |
| 335 | + |
| 336 | + $userName = $user->getName(); |
| 337 | + return self::LiteralNode( wfMsgExt( 'siteuser', 'parsemag', $userName, $userName ) ); |
336 | 338 | } |
337 | 339 | |
338 | 340 | public function RightsResource() { |