Skip to content

Commit ca1df4e

Browse files
committed
Add contact information on rendering error
1 parent 7fef97d commit ca1df4e

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Collection.body.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,12 +1094,14 @@ public function renderRenderingPage() {
10941094
case 'failed':
10951095
$out->setPageTitle( $this->msg( 'coll-rendering_failed_title' ) );
10961096

1097-
$statusText = $result->get( 'status', 'status' );
1097+
/*statusText = $result->get( 'status', 'status' );
10981098
if ( $statusText ) {
10991099
$status = $this->msg( 'coll-rendering_failed_status', $statusText )->text();
11001100
} else {
11011101
$status = '';
1102-
}
1102+
}*/
1103+
global $wgEmergencyContact;
1104+
$status = $this->msg("coll-rendering_failed_contact", $wgEmergencyContact)->text();
11031105

11041106
$template = new CollectionFailedTemplate();
11051107
$template->set( 'status', $status );

i18n/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
"coll-rendering_failed_title": "Rendering failed",
8282
"coll-rendering_failed_text": "<strong>Generation of the document file has failed.</strong>\n\n<p><span id=\"renderingStatus\">$1</span></p>",
8383
"coll-rendering_failed_status": "<strong>Status:</strong> $1",
84+
"coll-rendering_failed_contact": "<strong>Rendering failed.</strong> Please contact [mailto:$1] for further assistance.",
8485
"coll-failed_page_info_text_article": "{{MediaWiki:Coll-helppage}}/Rendering page info text",
8586
"coll-failed_collection_info_text_article": "{{MediaWiki:Coll-helppage}}/Rendering collection info text",
8687
"coll-notfound_title": "Book not found",

i18n/it.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
"coll-rendering_failed_title": "Conversione non riuscita",
9595
"coll-rendering_failed_text": "<strong>La generazione del file del documento non è riuscita.</strong>\n\n<p><span id=\"renderingStatus\">$1</span></p>",
9696
"coll-rendering_failed_status": "<strong>Stato:</strong> $1",
97+
"coll-rendering_failed_contact": "<strong>Conversione non riuscita.</strong> Contatta [mailto:$1] per ulteriore assistenza.",
9798
"coll-failed_page_info_text_article": "{{MediaWiki:Coll-helppage}}/Informazioni sul rendering delle pagine",
9899
"coll-failed_collection_info_text_article": "{{MediaWiki:Coll-helppage}}/Informazioni sul rendering di collezioni",
99100
"coll-notfound_title": "Libro non trovato",

0 commit comments

Comments
 (0)