r100206 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100205‎ | r100206 | r100207 >
Date:03:00, 19 October 2011
Author:yaron
Status:deferred
Tags:
Comment:
Added 'semanticinternalobjects-internalproperty' message
Modified paths:
  • /trunk/extensions/SemanticInternalObjects/SIO_PageSchemas.php (modified) (history)
  • /trunk/extensions/SemanticInternalObjects/SemanticInternalObjects.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticInternalObjects/SIO_PageSchemas.php
@@ -21,7 +21,7 @@
2222 }
2323
2424 public static function getTemplateDisplayString() {
25 - return 'Internal property';
 25+ return wfMsg( 'semanticinternalobjects-internalproperty' );
2626 }
2727
2828 /**
@@ -46,7 +46,6 @@
4747 public static function createTemplateXMLFromForm() {
4848 global $wgRequest;
4949
50 - $fieldNum = -1;
5150 $xmlPerTemplate = array();
5251 foreach ( $wgRequest->getValues() as $var => $val ) {
5352 if ( substr( $var, 0, 18 ) == 'sio_property_name_' ) {
@@ -99,7 +98,7 @@
10099 return null;
101100 }
102101
103 - function getInternalObjectPropertyName ( $psTemplate ) {
 102+ static function getInternalObjectPropertyName ( $psTemplate ) {
104103 // TODO - there should be a more direct way to get
105104 // this data.
106105 $sioPropertyArray = $psTemplate->getObject( 'semanticinternalobjects_MainProperty' );
Index: trunk/extensions/SemanticInternalObjects/SemanticInternalObjects.i18n.php
@@ -18,6 +18,7 @@
1919 */
2020 $messages['en'] = array(
2121 'semanticinternalobjects-desc' => 'Setting of internal objects in Semantic MediaWiki',
 22+ 'semanticinternalobjects-internalproperty' => 'Internal property',
2223 );
2324
2425 /** Message documentation (Message documentation)
@@ -25,6 +26,7 @@
2627 */
2728 $messages['qqq'] = array(
2829 'semanticinternalobjects-desc' => '{{desc}}',
 30+ 'semanticinternalobjects-internalproperty' => 'A semantic property stored internally in the page'
2931 );
3032
3133 /** Gheg Albanian (Gegë)