Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SparqlStoreQueryEngine.php |
— | — | @@ -302,7 +302,8 @@ |
303 | 303 | |
304 | 304 | $result = new SMWQueryResult( $query->getDescription()->getPrintrequests(), $query, $resultDataItems, $this->m_store, $hasFurtherResults ); |
305 | 305 | 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' ) ) ); |
307 | 308 | } |
308 | 309 | return $result; |
309 | 310 | } |
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_Messages.php |
— | — | @@ -153,6 +153,9 @@ |
154 | 154 | Backup your data before using it.', |
155 | 155 | 'smw_notemplategiven' => 'Provide a value for the parameter "template" for this query format to work.', |
156 | 156 | |
| 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 | + |
157 | 160 | // Messages for pages of types and properties |
158 | 161 | 'smw_type_header' => 'Properties of type "$1"', |
159 | 162 | 'smw_typearticlecount' => 'Showing $1 {{PLURAL:$1|property|properties}} using this type.', |