[DE][DE mobile] Handle ComplexFieldEmptyTOC, ComplexFieldNoTOC errors

This commit is contained in:
Julia Radzhabova 2022-03-14 16:36:33 +03:00
parent 3eb7cad42f
commit b0e59d6df8
38 changed files with 121 additions and 48 deletions

View file

@ -304,11 +304,9 @@ define([
onTableContentsUpdate: function(type, currentTOC){ onTableContentsUpdate: function(type, currentTOC){
var props = this.api.asc_GetTableOfContentsPr(currentTOC); var props = this.api.asc_GetTableOfContentsPr(currentTOC);
if (props) {
if (currentTOC && props) if (currentTOC && props)
currentTOC = props.get_InternalClass(); currentTOC = props.get_InternalClass();
this.api.asc_UpdateTableOfContents(type == 'pages', currentTOC); this.api.asc_UpdateTableOfContents(type == 'pages', currentTOC);
}
Common.NotificationCenter.trigger('edit:complete', this.toolbar); Common.NotificationCenter.trigger('edit:complete', this.toolbar);
}, },

View file

@ -1904,9 +1904,14 @@ define([
break; break;
case Asc.c_oAscError.ID.ComplexFieldEmptyTOC: case Asc.c_oAscError.ID.ComplexFieldEmptyTOC:
config.maxwidth = 600;
config.msg = this.errorEmptyTOC; config.msg = this.errorEmptyTOC;
break; break;
case Asc.c_oAscError.ID.ComplexFieldNoTOC:
config.msg = this.errorNoTOC;
break;
default: default:
config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id); config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id);
break; break;
@ -3135,7 +3140,8 @@ define([
textReconnect: 'Connection is restored', textReconnect: 'Connection is restored',
errorLang: 'The interface language is not loaded.<br>Please contact your Document Server administrator.', errorLang: 'The interface language is not loaded.<br>Please contact your Document Server administrator.',
errorLoadingFont: 'Fonts are not loaded.<br>Please contact your Document Server administrator.', errorLoadingFont: 'Fonts are not loaded.<br>Please contact your Document Server administrator.',
errorEmptyTOC: 'There\'s no table of contents to update. You can insert one from the References tab.' errorEmptyTOC: 'Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.',
errorNoTOC: 'There\'s no table of contents to update. You can insert one from the References tab.'
} }
})(), DE.Controllers.Main || {})) })(), DE.Controllers.Main || {}))
}); });

View file

@ -564,7 +564,8 @@
"DE.Controllers.Main.errorUserDrop": "The file cannot be accessed right now.", "DE.Controllers.Main.errorUserDrop": "The file cannot be accessed right now.",
"DE.Controllers.Main.errorUsersExceed": "The number of users allowed by the pricing plan was exceeded", "DE.Controllers.Main.errorUsersExceed": "The number of users allowed by the pricing plan was exceeded",
"DE.Controllers.Main.errorViewerDisconnect": "Connection is lost. You can still view the document,<br>but will not be able to download or print it until the connection is restored and page is reloaded.", "DE.Controllers.Main.errorViewerDisconnect": "Connection is lost. You can still view the document,<br>but will not be able to download or print it until the connection is restored and page is reloaded.",
"DE.Controllers.Main.errorEmptyTOC": "There's no table of contents to update. You can insert one from the References tab.", "DE.Controllers.Main.errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"DE.Controllers.Main.errorNoTOC": "There's no table of contents to update. You can insert one from the References tab.",
"DE.Controllers.Main.leavePageText": "You have unsaved changes in this document. Click \"Stay on This Page\", then \"Save\" to save them. Click \"Leave This Page\" to discard all the unsaved changes.", "DE.Controllers.Main.leavePageText": "You have unsaved changes in this document. Click \"Stay on This Page\", then \"Save\" to save them. Click \"Leave This Page\" to discard all the unsaved changes.",
"DE.Controllers.Main.leavePageTextOnClose": "All unsaved changes in this document will be lost.<br> Click \"Cancel\" then \"Save\" to save them. Click \"OK\" to discard all the unsaved changes.", "DE.Controllers.Main.leavePageTextOnClose": "All unsaved changes in this document will be lost.<br> Click \"Cancel\" then \"Save\" to save them. Click \"OK\" to discard all the unsaved changes.",
"DE.Controllers.Main.loadFontsTextText": "Loading data...", "DE.Controllers.Main.loadFontsTextText": "Loading data...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Naməlum xəta.", "unknownErrorText": "Naməlum xəta.",
"uploadImageExtMessage": "Naməlum təsvir formatı.", "uploadImageExtMessage": "Naməlum təsvir formatı.",
"uploadImageFileCountMessage": "Heç bir təsvir yüklənməyib.", "uploadImageFileCountMessage": "Heç bir təsvir yüklənməyib.",
"uploadImageSizeMessage": "Təsvir çox böyükdür. Maksimum ölçü 25 MB-dır." "uploadImageSizeMessage": "Təsvir çox böyükdür. Maksimum ölçü 25 MB-dır.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Məlumat yüklənir...", "applyChangesTextText": "Məlumat yüklənir...",

View file

@ -397,7 +397,9 @@
"openErrorText": "An error has occurred while opening the file", "openErrorText": "An error has occurred while opening the file",
"saveErrorText": "An error has occurred while saving the file", "saveErrorText": "An error has occurred while saving the file",
"scriptLoadError": "The connection is too slow, some of the components could not be loaded. Please, reload the page.", "scriptLoadError": "The connection is too slow, some of the components could not be loaded. Please, reload the page.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB." "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Загрузка даных…", "applyChangesTextText": "Загрузка даных…",

View file

@ -397,7 +397,9 @@
"uploadImageExtMessage": "Unknown image format.", "uploadImageExtMessage": "Unknown image format.",
"uploadImageFileCountMessage": "No images uploaded.", "uploadImageFileCountMessage": "No images uploaded.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator." "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Error desconegut.", "unknownErrorText": "Error desconegut.",
"uploadImageExtMessage": "Format d'imatge desconegut.", "uploadImageExtMessage": "Format d'imatge desconegut.",
"uploadImageFileCountMessage": "No s'ha carregat cap imatge.", "uploadImageFileCountMessage": "No s'ha carregat cap imatge.",
"uploadImageSizeMessage": "La imatge és massa gran. La mida màxima és de 25 MB." "uploadImageSizeMessage": "La imatge és massa gran. La mida màxima és de 25 MB.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "S'estan carregant les dades...", "applyChangesTextText": "S'estan carregant les dades...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Neznámá chyba.", "unknownErrorText": "Neznámá chyba.",
"uploadImageExtMessage": "Neznámý formát obrázku.", "uploadImageExtMessage": "Neznámý formát obrázku.",
"uploadImageFileCountMessage": "Nenahrány žádné obrázky.", "uploadImageFileCountMessage": "Nenahrány žádné obrázky.",
"uploadImageSizeMessage": "Obrázek je příliš velký. Maximální velikost je 25 MB." "uploadImageSizeMessage": "Obrázek je příliš velký. Maximální velikost je 25 MB.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Načítání dat...", "applyChangesTextText": "Načítání dat...",

View file

