http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100206
Revision: 100206
Author: yaron
Date: 2011-10-19 03:00:32 +0000 (Wed, 19 Oct 2011)
Log Message:
-----------
Added 'semanticinternalobjects-internalproperty' message
Modified Paths:
--------------
trunk/extensions/SemanticInternalObjects/SIO_PageSchemas.php
trunk/extensions/SemanticInternalObjects/SemanticInternalObjects.i18n.php
Modified: trunk/extensions/SemanticInternalObjects/SIO_PageSchemas.php
===================================================================
--- trunk/extensions/SemanticInternalObjects/SIO_PageSchemas.php
2011-10-19 02:47:01 UTC (rev 100205)
+++ trunk/extensions/SemanticInternalObjects/SIO_PageSchemas.php
2011-10-19 03:00:32 UTC (rev 100206)
@@ -21,7 +21,7 @@
}
public static function getTemplateDisplayString() {
- return 'Internal property';
+ return wfMsg( 'semanticinternalobjects-internalproperty' );
}
/**
@@ -46,7 +46,6 @@
public static function createTemplateXMLFromForm() {
global $wgRequest;
- $fieldNum = -1;
$xmlPerTemplate = array();
foreach ( $wgRequest->getValues() as $var => $val ) {
if ( substr( $var, 0, 18 ) == 'sio_property_name_' ) {
@@ -99,7 +98,7 @@
return null;
}
- function getInternalObjectPropertyName ( $psTemplate ) {
+ static function getInternalObjectPropertyName ( $psTemplate ) {
// TODO - there should be a more direct way to get
// this data.
$sioPropertyArray = $psTemplate->getObject(
'semanticinternalobjects_MainProperty' );
Modified:
trunk/extensions/SemanticInternalObjects/SemanticInternalObjects.i18n.php
===================================================================
--- trunk/extensions/SemanticInternalObjects/SemanticInternalObjects.i18n.php
2011-10-19 02:47:01 UTC (rev 100205)
+++ trunk/extensions/SemanticInternalObjects/SemanticInternalObjects.i18n.php
2011-10-19 03:00:32 UTC (rev 100206)
@@ -18,6 +18,7 @@
*/
$messages['en'] = array(
'semanticinternalobjects-desc' => 'Setting of internal objects in
Semantic MediaWiki',
+ 'semanticinternalobjects-internalproperty' => 'Internal property',
);
/** Message documentation (Message documentation)
@@ -25,6 +26,7 @@
*/
$messages['qqq'] = array(
'semanticinternalobjects-desc' => '{{desc}}',
+ 'semanticinternalobjects-internalproperty' => 'A semantic property
stored internally in the page'
);
/** Gheg Albanian (Gegë)
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs