http://www.mediawiki.org/wiki/Special:Code/MediaWiki/66115
Revision: 66115 Author: siebrand Date: 2010-05-09 14:27:07 +0000 (Sun, 09 May 2010) Log Message: ----------- svn:eol-style native Modified Paths: -------------- trunk/extensions/Translate/groups/MantisBT/README trunk/extensions/Translate/groups/StatusNet/README Property Changed: ---------------- trunk/extensions/Translate/groups/MantisBT/README trunk/extensions/Translate/groups/StatusNet/README Modified: trunk/extensions/Translate/groups/MantisBT/README =================================================================== --- trunk/extensions/Translate/groups/MantisBT/README 2010-05-09 14:26:15 UTC (rev 66114) +++ trunk/extensions/Translate/groups/MantisBT/README 2010-05-09 14:27:07 UTC (rev 66115) @@ -1,61 +1,61 @@ -Check out writable copy: - -cd $HOME/projects/ -git clone git://git.mantisbt.org/git://mantisbt.org/mantisbt mantisbt - -Settings: -wfAddNamespace( 1210, 'Mantis' ); - -As long as new message groups have not yet been implemented for MantisBT, the -following settings are needed: - -$wgHooks['TranslatePostInitGroups'][] = array( 'setupMantis' ); -function setupMantis( &$cc ) { - global $wgTranslateGroupRoot; - $id = 'out-mantis'; - $mg = new MantisMessageGroup; - $mg->setId( $id ); - $mg->setType( 'mantis' ); - $mg->setDescription( "{{int:bw-desc-mantisbt}}" ); - $mg->namespaces = array( NS_MANTIS, NS_MANTIS_TALK ); - $mg->setPath( "$wgTranslateGroupRoot/mantisbt/lang" ); - $cc[$id] = $mg; - - $id = 'out-mantis-mantiscoreformatting'; - $mg = new MantisMessageGroup; - $mg->setId( $id ); - $mg->setType( 'mantis' ); - $mg->setLabel( 'MantisBT - Mantis Core Formatting' ); - $mg->setDescription( "{{int:bw-desc-mantisbt-mantiscoreformatting}}" ); - $mg->namespaces = array( NS_MANTIS, NS_MANTIS_TALK ); - $mg->setPath( "$wgTranslateGroupRoot/mantisbt/plugins/MantisCoreFormatting/lang" ); - $cc[$id] = $mg; - - $id = 'out-mantis-mantisgraph'; - $mg = new MantisMessageGroup; - $mg->setId( $id ); - $mg->setType( 'mantis' ); - $mg->setLabel( 'MantisBT - Mantis Graph' ); - $mg->setDescription( "{{int:bw-desc-mantisbt-mantisgraph}}" ); - $mg->namespaces = array( NS_MANTIS, NS_MANTIS_TALK ); - $mg->setPath( "$wgTranslateGroupRoot/mantisbt/plugins/MantisGraph/lang" ); - $cc[$id] = $mg; - - $id = 'out-mantis-xmlimportexport'; - $mg = new MantisMessageGroup; - $mg->setId( $id ); - $mg->setType( 'mantis' ); - $mg->setLabel( 'MantisBT - Xml Import Export' ); - $mg->setDescription( "{{int:bw-desc-mantisbt-xmlimportexport}}" ); - $mg->namespaces = array( NS_MANTIS, NS_MANTIS_TALK ); - $mg->setPath( "$wgTranslateGroupRoot/mantisbt/plugins/XmlImportExport/lang" ); - $cc[$id] = $mg; - - return true; -} - -When PhpVariablesFFS has been implemented, the following will suffice: -$wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/MantisBT/MantisBT.yml"; -$wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/MantisBT/MantisBT-plugin-MantisCoreFormatting.yml"; -$wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/MantisBT/MantisBT-plugin-MantisGraph.yml"; -$wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/MantisBT/MantisBT-plugin-XmlImportExport.yml"; +Check out writable copy: + +cd $HOME/projects/ +git clone git://git.mantisbt.org/git://mantisbt.org/mantisbt mantisbt + +Settings: +wfAddNamespace( 1210, 'Mantis' ); + +As long as new message groups have not yet been implemented for MantisBT, the +following settings are needed: + +$wgHooks['TranslatePostInitGroups'][] = array( 'setupMantis' ); +function setupMantis( &$cc ) { + global $wgTranslateGroupRoot; + $id = 'out-mantis'; + $mg = new MantisMessageGroup; + $mg->setId( $id ); + $mg->setType( 'mantis' ); + $mg->setDescription( "{{int:bw-desc-mantisbt}}" ); + $mg->namespaces = array( NS_MANTIS, NS_MANTIS_TALK ); + $mg->setPath( "$wgTranslateGroupRoot/mantisbt/lang" ); + $cc[$id] = $mg; + + $id = 'out-mantis-mantiscoreformatting'; + $mg = new MantisMessageGroup; + $mg->setId( $id ); + $mg->setType( 'mantis' ); + $mg->setLabel( 'MantisBT - Mantis Core Formatting' ); + $mg->setDescription( "{{int:bw-desc-mantisbt-mantiscoreformatting}}" ); + $mg->namespaces = array( NS_MANTIS, NS_MANTIS_TALK ); + $mg->setPath( "$wgTranslateGroupRoot/mantisbt/plugins/MantisCoreFormatting/lang" ); + $cc[$id] = $mg; + + $id = 'out-mantis-mantisgraph'; + $mg = new MantisMessageGroup; + $mg->setId( $id ); + $mg->setType( 'mantis' ); + $mg->setLabel( 'MantisBT - Mantis Graph' ); + $mg->setDescription( "{{int:bw-desc-mantisbt-mantisgraph}}" ); + $mg->namespaces = array( NS_MANTIS, NS_MANTIS_TALK ); + $mg->setPath( "$wgTranslateGroupRoot/mantisbt/plugins/MantisGraph/lang" ); + $cc[$id] = $mg; + + $id = 'out-mantis-xmlimportexport'; + $mg = new MantisMessageGroup; + $mg->setId( $id ); + $mg->setType( 'mantis' ); + $mg->setLabel( 'MantisBT - Xml Import Export' ); + $mg->setDescription( "{{int:bw-desc-mantisbt-xmlimportexport}}" ); + $mg->namespaces = array( NS_MANTIS, NS_MANTIS_TALK ); + $mg->setPath( "$wgTranslateGroupRoot/mantisbt/plugins/XmlImportExport/lang" ); + $cc[$id] = $mg; + + return true; +} + +When PhpVariablesFFS has been implemented, the following will suffice: +$wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/MantisBT/MantisBT.yml"; +$wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/MantisBT/MantisBT-plugin-MantisCoreFormatting.yml"; +$wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/MantisBT/MantisBT-plugin-MantisGraph.yml"; +$wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/MantisBT/MantisBT-plugin-XmlImportExport.yml"; Property changes on: trunk/extensions/Translate/groups/MantisBT/README ___________________________________________________________________ Added: svn:eol-style + native Modified: trunk/extensions/Translate/groups/StatusNet/README =================================================================== --- trunk/extensions/Translate/groups/StatusNet/README 2010-05-09 14:26:15 UTC (rev 66114) +++ trunk/extensions/Translate/groups/StatusNet/README 2010-05-09 14:27:07 UTC (rev 66115) @@ -1,40 +1,40 @@ -Check out writable copy: - -cd $HOME/projects/ -git clone git://gitorious.org/statusnet/mainline.git statusnet - -Then check out the current development branch. - -Settings: -wfAddNamespace( 1208, 'StatusNet' ); - -As long as new message groups have not yet been implemented for gettext, the -following settings are needed: - -$wgHooks['TranslatePostInitGroups'][] = array( 'setupStatusnet' ); - -function setupStatusnet( &$cc ) { - global $wgTranslateGroupRoot; - global $IP; - $id = 'out-statusnet'; - $mg = GettextMessageGroup::factory( 'StatusNet', $id ); - $mg->setPotFile( 'locale/statusnet.pot' ); - $mg->setPath( "$wgTranslateGroupRoot/statusnet/" ); - $mg->filePattern = "locale/%CODE%/LC_MESSAGES/statusnet.po"; - $mg->setDescription( "{{int:bw-desc-statusnet}}" ); - $mg->namespaces = array( NS_STATUSNET, NS_STATUSNET_TALK ); - $mg->setCodeMap( array( - 'en-gb' => 'en_GB', - 'no' => 'nb', - 'pt-br' => 'pt_BR', - 'zh-hans' => 'zh_CN', - 'zh-hant' => 'zh_TW' - ) ); - $cc[$id] = $mg; - return true; -} - -When GettextMessageGroupFFS has been implemented, the following will suffice: -$wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/StatusNet/StatusNet.yml"; - -Add more to $wgTranslateGroupFiles for supported plugins. +Check out writable copy: + +cd $HOME/projects/ +git clone git://gitorious.org/statusnet/mainline.git statusnet + +Then check out the current development branch. + +Settings: +wfAddNamespace( 1208, 'StatusNet' ); + +As long as new message groups have not yet been implemented for gettext, the +following settings are needed: + +$wgHooks['TranslatePostInitGroups'][] = array( 'setupStatusnet' ); + +function setupStatusnet( &$cc ) { + global $wgTranslateGroupRoot; + global $IP; + $id = 'out-statusnet'; + $mg = GettextMessageGroup::factory( 'StatusNet', $id ); + $mg->setPotFile( 'locale/statusnet.pot' ); + $mg->setPath( "$wgTranslateGroupRoot/statusnet/" ); + $mg->filePattern = "locale/%CODE%/LC_MESSAGES/statusnet.po"; + $mg->setDescription( "{{int:bw-desc-statusnet}}" ); + $mg->namespaces = array( NS_STATUSNET, NS_STATUSNET_TALK ); + $mg->setCodeMap( array( + 'en-gb' => 'en_GB', + 'no' => 'nb', + 'pt-br' => 'pt_BR', + 'zh-hans' => 'zh_CN', + 'zh-hant' => 'zh_TW' + ) ); + $cc[$id] = $mg; + return true; +} + +When GettextMessageGroupFFS has been implemented, the following will suffice: +$wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/StatusNet/StatusNet.yml"; + +Add more to $wgTranslateGroupFiles for supported plugins. Property changes on: trunk/extensions/Translate/groups/StatusNet/README ___________________________________________________________________ Added: svn:eol-style + native _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs