Index: trunk/extensions/SemanticProjectManagement/includes/SPM_Messages.php |
— | — | @@ -13,11 +13,11 @@ |
14 | 14 | /** English |
15 | 15 | */ |
16 | 16 | $messages['en'] = array( |
17 | | - |
18 | | - 'spm_wbs_link' => 'MS Project XML export', |
| 17 | + 'spm_wbs_link' => 'MS Project XML export', |
19 | 18 | 'spm_printername_wbs' => 'MS Project export', |
20 | 19 | 'spm-name' => 'Semantic Project Management', |
21 | | - 'spm-desc' => 'Project Management Formats for Semantic MediaWiki inline queries', |
22 | | - 'semanticprojectmanagement-desc' => 'Project Management Formats for Semantic MediaWiki inline queries', |
23 | | - 'semanticprojectmanagement' => 'Semantic Project Management' |
| 20 | + 'semanticprojectmanagement-desc' => 'Project Management Formats for Semantic MediaWiki inline queries', |
| 21 | + 'semanticprojectmanagement' => 'Semantic Project Management' |
| 22 | + # 'right-SPMsetup' => '', FIXME: Add a description of this user right. It is shown at [[Special:ListGroupRights]] |
24 | 23 | ); |
| 24 | + |
Index: trunk/extensions/SemanticProjectManagement/includes/SPM_Alias.php |
— | — | @@ -4,9 +4,14 @@ |
5 | 5 | * |
6 | 6 | * @addtogroup Extensions |
7 | 7 | */ |
8 | | -$aliases = array(); |
| 8 | +$specialPageAliases = array(); |
9 | 9 | |
10 | 10 | /** English */ |
11 | | -$aliases['en'] = array( |
| 11 | +$specialPageAliases['en'] = array( |
12 | 12 | 'SemanticProjectManagement' => array( 'SemanticProjectManagement' ), |
13 | 13 | ); |
| 14 | + |
| 15 | +/** |
| 16 | + * For backwards compatibility with MediaWiki 1.15 and earlier. |
| 17 | + */ |
| 18 | +$aliases =& $specialPageAliases; |
Index: trunk/extensions/SemanticProjectManagement/SemanticProjectManagement.php |
— | — | @@ -32,8 +32,17 @@ |
33 | 33 | die( 'Not an entry point.' ); |
34 | 34 | } |
35 | 35 | |
36 | | -define( 'SPM_VERSION', '0.3' ); |
| 36 | +define( 'SPM_VERSION', '0.3.1' ); |
37 | 37 | |
| 38 | +$wgExtensionCredits['specialpage'][] = array( |
| 39 | + 'path' => __FILE__, |
| 40 | + 'name' => 'Semantic Project Management', |
| 41 | + 'version' => SPM_VERSION, |
| 42 | + 'author' => array( 'Frank Dengler, Jonas Bissinger'), |
| 43 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:Semantic_Project_Management', |
| 44 | + 'descriptionmsg' => 'semanticprojectmanagement-desc' |
| 45 | +); |
| 46 | + |
38 | 47 | $spmgScriptPath = $wgScriptPath . '/extensions/SemanticProjectManagement'; |
39 | 48 | $spmgIP = $IP . '/extensions/SemanticProjectManagement'; |
40 | 49 | |
— | — | @@ -59,22 +68,13 @@ |
60 | 69 | $spmgFormats = array( 'ganttchart','wbs'); |
61 | 70 | |
62 | 71 | function spmfSetup() { |
63 | | - global $spmgFormats, $wgExtensionCredits, $wgOut; |
| 72 | + global $spmgFormats, $wgOut; |
64 | 73 | |
65 | | - foreach ( $spmgFormats as $fn ) spmfInitFormat( $fn ); |
| 74 | + foreach ( $spmgFormats as $fn ) { |
| 75 | + spmfInitFormat( $fn ); |
| 76 | + } |
66 | 77 | |
67 | 78 | $formats_list = implode( ', ', $spmgFormats ); |
68 | | - $wgExtensionCredits['specialpage'][] = array( |
69 | | - 'path' => __FILE__, |
70 | | - 'name' => 'Semantic Project Management', |
71 | | - 'version' => SPM_VERSION, |
72 | | - 'author' => array( 'Frank Dengler, Jonas Bissinger'), |
73 | | - 'url' => 'http://www.mediawiki.org/wiki/Extension:Semantic_Project_Management', |
74 | | - 'descriptionmsg' => 'semanticprojectmanagement-desc' |
75 | | - ); |
76 | | - |
77 | | - $dir = dirname(__FILE__); |
78 | | - |
79 | 79 | } |
80 | 80 | |
81 | 81 | function spmfInitFormat( $format ) { |
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt |
— | — | @@ -1073,6 +1073,10 @@ |
1074 | 1074 | optional = smw_csv_link |
1075 | 1075 | optional = smw_json_link |
1076 | 1076 | |
| 1077 | +Semantic Project Management |
| 1078 | +file = SemanticProjectManagement/includes/SPM_Messages.php |
| 1079 | +aliasfile = SemanticProjectManagement/includes/SPM_Alias.php |
| 1080 | + |
1077 | 1081 | Semantic Result Formats |
1078 | 1082 | file = SemanticResultFormats/SRF_Messages.php |
1079 | 1083 | magicfile = SemanticResultFormats/SRF_Magic.php |