@ -397,7 +397,9 @@
"uploadImageExtMessage": "Unknown image format.", "uploadImageExtMessage": "Unknown image format.",
"uploadImageFileCountMessage": "No images uploaded.", "uploadImageFileCountMessage": "No images uploaded.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator." "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Unbekannter Fehler.", "unknownErrorText": "Unbekannter Fehler.",
"uploadImageExtMessage": "Unbekanntes Bildformat.", "uploadImageExtMessage": "Unbekanntes Bildformat.",
"uploadImageFileCountMessage": "Keine Bilder hochgeladen.", "uploadImageFileCountMessage": "Keine Bilder hochgeladen.",
"uploadImageSizeMessage": "Die maximal zulässige Bildgröße von 25 MB ist überschritten." "uploadImageSizeMessage": "Die maximal zulässige Bildgröße von 25 MB ist überschritten.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Daten werden geladen...", "applyChangesTextText": "Daten werden geladen...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Άγνωστο σφάλμα.", "unknownErrorText": "Άγνωστο σφάλμα.",
"uploadImageExtMessage": "Άγνωστη μορφή εικόνας.", "uploadImageExtMessage": "Άγνωστη μορφή εικόνας.",
"uploadImageFileCountMessage": "Δεν μεταφορτώθηκαν εικόνες.", "uploadImageFileCountMessage": "Δεν μεταφορτώθηκαν εικόνες.",
"uploadImageSizeMessage": "Η εικόνα είναι πολύ μεγάλη. Το μέγιστο μέγεθος είναι 25MB." "uploadImageSizeMessage": "Η εικόνα είναι πολύ μεγάλη. Το μέγιστο μέγεθος είναι 25MB.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Φόρτωση δεδομένων...", "applyChangesTextText": "Φόρτωση δεδομένων...",

View file

@ -387,6 +387,8 @@
"errorUserDrop": "The file can't be accessed right now.", "errorUserDrop": "The file can't be accessed right now.",
"errorUsersExceed": "The number of users allowed by the pricing plan was exceeded", "errorUsersExceed": "The number of users allowed by the pricing plan was exceeded",
"errorViewerDisconnect": "Connection is lost. You can still view the document,<br>but you won't be able to download or print it until the connection is restored and the page is reloaded.", "errorViewerDisconnect": "Connection is lost. You can still view the document,<br>but you won't be able to download or print it until the connection is restored and the page is reloaded.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab.",
"notcriticalErrorTitle": "Warning", "notcriticalErrorTitle": "Warning",
"openErrorText": "An error has occurred while opening the file", "openErrorText": "An error has occurred while opening the file",
"saveErrorText": "An error has occurred while saving the file", "saveErrorText": "An error has occurred while saving the file",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Error desconocido.", "unknownErrorText": "Error desconocido.",
"uploadImageExtMessage": "Formato de imagen desconocido.", "uploadImageExtMessage": "Formato de imagen desconocido.",
"uploadImageFileCountMessage": "No hay imágenes subidas.", "uploadImageFileCountMessage": "No hay imágenes subidas.",
"uploadImageSizeMessage": "La imagen es demasiado grande. El tamaño máximo es de 25 MB." "uploadImageSizeMessage": "La imagen es demasiado grande. El tamaño máximo es de 25 MB.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Cargando datos...", "applyChangesTextText": "Cargando datos...",

View file

