r86884 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86883‎ | r86884 | r86885 >
Date:18:55, 25 April 2011
Author:mkroetzsch
Status:deferred
Tags:
Comment:
I18N for new database errors
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SparqlStoreQueryEngine.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_Messages.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SparqlStoreQueryEngine.php
@@ -302,7 +302,8 @@
303303
304304 $result = new SMWQueryResult( $query->getDescription()->getPrintrequests(), $query, $resultDataItems, $this->m_store, $hasFurtherResults );
305305 if ( $sparqlResult->getErrorCode() != SMWSparqlResultWrapper::ERROR_NOERROR ) {
306 - $result->addErrors( array( 'The query result could not be obtained from the SPARQL database. This error might be temporary or indicate a bug in the database software.' ) );
 306+ smwfLoadExtensionMessages( 'SemanticMediaWiki' );
 307+ $result->addErrors( array( wfMsgForContent( 'smw_db_sparqlqueryproblem' ) ) );
307308 }
308309 return $result;
309310 }
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_Messages.php
@@ -153,6 +153,9 @@
154154 Backup your data before using it.',
155155 'smw_notemplategiven' => 'Provide a value for the parameter "template" for this query format to work.',
156156
 157+ // Messages from the database backend
 158+ 'smw_db_sparqlqueryproblem' => 'The query result could not be obtained from the SPARQL database. This error might be temporary or indicate a bug in the database software.',
 159+
157160 // Messages for pages of types and properties
158161 'smw_type_header' => 'Properties of type "$1"',
159162 'smw_typearticlecount' => 'Showing $1 {{PLURAL:$1|property|properties}} using this type.',

Status & tagging log