Index: trunk/extensions/SemanticMediaWiki/specials/Export/SMW_SpecialOWLExport.php |
— | — | @@ -30,6 +30,7 @@ |
31 | 31 | |
32 | 32 | public function __construct() { |
33 | 33 | parent::__construct( 'ExportRDF' ); |
| 34 | + smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
34 | 35 | } |
35 | 36 | |
36 | 37 | public function execute( $page = '' ) { |
— | — | @@ -132,8 +133,6 @@ |
133 | 134 | } |
134 | 135 | } |
135 | 136 | |
136 | | - smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
137 | | - |
138 | 137 | // nothing exported yet; show user interface: |
139 | 138 | $html = '<form name="tripleSearch" action="" method="POST">' . "\n" . |
140 | 139 | '<p>' . wfMsg( 'smw_exportrdf_docu' ) . "</p>\n" . |
— | — | @@ -158,4 +157,4 @@ |
159 | 158 | $wgOut->addHTML( $html ); |
160 | 159 | } |
161 | 160 | |
162 | | -} |
\ No newline at end of file |
| 161 | +} |
Index: trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialTypes.php |
— | — | @@ -34,6 +34,7 @@ |
35 | 35 | |
36 | 36 | public function __construct() { |
37 | 37 | parent::__construct( 'Types' ); |
| 38 | + smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
38 | 39 | } |
39 | 40 | |
40 | 41 | public function execute( $param ) { |
— | — | @@ -71,7 +72,6 @@ |
72 | 73 | } |
73 | 74 | |
74 | 75 | function getPageHeader() { |
75 | | - smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
76 | 76 | return '<p>' . wfMsg( 'smw_types_docu' ) . "</p><br />\n"; |
77 | 77 | } |
78 | 78 | |
— | — | @@ -108,7 +108,6 @@ |
109 | 109 | $tv = SMWDataValueFactory::newTypeIDValue( '__typ', $titletext ); |
110 | 110 | $info = array(); |
111 | 111 | $error = array(); |
112 | | - smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
113 | 112 | if ( $tv->isAlias() ) { // print the type title as found, long text would (again) print the alias |
114 | 113 | $ttitle = Title::makeTitle( SMW_NS_TYPE, $titletext ); |
115 | 114 | $link = $skin->makeKnownLinkObj( $ttitle, $ttitle->getText() ); // aliases are only found if the page exists |
Index: trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialProperties.php |
— | — | @@ -29,6 +29,7 @@ |
30 | 30 | |
31 | 31 | public function __construct() { |
32 | 32 | parent::__construct( 'Properties' ); |
| 33 | + smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
33 | 34 | } |
34 | 35 | |
35 | 36 | public function execute( $param ) { |
— | — | @@ -74,7 +75,6 @@ |
75 | 76 | } |
76 | 77 | |
77 | 78 | function getPageHeader() { |
78 | | - smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
79 | 79 | return '<p>' . wfMsg( 'smw_properties_docu' ) . "</p><br />\n"; |
80 | 80 | } |
81 | 81 | |
— | — | @@ -82,7 +82,6 @@ |
83 | 83 | global $wgLang; |
84 | 84 | $typestring = ''; |
85 | 85 | $errors = array(); |
86 | | - smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
87 | 86 | if ( $result[0]->isUserDefined() && ( $result[1] <= 5 ) ) { |
88 | 87 | $errors[] = wfMsg( 'smw_propertyhardlyused' ); |
89 | 88 | } |
Index: trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialWantedProperties.php |
— | — | @@ -29,6 +29,7 @@ |
30 | 30 | |
31 | 31 | public function __construct() { |
32 | 32 | parent::__construct( 'WantedProperties' ); |
| 33 | + smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
33 | 34 | } |
34 | 35 | |
35 | 36 | public function execute( $param ) { |
— | — | @@ -74,7 +75,6 @@ |
75 | 76 | } |
76 | 77 | |
77 | 78 | function getPageHeader() { |
78 | | - smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
79 | 79 | return '<p>' . wfMsg( 'smw_wantedproperties_docu' ) . "</p><br />\n"; |
80 | 80 | } |
81 | 81 | |
— | — | @@ -85,7 +85,6 @@ |
86 | 86 | } else { |
87 | 87 | $proplink = $result[0]->getLongHTMLText( $skin ); |
88 | 88 | } |
89 | | - smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
90 | 89 | return wfMsgExt( 'smw_wantedproperty_template', array( 'parsemag' ), $proplink, $result[1] ); |
91 | 90 | } |
92 | 91 | |
Index: trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialUnusedProperties.php |
— | — | @@ -29,6 +29,7 @@ |
30 | 30 | |
31 | 31 | public function __construct() { |
32 | 32 | parent::__construct( 'UnusedProperties' ); |
| 33 | + smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
33 | 34 | } |
34 | 35 | |
35 | 36 | public function execute( $param ) { |
— | — | @@ -76,7 +77,6 @@ |
77 | 78 | } |
78 | 79 | |
79 | 80 | function getPageHeader() { |
80 | | - smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
81 | 81 | return '<p>' . wfMsg( 'smw_unusedproperties_docu' ) . "</p><br />\n"; |
82 | 82 | } |
83 | 83 | |
— | — | @@ -85,7 +85,6 @@ |
86 | 86 | $proplink = $skin->makeKnownLinkObj( $result->getWikiPageValue()->getTitle(), $result->getWikiValue() ); |
87 | 87 | $types = smwfGetStore()->getPropertyValues( $result->getWikiPageValue(), SMWPropertyValue::makeProperty( '_TYPE' ) ); // TODO: do not bypass SMWDataValueFactory! |
88 | 88 | $errors = array(); |
89 | | - smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
90 | 89 | if ( count( $types ) >= 1 ) { |
91 | 90 | $typestring = current( $types )->getLongHTMLText( $skin ); |
92 | 91 | } else { |
Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialPageProperty.php |
— | — | @@ -57,7 +57,6 @@ |
58 | 58 | |
59 | 59 | // Produce output |
60 | 60 | $html = ''; |
61 | | - smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
62 | 61 | if ( ( $propname == '' ) ) { // no property given, show a message |
63 | 62 | $html .= wfMsg( 'smw_pp_docu' ) . "\n"; |
64 | 63 | } else { // property given, find and display results |
Index: trunk/extensions/SemanticMediaWiki/specials/Statistics/SMW_SpecialStatistics.php |
— | — | @@ -20,6 +20,7 @@ |
21 | 21 | |
22 | 22 | public function __construct() { |
23 | 23 | parent::__construct( 'SemanticStatistics' ); |
| 24 | + smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
24 | 25 | } |
25 | 26 | |
26 | 27 | public function execute( $param ) { |
— | — | @@ -39,8 +40,6 @@ |
40 | 41 | ) |
41 | 42 | ); |
42 | 43 | |
43 | | - smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
44 | | - |
45 | 44 | $out = wfMsgExt( 'smw_semstats_text', array( 'parse' ), |
46 | 45 | $wgLang->formatNum( $semanticStatistics['PROPUSES'] ), $wgLang->formatNum( $semanticStatistics['USEDPROPS'] ), |
47 | 46 | $wgLang->formatNum( $propertyPageAmount ), $wgLang->formatNum( $semanticStatistics['DECLPROPS'] ) |
— | — | @@ -49,4 +48,4 @@ |
50 | 49 | $wgOut->addHTML( $out ); |
51 | 50 | } |
52 | 51 | |
53 | | -} |
\ No newline at end of file |
| 52 | +} |