@ -397,7 +397,9 @@
"uploadImageExtMessage": "Unknown image format.", "uploadImageExtMessage": "Unknown image format.",
"uploadImageFileCountMessage": "No images uploaded.", "uploadImageFileCountMessage": "No images uploaded.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator." "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Erreur inconnue.", "unknownErrorText": "Erreur inconnue.",
"uploadImageExtMessage": "Format d'image inconnu.", "uploadImageExtMessage": "Format d'image inconnu.",
"uploadImageFileCountMessage": "Aucune image chargée.", "uploadImageFileCountMessage": "Aucune image chargée.",
"uploadImageSizeMessage": "L'image est trop grande. La taille limite est de 25 Mo." "uploadImageSizeMessage": "L'image est trop grande. La taille limite est de 25 Mo.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Chargement des données en cours...", "applyChangesTextText": "Chargement des données en cours...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Erro descoñecido.", "unknownErrorText": "Erro descoñecido.",
"uploadImageExtMessage": "Formato de imaxe descoñecido.", "uploadImageExtMessage": "Formato de imaxe descoñecido.",
"uploadImageFileCountMessage": "Non hai imaxes subidas.", "uploadImageFileCountMessage": "Non hai imaxes subidas.",
"uploadImageSizeMessage": "A imaxe é demasiado grande. O tamaño máximo é de 25 MB." "uploadImageSizeMessage": "A imaxe é demasiado grande. O tamaño máximo é de 25 MB.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Cargando datos...", "applyChangesTextText": "Cargando datos...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Ismeretlen hiba.", "unknownErrorText": "Ismeretlen hiba.",
"uploadImageExtMessage": "Ismeretlen képformátum.", "uploadImageExtMessage": "Ismeretlen képformátum.",
"uploadImageFileCountMessage": "Nincs kép feltöltve.", "uploadImageFileCountMessage": "Nincs kép feltöltve.",
"uploadImageSizeMessage": "A kép túl nagy. A maximális méret 25 MB." "uploadImageSizeMessage": "A kép túl nagy. A maximális méret 25 MB.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Adatok betöltése...", "applyChangesTextText": "Adatok betöltése...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Errore sconosciuto.", "unknownErrorText": "Errore sconosciuto.",
"uploadImageExtMessage": "Formato d'immagine sconosciuto.", "uploadImageExtMessage": "Formato d'immagine sconosciuto.",
"uploadImageFileCountMessage": "Nessuna immagine caricata.", "uploadImageFileCountMessage": "Nessuna immagine caricata.",
"uploadImageSizeMessage": "L'immagine è troppo grande. La dimensione massima è 25 MB." "uploadImageSizeMessage": "L'immagine è troppo grande. La dimensione massima è 25 MB.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Caricamento di dati...", "applyChangesTextText": "Caricamento di dati...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "不明なエラー", "unknownErrorText": "不明なエラー",
"uploadImageExtMessage": "不明なイメージの形式", "uploadImageExtMessage": "不明なイメージの形式",
"uploadImageFileCountMessage": "アップロードしたイメージがない", "uploadImageFileCountMessage": "アップロードしたイメージがない",
"uploadImageSizeMessage": "イメージのサイズの上限が超えさせました。サイズの上限がMB。" "uploadImageSizeMessage": "イメージのサイズの上限が超えさせました。サイズの上限がMB。",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "データの読み込み中...", "applyChangesTextText": "データの読み込み中...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "알 수 없는 오류.", "unknownErrorText": "알 수 없는 오류.",
"uploadImageExtMessage": "알 수없는 이미지 형식입니다.", "uploadImageExtMessage": "알 수없는 이미지 형식입니다.",
"uploadImageFileCountMessage": "이미지가 업로드되지 않았습니다.", "uploadImageFileCountMessage": "이미지가 업로드되지 않았습니다.",
"uploadImageSizeMessage": "이미지 크기 제한을 초과했습니다." "uploadImageSizeMessage": "이미지 크기 제한을 초과했습니다.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "데이터로드 중 ...", "applyChangesTextText": "데이터로드 중 ...",

View file

@ -397,7 +397,9 @@
"uploadImageExtMessage": "Unknown image format.", "uploadImageExtMessage": "Unknown image format.",
"uploadImageFileCountMessage": "No images uploaded.", "uploadImageFileCountMessage": "No images uploaded.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator." "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -397,7 +397,9 @@
"uploadImageExtMessage": "Unknown image format.", "uploadImageExtMessage": "Unknown image format.",
"uploadImageFileCountMessage": "No images uploaded.", "uploadImageFileCountMessage": "No images uploaded.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator." "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -397,7 +397,9 @@
"uploadImageExtMessage": "Unknown image format.", "uploadImageExtMessage": "Unknown image format.",
"uploadImageFileCountMessage": "No images uploaded.", "uploadImageFileCountMessage": "No images uploaded.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator." "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Onbekende fout.", "unknownErrorText": "Onbekende fout.",
"uploadImageExtMessage": "Onbekende afbeeldingsindeling.", "uploadImageExtMessage": "Onbekende afbeeldingsindeling.",
"uploadImageFileCountMessage": "Geen afbeeldingen geüpload.", "uploadImageFileCountMessage": "Geen afbeeldingen geüpload.",
"uploadImageSizeMessage": "De afbeelding is te groot. De maximale grootte is 25MB." "uploadImageSizeMessage": "De afbeelding is te groot. De maximale grootte is 25MB.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Gegevens worden geladen...", "applyChangesTextText": "Gegevens worden geladen...",

