diff --git a/openslides/core/static/js/core/pdf.js b/openslides/core/static/js/core/pdf.js
index 2f3b95749..8fd307930 100644
--- a/openslides/core/static/js/core/pdf.js
+++ b/openslides/core/static/js/core/pdf.js
@@ -116,10 +116,9 @@ angular.module('OpenSlidesApp.core.pdf', [])
.factory('PdfMakeDocumentProvider', [
- 'gettextCatalog',
'Config',
'PDFLayout',
- function(gettextCatalog, Config, PDFLayout) {
+ function(Config, PDFLayout) {
/**
* Provides the global document
* @constructor
@@ -783,9 +782,10 @@ angular.module('OpenSlidesApp.core.pdf', [])
.factory('PdfCreate', [
'$timeout',
+ 'gettextCatalog',
'FileSaver',
'Messaging',
- function ($timeout, FileSaver, Messaging) {
+ function ($timeout, gettextCatalog, FileSaver, Messaging) {
var filenameMessageMap = {};
var b64toBlob = function(b64Data) {
var byteCharacters = atob(b64Data);
@@ -802,17 +802,17 @@ angular.module('OpenSlidesApp.core.pdf', [])
switch (state) {
case 'info':
text = '' +
- '{{ pdf.errorMessage | translate }}
' ;
+ gettextCatalog.getString('Error while generating PDF file') +
+ ' (' + filename + '): ' + error + '
';
break;
}
$timeout(function () {
diff --git a/openslides/core/static/templates/pdf-status.html b/openslides/core/static/templates/pdf-status.html
deleted file mode 100644
index 0d13d6e30..000000000
--- a/openslides/core/static/templates/pdf-status.html
+++ /dev/null
@@ -1,24 +0,0 @@
-
{{ pdf.errorMessage | translate }}
-
-
-