https://bugzilla.wikimedia.org/show_bug.cgi?id=34305
--- Comment #4 from Ashwini <[email protected]> 2012-02-11 08:16:10 UTC --- Comment on attachment 9982 --> https://bugzilla.wikimedia.org/attachment.cgi?id=9982 Patch which extends the funtionality of special page >Index: Example/Example.i18n.php >=================================================================== >--- Example/Example.i18n.php (revision 111148) >+++ Example/Example.i18n.php (working copy) >@@ -6,8 +6,10 @@ > // English > $messages[ 'en' ] = array( > 'example-example' => 'This is an example!', >+ 'example-hello_world'=> 'hello $1', > ); > >+ > // Message documentation for translators > $messages[ 'qqq' ] = array( > 'example-example' => 'This is just an example message. Nothing > special.', >Index: Example/Example.body.php >=================================================================== >--- Example/Example.body.php (revision 111148) >+++ Example/Example.body.php (working copy) >@@ -9,9 +9,23 @@ > /** > * Make your magic happen! > */ >+ function getRandomName(){ >+ $name_array=array(); >+ $name_array ['en'] = array ( >+ 'first'=> 'Ashwini', >+ 'second'=> 'Arthur', >+); >+} > function execute( $par ) { > global $wgOut; >+ global $wgRequest; >+ $wgOut->addWikiMsg( 'example-hello_world' ); >+ echo "Hello wikimedia"; > >- $wgOut->addWikiMsg( 'example-example' ); >+ >+ >$wgOut->addwikimsg('example-hello_world',$this->getRandomName()); >+ >$wgOut->addwikimsg('example-hello_world',$wgRequest->getText('Ashwini')); >+ >+ > } > } -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