View file

@ -397,7 +397,9 @@
"uploadImageExtMessage": "Unknown image format.", "uploadImageExtMessage": "Unknown image format.",
"uploadImageFileCountMessage": "No images uploaded.", "uploadImageFileCountMessage": "No images uploaded.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator." "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Erro desconhecido.", "unknownErrorText": "Erro desconhecido.",
"uploadImageExtMessage": "Formato de imagem desconhecido.", "uploadImageExtMessage": "Formato de imagem desconhecido.",
"uploadImageFileCountMessage": "Sem imagens carregadas.", "uploadImageFileCountMessage": "Sem imagens carregadas.",
"uploadImageSizeMessage": "Tamanho limite máximo da imagem excedido. O tamanho máximo é de 25 MB." "uploadImageSizeMessage": "Tamanho limite máximo da imagem excedido. O tamanho máximo é de 25 MB.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Carregando dados...", "applyChangesTextText": "Carregando dados...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Eroare necunoscută.", "unknownErrorText": "Eroare necunoscută.",
"uploadImageExtMessage": "Format de imagine nerecunoscut.", "uploadImageExtMessage": "Format de imagine nerecunoscut.",
"uploadImageFileCountMessage": "Nicio imagine nu a fost încărcată.", "uploadImageFileCountMessage": "Nicio imagine nu a fost încărcată.",
"uploadImageSizeMessage": "Imaginea este prea mare. Limita de dimensiune este de 25 MB." "uploadImageSizeMessage": "Imaginea este prea mare. Limita de dimensiune este de 25 MB.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Încărcarea datelor...", "applyChangesTextText": "Încărcarea datelor...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Неизвестная ошибка.", "unknownErrorText": "Неизвестная ошибка.",
"uploadImageExtMessage": "Неизвестный формат рисунка.", "uploadImageExtMessage": "Неизвестный формат рисунка.",
"uploadImageFileCountMessage": "Ни одного рисунка не загружено.", "uploadImageFileCountMessage": "Ни одного рисунка не загружено.",
"uploadImageSizeMessage": "Слишком большой рисунок. Максимальный размер - 25 MB." "uploadImageSizeMessage": "Слишком большой рисунок. Максимальный размер - 25 MB.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Загрузка данных...", "applyChangesTextText": "Загрузка данных...",

View file

@ -397,7 +397,9 @@
"uploadImageExtMessage": "Unknown image format.", "uploadImageExtMessage": "Unknown image format.",
"uploadImageFileCountMessage": "No images uploaded.", "uploadImageFileCountMessage": "No images uploaded.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator." "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -397,7 +397,9 @@
"uploadImageExtMessage": "Unknown image format.", "uploadImageExtMessage": "Unknown image format.",
"uploadImageFileCountMessage": "No images uploaded.", "uploadImageFileCountMessage": "No images uploaded.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator." "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -397,7 +397,9 @@
"uploadImageExtMessage": "Unknown image format.", "uploadImageExtMessage": "Unknown image format.",
"uploadImageFileCountMessage": "No images uploaded.", "uploadImageFileCountMessage": "No images uploaded.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator." "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Bilinmeyen hata.", "unknownErrorText": "Bilinmeyen hata.",
"uploadImageExtMessage": "Bilinmeyen resim formatı.", "uploadImageExtMessage": "Bilinmeyen resim formatı.",
"uploadImageFileCountMessage": "Resim yüklenmedi.", "uploadImageFileCountMessage": "Resim yüklenmedi.",
"uploadImageSizeMessage": "Görüntü çok büyük. Maksimum boyut 25 MB'dir." "uploadImageSizeMessage": "Görüntü çok büyük. Maksimum boyut 25 MB'dir.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Veri yükleniyor...", "applyChangesTextText": "Veri yükleniyor...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "Невідома помилка.", "unknownErrorText": "Невідома помилка.",
"uploadImageExtMessage": "Невідомий формат зображення.", "uploadImageExtMessage": "Невідомий формат зображення.",
"uploadImageFileCountMessage": "Жодного зображення не завантажено.", "uploadImageFileCountMessage": "Жодного зображення не завантажено.",
"uploadImageSizeMessage": "Занадто велике зображення. Максимальний розмір 25 MB." "uploadImageSizeMessage": "Занадто велике зображення. Максимальний розмір 25 MB.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Завантаження даних...", "applyChangesTextText": "Завантаження даних...",

