Index: trunk/extensions/SemanticInternalObjects/SIO_PageSchemas.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | } |
23 | 23 | |
24 | 24 | public static function getTemplateDisplayString() { |
25 | | - return 'Internal property'; |
| 25 | + return wfMsg( 'semanticinternalobjects-internalproperty' ); |
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
— | — | @@ -46,7 +46,6 @@ |
47 | 47 | public static function createTemplateXMLFromForm() { |
48 | 48 | global $wgRequest; |
49 | 49 | |
50 | | - $fieldNum = -1; |
51 | 50 | $xmlPerTemplate = array(); |
52 | 51 | foreach ( $wgRequest->getValues() as $var => $val ) { |
53 | 52 | if ( substr( $var, 0, 18 ) == 'sio_property_name_' ) { |
— | — | @@ -99,7 +98,7 @@ |
100 | 99 | return null; |
101 | 100 | } |
102 | 101 | |
103 | | - function getInternalObjectPropertyName ( $psTemplate ) { |
| 102 | + static function getInternalObjectPropertyName ( $psTemplate ) { |
104 | 103 | // TODO - there should be a more direct way to get |
105 | 104 | // this data. |
106 | 105 | $sioPropertyArray = $psTemplate->getObject( 'semanticinternalobjects_MainProperty' ); |
Index: trunk/extensions/SemanticInternalObjects/SemanticInternalObjects.i18n.php |
— | — | @@ -18,6 +18,7 @@ |
19 | 19 | */ |
20 | 20 | $messages['en'] = array( |
21 | 21 | 'semanticinternalobjects-desc' => 'Setting of internal objects in Semantic MediaWiki', |
| 22 | + 'semanticinternalobjects-internalproperty' => 'Internal property', |
22 | 23 | ); |
23 | 24 | |
24 | 25 | /** Message documentation (Message documentation) |
— | — | @@ -25,6 +26,7 @@ |
26 | 27 | */ |
27 | 28 | $messages['qqq'] = array( |
28 | 29 | 'semanticinternalobjects-desc' => '{{desc}}', |
| 30 | + 'semanticinternalobjects-internalproperty' => 'A semantic property stored internally in the page' |
29 | 31 | ); |
30 | 32 | |
31 | 33 | /** Gheg Albanian (Gegë) |