Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -999,7 +999,7 @@ |
1000 | 1000 | } |
1001 | 1001 | |
1002 | 1002 | public function getDescription() { |
1003 | | - return wfMessage( 'translate-workflowgroup-desc' )->text(); |
| 1003 | + return wfMessage( 'translate-workflowgroup-desc' )->plain(); |
1004 | 1004 | } |
1005 | 1005 | |
1006 | 1006 | public function getDefinitions() { |
— | — | @@ -1009,19 +1009,23 @@ |
1010 | 1010 | |
1011 | 1011 | foreach ( array_keys( $wgTranslateWorkflowStates ) as $state ) { |
1012 | 1012 | $titleString = "Translate-workflow-state-$state"; |
| 1013 | + $definitionText = $state; |
1013 | 1014 | |
1014 | 1015 | // Automatically create pages for workflow states in the original language |
1015 | 1016 | $title = Title::makeTitle( $this->getNamespace(), $titleString ); |
1016 | 1017 | if ( !$title->exists() ) { |
1017 | 1018 | $page = new WikiPage( $title ); |
1018 | 1019 | $page->doEdit( |
1019 | | - $state, |
| 1020 | + $state /*content*/, |
1020 | 1021 | wfMessage( 'translate-workflow-autocreated-summary', $state )->inContentLanguage()->text(), |
1021 | | - EDIT_NEW |
| 1022 | + 0, /*flags*/ |
| 1023 | + false, /* base revision id */ |
| 1024 | + FuzzyBot::getUser() |
1022 | 1025 | ); |
| 1026 | + } else { |
| 1027 | + $definitionText = Revision::newFromTitle( $title )->getText(); |
1023 | 1028 | } |
1024 | | - |
1025 | | - $defs[$titleString] = $state; |
| 1029 | + $defs[$titleString] = $definitionText; |
1026 | 1030 | } |
1027 | 1031 | |
1028 | 1032 | return $defs; |
— | — | @@ -1107,6 +1111,7 @@ |
1108 | 1112 | $deps[] = new GlobalDependency( 'wgTranslateEC' ); |
1109 | 1113 | $deps[] = new GlobalDependency( 'wgTranslateCC' ); |
1110 | 1114 | $deps[] = new GlobalDependency( 'wgTranslateExtensionDirectory' ); |
| 1115 | + $deps[] = new GlobalDependency( 'wgTranslateWorkflowStates' ); |
1111 | 1116 | $deps[] = new FileDependency( dirname( __FILE__ ) . '/groups/mediawiki-defines.txt' ); |
1112 | 1117 | $deps[] = new FileDependency( dirname( __FILE__ ) . '/groups/Wikia/extensions.txt' ); |
1113 | 1118 | $deps[] = new FileDependency( dirname( __FILE__ ) . '/groups/Toolserver/toolserver-textdomains.txt' ); |