View file

@ -397,7 +397,9 @@
"uploadImageExtMessage": "Unknown image format.", "uploadImageExtMessage": "Unknown image format.",
"uploadImageFileCountMessage": "No images uploaded.", "uploadImageFileCountMessage": "No images uploaded.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator." "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -397,7 +397,9 @@
"unknownErrorText": "未知错误。", "unknownErrorText": "未知错误。",
"uploadImageExtMessage": "未知图像格式。", "uploadImageExtMessage": "未知图像格式。",
"uploadImageFileCountMessage": "没有图片上传", "uploadImageFileCountMessage": "没有图片上传",
"uploadImageSizeMessage": "图片太大了。最大允许的大小是 25 MB." "uploadImageSizeMessage": "图片太大了。最大允许的大小是 25 MB.",
"errorEmptyTOC": "Start creating a table of contents by applying a heading style from the Styles gallery to the selected text.",
"errorNoTOC": "There's no table of contents to update. You can insert one from the References tab."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "数据加载中…", "applyChangesTextText": "数据加载中…",

View file

@ -134,11 +134,9 @@ class ContextMenu extends ContextMenuController {
const api = Common.EditorApi.get(); const api = Common.EditorApi.get();
let props = api.asc_GetTableOfContentsPr(currentTOC); let props = api.asc_GetTableOfContentsPr(currentTOC);
if (props) {
if (currentTOC && props) if (currentTOC && props)
currentTOC = props.get_InternalClass(); currentTOC = props.get_InternalClass();
api.asc_UpdateTableOfContents(type == 'pages', currentTOC); api.asc_UpdateTableOfContents(type == 'pages', currentTOC);
}
}; };
showCopyCutPasteModal() { showCopyCutPasteModal() {

View file

@ -181,6 +181,14 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu
config.msg = _t.errorLoadingFont; config.msg = _t.errorLoadingFont;
break; break;
case Asc.c_oAscError.ID.ComplexFieldEmptyTOC:
config.msg = _t.errorEmptyTOC;
break;
case Asc.c_oAscError.ID.ComplexFieldNoTOC:
config.msg = _t.errorNoTOC;
break;
default: default:
config.msg = _t.errorDefaultMessage.replace('%1', id); config.msg = _t.errorDefaultMessage.replace('%1', id);
break; break;

View file

@ -238,11 +238,9 @@ class EditTableContentsController extends Component {
const api = Common.EditorApi.get(); const api = Common.EditorApi.get();
let props = api.asc_GetTableOfContentsPr(currentTOC); let props = api.asc_GetTableOfContentsPr(currentTOC);
if (props) {
if (currentTOC && props) if (currentTOC && props)
currentTOC = props.get_InternalClass(); currentTOC = props.get_InternalClass();
api.asc_UpdateTableOfContents(type == 'pages', currentTOC); api.asc_UpdateTableOfContents(type == 'pages', currentTOC);
}
}; };
onRemoveTableContents(currentTOC) { onRemoveTableContents(currentTOC) {