[UPDATE]
In der Klasse ccm-cms/src/com/arsdigita/cms/contenttypes/ui/AbstractTextUploadForm.java die FormProcessException in den Zeilen 236, 244, 262, 285 und 319 umgebaut. Zeilenumbrüchen in ccm-cms/src/com/arsdigita/cms/ui/authoring/TextAssetBody.java eingefügt. git-svn-id: https://svn.libreccm.org/ccm/trunk@3186 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
8dabe6b043
commit
da58216124
|
|
@ -1106,4 +1106,3 @@ cms.ui.authoring.invalid_file_type=Files with invalide type connot be loaded int
|
|||
cms.ui.authoring.couldnt_convert_missing_inso=Could not convert to html format because interMedia INSO filter is not installed
|
||||
cms.ui.authoring.couldnt_convert_inso_failed=Could not convert to html format because interMedia INSO filter conversion failed
|
||||
cms.ui.authoring.html_file_missing_body_tags=The file (which should be type HTML) is missing the <body> or </body> tag.
|
||||
cms.contenttypes.ui.cannot_load_files_into_article_body=Cannot load files of type {0} into the article body
|
||||
|
|
|
|||
|
|
@ -1100,4 +1100,3 @@ cms.ui.authoring.invalid_file_type=Dateien mit ung\u00fcltigem Typ k\u00f6nnen n
|
|||
cms.ui.authoring.couldnt_convert_missing_inso=Konnte nicht ins html Format umgewandelt werden, da der interMedia INSO Filter nicht installiert ist
|
||||
cms.ui.authoring.couldnt_convert_inso_failed=Konnte nicht ins html Format umgewandelt werden, da die interMedia INSO Umwandlung fehlschlug
|
||||
cms.ui.authoring.html_file_missing_body_tags=Der Datei (vom Type HTML) fehlt der <body> oder </body> Tag
|
||||
cms.contenttypes.ui.cannot_load_files_into_article_body=Dateine vom Typ {0} k\u00f6nnen nicht in den Artikel-K\u00f6rper geladen werden
|
||||
|
|
|
|||
|
|
@ -144,4 +144,3 @@ cms.ui.authoring.invalid_file_type=
|
|||
cms.ui.authoring.couldnt_convert_missing_inso=
|
||||
cms.ui.authoring.couldnt_convert_inso_failed=
|
||||
cms.ui.authoring.html_file_missing_body_tags=
|
||||
cms.contenttypes.ui.cannot_load_files_into_article_body=
|
||||
|
|
|
|||
|
|
@ -616,4 +616,3 @@ cms.ui.authoring.invalid_file_type=Fichiers de type invalide connot \u00eatre ch
|
|||
cms.ui.authoring.couldnt_convert_missing_inso=Impossible de convertir au format HTML car le filtre interMedia INSO n'est pas install\u00e9
|
||||
cms.ui.authoring.couldnt_convert_inso_failed=Impossible de convertir au format HTML car la conversion de filtre interMedia INSO a \u00e9chou\u00e9
|
||||
cms.ui.authoring.html_file_missing_body_tags=Le fichier (qui devrait \u00eatre de type HTML) est absent de la <body> ou </ body>
|
||||
cms.contenttypes.ui.cannot_load_files_into_article_body=Impossible de charger les fichiers de type {0} dans le corps de l'article
|
||||
|
|
|
|||
|
|
@ -234,17 +234,15 @@ public abstract class AbstractTextUploadForm
|
|||
|
||||
if (!validType) {
|
||||
throw new FormProcessException(GlobalizationUtil.globalize(
|
||||
"cms.contenttypes.ui.cannot_load_files_into_article_body", new Object[]{mime.
|
||||
getMimeType()}));
|
||||
"cms.ui.authoring.invalid_file_type"));
|
||||
} else {
|
||||
boolean insoWorks = MimeTypeStatus.getMimeTypeStatus().
|
||||
getInsoFilterWorks().intValue() == 1;
|
||||
|
||||
if (!textType && !insoWorks) {
|
||||
// Can't convert. inso filter is not working. Give message.
|
||||
throw new FormProcessException(
|
||||
"Could not convert to html "
|
||||
+ "format because interMedia INSO filter is not installed.");
|
||||
throw new FormProcessException(GlobalizationUtil.globalize(
|
||||
"cms.ui.authoring.couldnt_convert_missing_inso"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -260,10 +258,8 @@ public abstract class AbstractTextUploadForm
|
|||
fs.read(file_bytes);
|
||||
fs.close();
|
||||
} catch (Exception e) {
|
||||
throw new FormProcessException(
|
||||
((String) GlobalizationUtil.globalize(
|
||||
"cms.ui.authoring.unable_to_load_file").
|
||||
localize()).concat(e.getMessage()));
|
||||
throw new FormProcessException(GlobalizationUtil.globalize(
|
||||
"cms.ui.authoring.unable_to_load_file"));
|
||||
}
|
||||
return file_bytes;
|
||||
}
|
||||
|
|
@ -283,9 +279,8 @@ public abstract class AbstractTextUploadForm
|
|||
// Converted successfully, flag type should be html
|
||||
used_inso[0] = true;
|
||||
} else {
|
||||
throw new FormProcessException(
|
||||
"Could not convert to html format. "
|
||||
+ "interMedia INSO filter conversion failed.");
|
||||
throw new FormProcessException(GlobalizationUtil.globalize(
|
||||
"cms.ui.authoring.couldnt_convert_inso_failed"));
|
||||
}
|
||||
} else {
|
||||
// Text type, no need to convert
|
||||
|
|
@ -314,10 +309,8 @@ public abstract class AbstractTextUploadForm
|
|||
int bodyStart_v = lc.indexOf(">", bodyStart);
|
||||
int bodyEnd = lc.indexOf("</body>", bodyStart_v);
|
||||
if (bodyStart == -1 || bodyEnd == -1) {
|
||||
final String errMsg =
|
||||
"The file (which should be type "
|
||||
+ "HTML) is missing the <body> or </body> tag.";
|
||||
throw new FormProcessException(errMsg);
|
||||
throw new FormProcessException(GlobalizationUtil.globalize(
|
||||
"cms.ui.authoring.html_file_missing_body_tags"));
|
||||
}
|
||||
return htmlText.substring(bodyStart_v + 1, bodyEnd);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -331,7 +331,8 @@ public abstract class TextAssetBody extends SecurityPropertyEditor
|
|||
allowINSOConvert().booleanValue());
|
||||
|
||||
if (!validType) {
|
||||
throw new FormProcessException(GlobalizationUtil.globalize("cms.ui.authoring.invalid_file_type"));
|
||||
throw new FormProcessException(GlobalizationUtil.globalize(
|
||||
"cms.ui.authoring.invalid_file_type"));
|
||||
}
|
||||
|
||||
boolean insoWorks = MimeTypeStatus.getMimeTypeStatus().
|
||||
|
|
@ -339,7 +340,8 @@ public abstract class TextAssetBody extends SecurityPropertyEditor
|
|||
|
||||
if (!textType && !insoWorks) {
|
||||
// Can't convert. inso filter is not working. Give message.
|
||||
throw new FormProcessException(GlobalizationUtil.globalize("cms.ui.authoring.couldnt_convert_missing_inso"));
|
||||
throw new FormProcessException(GlobalizationUtil.globalize(
|
||||
"cms.ui.authoring.couldnt_convert_missing_inso"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -405,7 +407,8 @@ public abstract class TextAssetBody extends SecurityPropertyEditor
|
|||
int bodyStart_v = lc.indexOf(">", bodyStart);
|
||||
int bodyEnd = lc.indexOf("</body>", bodyStart_v);
|
||||
if (bodyStart == -1 || bodyEnd == -1) {
|
||||
throw new FormProcessException(GlobalizationUtil.globalize("cms.ui.authoring.html_file_missing_body_tags"));
|
||||
throw new FormProcessException(GlobalizationUtil.globalize(
|
||||
"cms.ui.authoring.html_file_missing_body_tags"));
|
||||
}
|
||||
return htmlText.substring(bodyStart_v + 1, bodyEnd);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue