r109069 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109068‎ | r109069 | r109070 >
Date:22:27, 16 January 2012
Author:yaron
Status:deferred
Tags:
Comment:
Improved display of some messages
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormField.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormField.php
@@ -174,7 +174,7 @@
175175 if ( $template_field->getSemanticProperty() == "" ) {
176176 // Print nothing if there's no semantic property.
177177 } elseif ( $template_field->getPropertyType() == "" ) {
178 - $text .= '<p>' . wfMsg( 'sf_createform_fieldpropunknowntype', $prop_link_text ) . "</p>\n";
 178+ $text .= '<p>' . wfMsgExt( 'sf_createform_fieldpropunknowntype', 'parse', $prop_link_text ) . "</p>\n";
179179 } else {
180180 if ( $template_field->isList() ) {
181181 $propDisplayMsg = 'sf_createform_fieldproplist';
@@ -197,7 +197,7 @@
198198 $propertyTypeStr = SFUtils::linkText( SMW_NS_TYPE, $propertyTypeLabel );
199199 }
200200 }
201 - $text .= Xml::tags( 'p', null, wfMsg( $propDisplayMsg, $prop_link_text, $propertyTypeStr ) ) . "\n";
 201+ $text .= Xml::tags( 'p', null, wfMsgExt( $propDisplayMsg, 'parseinline', $prop_link_text, $propertyTypeStr ) ) . "\n";
202202 }
203203 // If it's not a semantic field - don't add any text.
204204 $form_label_text = wfMsg( 'sf_createform_formlabel' );