[DE][DE mobile] Handle ComplexFieldEmptyTOC, ComplexFieldNoTOC errors
This commit is contained in:
parent
3eb7cad42f
commit
b0e59d6df8
|
@ -304,11 +304,9 @@ define([
|
|||
|
||||
onTableContentsUpdate: function(type, currentTOC){
|
||||
var props = this.api.asc_GetTableOfContentsPr(currentTOC);
|
||||
if (props) {
|
||||
if (currentTOC && props)
|
||||
currentTOC = props.get_InternalClass();
|
||||
this.api.asc_UpdateTableOfContents(type == 'pages', currentTOC);
|
||||
}
|
||||
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
||||
},
|
||||
|
||||
|
|
|
@ -1904,9 +1904,14 @@ define([
|
|||
break;
|
||||
|
||||
case Asc.c_oAscError.ID.ComplexFieldEmptyTOC:
|
||||
config.maxwidth = 600;
|
||||
config.msg = this.errorEmptyTOC;
|
||||
break;
|
||||
|
||||
case Asc.c_oAscError.ID.ComplexFieldNoTOC:
|
||||
config.msg = this.errorNoTOC;
|
||||
break;
|
||||
|
||||
default:
|
||||
config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id);
|
||||
break;
|
||||
|
@ -3135,7 +3140,8 @@ define([
|
|||
textReconnect: 'Connection is restored',
|
||||
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.',
|
||||
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 || {}))
|
||||
});
|
|
@ -564,7 +564,8 @@
|
|||
"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.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.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...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Naməlum xəta.",
|
||||
"uploadImageExtMessage": "Naməlum təsvir formatı.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Məlumat yüklənir...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"openErrorText": "An error has occurred while opening 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.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Загрузка даных…",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"uploadImageExtMessage": "Unknown image format.",
|
||||
"uploadImageFileCountMessage": "No images uploaded.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Loading data...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Error desconegut.",
|
||||
"uploadImageExtMessage": "Format d'imatge desconegut.",
|
||||
"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": {
|
||||
"applyChangesTextText": "S'estan carregant les dades...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Neznámá chyba.",
|
||||
"uploadImageExtMessage": "Neznámý formát obrázku.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Načítání dat...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"uploadImageExtMessage": "Unknown image format.",
|
||||
"uploadImageFileCountMessage": "No images uploaded.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Loading data...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Unbekannter Fehler.",
|
||||
"uploadImageExtMessage": "Unbekanntes Bildformat.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Daten werden geladen...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Άγνωστο σφάλμα.",
|
||||
"uploadImageExtMessage": "Άγνωστη μορφή εικόνας.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Φόρτωση δεδομένων...",
|
||||
|
|
|
@ -387,6 +387,8 @@
|
|||
"errorUserDrop": "The file can't be accessed right now.",
|
||||
"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.",
|
||||
"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",
|
||||
"openErrorText": "An error has occurred while opening the file",
|
||||
"saveErrorText": "An error has occurred while saving the file",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Error desconocido.",
|
||||
"uploadImageExtMessage": "Formato de imagen desconocido.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Cargando datos...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"uploadImageExtMessage": "Unknown image format.",
|
||||
"uploadImageFileCountMessage": "No images uploaded.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Loading data...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Erreur inconnue.",
|
||||
"uploadImageExtMessage": "Format d'image inconnu.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Chargement des données en cours...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Erro descoñecido.",
|
||||
"uploadImageExtMessage": "Formato de imaxe descoñecido.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Cargando datos...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Ismeretlen hiba.",
|
||||
"uploadImageExtMessage": "Ismeretlen képformátum.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Adatok betöltése...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Errore sconosciuto.",
|
||||
"uploadImageExtMessage": "Formato d'immagine sconosciuto.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Caricamento di dati...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "不明なエラー",
|
||||
"uploadImageExtMessage": "不明なイメージの形式",
|
||||
"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": {
|
||||
"applyChangesTextText": "データの読み込み中...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "알 수 없는 오류.",
|
||||
"uploadImageExtMessage": "알 수없는 이미지 형식입니다.",
|
||||
"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": {
|
||||
"applyChangesTextText": "데이터로드 중 ...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"uploadImageExtMessage": "Unknown image format.",
|
||||
"uploadImageFileCountMessage": "No images uploaded.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Loading data...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"uploadImageExtMessage": "Unknown image format.",
|
||||
"uploadImageFileCountMessage": "No images uploaded.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Loading data...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"uploadImageExtMessage": "Unknown image format.",
|
||||
"uploadImageFileCountMessage": "No images uploaded.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Loading data...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Onbekende fout.",
|
||||
"uploadImageExtMessage": "Onbekende afbeeldingsindeling.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Gegevens worden geladen...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"uploadImageExtMessage": "Unknown image format.",
|
||||
"uploadImageFileCountMessage": "No images uploaded.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Loading data...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Erro desconhecido.",
|
||||
"uploadImageExtMessage": "Formato de imagem desconhecido.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Carregando dados...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Eroare necunoscută.",
|
||||
"uploadImageExtMessage": "Format de imagine nerecunoscut.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Încărcarea datelor...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Неизвестная ошибка.",
|
||||
"uploadImageExtMessage": "Неизвестный формат рисунка.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Загрузка данных...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"uploadImageExtMessage": "Unknown image format.",
|
||||
"uploadImageFileCountMessage": "No images uploaded.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Loading data...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"uploadImageExtMessage": "Unknown image format.",
|
||||
"uploadImageFileCountMessage": "No images uploaded.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Loading data...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"uploadImageExtMessage": "Unknown image format.",
|
||||
"uploadImageFileCountMessage": "No images uploaded.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Loading data...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Bilinmeyen hata.",
|
||||
"uploadImageExtMessage": "Bilinmeyen resim formatı.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Veri yükleniyor...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "Невідома помилка.",
|
||||
"uploadImageExtMessage": "Невідомий формат зображення.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Завантаження даних...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"uploadImageExtMessage": "Unknown image format.",
|
||||
"uploadImageFileCountMessage": "No images uploaded.",
|
||||
"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": {
|
||||
"applyChangesTextText": "Loading data...",
|
||||
|
|
|
@ -397,7 +397,9 @@
|
|||
"unknownErrorText": "未知错误。",
|
||||
"uploadImageExtMessage": "未知图像格式。",
|
||||
"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": {
|
||||
"applyChangesTextText": "数据加载中…",
|
||||
|
|
|
@ -134,11 +134,9 @@ class ContextMenu extends ContextMenuController {
|
|||
const api = Common.EditorApi.get();
|
||||
let props = api.asc_GetTableOfContentsPr(currentTOC);
|
||||
|
||||
if (props) {
|
||||
if (currentTOC && props)
|
||||
currentTOC = props.get_InternalClass();
|
||||
api.asc_UpdateTableOfContents(type == 'pages', currentTOC);
|
||||
}
|
||||
};
|
||||
|
||||
showCopyCutPasteModal() {
|
||||
|
|
|
@ -181,6 +181,14 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu
|
|||
config.msg = _t.errorLoadingFont;
|
||||
break;
|
||||
|
||||
case Asc.c_oAscError.ID.ComplexFieldEmptyTOC:
|
||||
config.msg = _t.errorEmptyTOC;
|
||||
break;
|
||||
|
||||
case Asc.c_oAscError.ID.ComplexFieldNoTOC:
|
||||
config.msg = _t.errorNoTOC;
|
||||
break;
|
||||
|
||||
default:
|
||||
config.msg = _t.errorDefaultMessage.replace('%1', id);
|
||||
break;
|
||||
|
|
|
@ -238,11 +238,9 @@ class EditTableContentsController extends Component {
|
|||
const api = Common.EditorApi.get();
|
||||
let props = api.asc_GetTableOfContentsPr(currentTOC);
|
||||
|
||||
if (props) {
|
||||
if (currentTOC && props)
|
||||
currentTOC = props.get_InternalClass();
|
||||
api.asc_UpdateTableOfContents(type == 'pages', currentTOC);
|
||||
}
|
||||
};
|
||||
|
||||
onRemoveTableContents(currentTOC) {
|
||||
|
|
Loading…
Reference in a new issue