var defaultLang = 'en_EN';

var metopesI18n = {
       fr_FR: {
//classes_ui
           importTitle: "Outil d’importation XML-TEI",
           xmlFile: "Fichier XML :",
           dotdotdot: "...",
           chooseXMLFile: "Choisissez un fichier conteneur (.xml)",
           XMLFileFilter: "fichiers XML:*.xml",
           template: "Modèle : ",
           templateChooser: "Choisissez un modèle dans lequel importer votre fichier xml (.indd ou indt)",
           inddFileFilter: "Modèle:*.ind*;",
           param: "Paramètres d’import du fichier…",
           inddVersion:"Votre version d’InDesign : ",
           figTitle:"Figures",
           figparam: "Importation :",
           table: "Tableau",
           tables: "Tableaux",
           heap: "Libre",
           figTitleparam: "Position des titres : ",
           figTitlebelow: "En-dessous",
           figTitleRight: "À droite",
           figTitleUp: "Au-dessus",
           tableTitleparam: "Position des titres :",
           tableTitlebefore: "Avant",
           tableTitleafter: "Après",
           authorparam: "Nom(s) auteur(s) ",
           authorposition: "Placement : ",
           authorafter: "Après le titre ",
           authorbefore: "Avant le titre",
           authorsign: "En fin d’article ",
           keywordsparam: "Résumés et mots-clés",
           keywordsposition: "Placement : ",
           Y: "Oui",
           N: "Non",
           dp:" :",
           keywordsAll: "Tous",
           keywordsMainlang: "Langue princ.",
           metadataparam: "Page de métadonnées :",
           imgresparam: "Résolution :",
           imghr: "Mise en page (hr)",
           imgmr: "Épreuvage (mr)",
           imgbr: "Épreuvage (br)",
           notestable: "Gestion (InDesign ≥ 14) :",
           ntindd: "Bas de page (InDesign)",
           ntmet:"Internes (Métopes)",
           notesend: "Notes de fin",
           notesendlabel: "Gestion (InDesign ≥ 13) :",
           neindd: "Gestion InDesign",
           nemet:"Réf. croisées (Métopes)",
           apply: "Appliquer",
           close: "Fermer",
           chooseFiles: "Veuillez choisir un fichier XML ainsi qu’un modèle InDesign.",
           createbook: "Outil de création de livre InDesign",
           bookXMLfile: "Fichier XML du volume : ",
           bookprelim: "Modèle prélim. et intercal. : ",
           booktemplate: "Choisissez un modèle dans lequel importer tous les fichiers xml (.indd ou indt)",
           booktemplatefilter: "Modèle:*.ind*;",
           element: "Element : ",
           attribute: "Attribut : ",
           value: "Valeur : ",
           objectstyle: "Style de bloc : ",
           appendixparam: "Annexes",
           appendixposition: "Placement : ",
           appendixafter: "Après la bibliographie",
           appendixbefore: "Avant la bibliographie",
           datesFront: "En début d'article",
           datesEnd: "En fin d'article",
           datesNone: "Non affichées",
           datesparam: "Dates de soumission et d'acceptation"   ,
           datesposition: "Placement :",
           biographyPosVol: "En fin de volume",
           biographyPosUE: "En fin d'article",
           biographyparam: "Biographie auteur"   ,
           biographyposition: "Placement :",
//metopes_aid_client
            wrongpath: "Chemin mal formé (espace(s)) pour ",
            stopimport: " - Fin de l’import.",
            noXSL: "Feuille de transformation introuvable:",
            fail: "Impossible de créer le répertoire XML/.indd - Échec de la procédure.",
            failbat: "erreur d’exécution du script bat - ",
            failpath: "Erreur, le fichier XML n’a pas été transformé.\nLe script va s’arrêter.\nVérifiez si le fichier contient des accents.",
            failXSL: "Erreur exécution transformation XSL - ",
            exitXSL: "Sortie transformations XSL: ",
            failtransform: "Erreur, le fichier XML n’a pas été transformé.\nLe script va s’arrêter.",
            ital: "Italique",
//api_metopes        
             logTable: "Position des titres des tableaux : ",
             logAuthor: "Placement de l’auteur : ",
             logAbsract: "Placement des résumés et mots-clés : ",
             logLang: "Langue résumé et mots-clés :",
             logMeta: "Métadonnées :",
             logIconoPath: "Chemin vers l’icono :",
             logResolution: "Résolution icono :",
             logDates: "Placement des dates de soumission et d'acceptation : ",
             logAppendix: "Placement des annexes : ",
             logBiography: "Placement des biographies des auteurs : ",
             logimport: "Importation de ",
             logIn: " dans ",
             logFig: "- Paramètre d’import des figures :",
             logFigTitle: "- Paramètre des titres des figures :",
             logFigbelow: "\tPositionnés en dessous",
             logFigright: "\tPositionnés à droite",
             importXML: "Importation XML de ",
             ital: "Traitement de l’italique",
             checkindex: "- Vérification des niveaux d’index",
             indexNamemsg: "Un unique \"indexName\" a été détecté dans tout le document",
             indexNamequestion: "Souhaitez-vous supprimer l’indexName? (Et remonter d’un niveau l’index?)\nA noter qu’il peut être dangereux de le faire si le document doit s’insérer dans un livre.",
             indexNameNOdelete: "\tVous avez choisi de NE PAS supprimer le premier niveau d’index, commun à tous les index.",
             indexNamedelete: "\tVous avez choisi de supprimer le premier niveau d’index, commun à tous les index.",
             pagesprocess: "Ajout des pages",
             logimgprocess: "Traitement des images...",
             logcrossref: "Gestion des ref. croisées...",
             logindexprocess: "Traitement des marqueurs d’index",
             logTableMove: "Déplacement des tableaux",
             logTableReplace: "Replacement des tableaux",
             notesProcess: "Traitement des notes",
             logTableRedim: "- Redimensionnement des tableaux",
             logTableRedimFail: "Erreur de redimensionnement des tableaux - ",
             logColumn: "Restauration du nombre de colonnes initial",
             logDeletePages: "Fonction de suppression des pages vides - ",
             logImgRedim: "Problème lors du redimensionnement du graphique n°",
             logindexverif: "- Vérification du XML pour l’indexation",
             logindexpb1: " erreurs de positionnement de la balise index.",
             logindexpb2: "Le marqueur d’index risque d’être placé sur le paragraphe suivant.",
             logindexpb3: "\tIl est aussi possible qu’il manque l’attribut aid:pstyle dans le noeud xml parent de l’index (Dans ce cas le marqueur d’index sera bien placé).",
             logindexpb4: "\tDétail des erreurs : ",
             logindexpb5: "Un ou plusieurs marqueurs sont dans des éléments qui ne sont pas associés à un style de paragraphe.",
             logindexok: "\tOk",
             scriptEnd: "Traitement terminé",
             indexNumber: "\nVérification de l’import des index : nombre de balises index dans le fichier XML : ",
             indexnbindoc: "\nnombre d’index dans le document : ",
             indexlost: "\nPERTE : ",
             indexword: " index",
             logIndexImport: "- Vérification de l’import des index :",
             logIndexTags: "\tNombre de balises index dans le fichier XML : ",
             logIndexTagLost: "\tNombre d’index dans le document : ",
             logIndexTagLost: "\tPERTE : ",
             logImgRedim: "- Redimensionnement des graphiques",
             image: "\nL’image ",
             imageReduction: " a été réduite à ",
             logImage: "\tL’image ",
             indexErrorPage: "index page n°",
             indexErrorName: "\tnom : ",
             logIndexErrorDeletion: "erreur : marqueur supprimé ",
             caution: "Attention",
             already: "Déjà ",
             questionFollow: "pages ajoutées. Continuer l’import ?",
             stopaddingpages: "Abandon d’ajout de pages, après ajout de ",
             pages: " pages",
             crossrefExt: "External cross ref error  - ",
             crossref: "Gestion des références croisées",
             crossrefFormat: "format des références croisées :",
             crossrefError: "erreur lors de la gestion des refs. croisées : ",
             line: ", ligne =",
             logImageMode: "Mode images = ",
             blocSize: " Taille du bloc de référence = ",
             logImageTreatment: "-----------Traitement de l’image ",
             logImageID: " (ID indd ",
             logImageDetail: "              -> L’image ",
             logImageShouldRedim: " doit être redimensionnée",
             logImageWidth: "              -> Largeur trop grande (différence de ",
             logImageHeight: "              -> Hauteur trop grande (différence de ",
             logImageScale: "Remise à l’échelle  - division de la taille par ",
             logImageNoRedim: "              -> Aucun redimensionnement",
             logBlocStyleNew: "Création du style de bloc ",
             importBookEnd: "Création du livre terminée.",
             logBookunvalid: "Fichier conteneur mal formé. Les types '",
             logBookTypeId: "' doivent être identifiés.",
             allAttributes: "tous les attributs",
             allValues: "toutes les valeurs",
//anchored_frame
            nodocload: "Lancement du module impossible. Veuillez charger un document.",
            aftool: "Outil de création de cadres ancrés pour nœuds XML",
            node: "Noeuds :",
            attribute: " Attribut :",
            value: " Valeur :",
            afprocessing: "Création des cadres ancrés en cours...",
            afend: "Processus terminé: ",
            afcreated: " cadre(s) ancré(s) créé(s)",
//remove_figure_anchors
           afLaunchFail: "Lancement du module impossible. Veuillez charger un document.",
           afRemoveEnd: "Traitement terminé: ",
           unanchored: " image(s) désancrée(s)."
        },
        es_ES: {
//classes_ui
           importTitle: "Herramienta para importar XML-TEI",
           xmlFile: "Archivo XML: ",
           dotdotdot: "...",
           chooseXMLFile: "Elegir un archivo (.xml)",
           XMLFileFilter: "archivos XML:*.xml",
           template: "Bosquejo: ",
           templateChooser: "Elegir un bosquejo (.indd ou indt)",
           inddFileFilter: "Bosquejo:*.ind*;",
           param: "Parámetros de importación de archivos…",
           inddVersion:"Votre version d’InDesign : ",
           figTitle:"Figuras",
           figparam: "Importación: ",
           table: "Tabla",
           tables: "Tablas",
           heap: "Libre",
           figTitleparam: "Ubicación de los titulos de figuras: ",
           figTitlebelow: "Debajo de la figura",
           figTitleRight: "A la derecha de la figura",
           tableTitleparam: "Ubicación de los títulos de tablas:",
           tableTitlebefore: "Antes",
           tableTitleafter: "Despues",
           authorparam: "Ubicación del autor: ",
           authorposition: "Ubicación: ",
           authorafter: "Despues del título",
           authorbefore: "Antes del título",
           authorsign: "Al fin del documento",
           keywordsparam: "Ubicación resumenes y palabrasclaves: ",
           Y: "Si",
           N: "No",
           dp:":",
           keywordsAll: "Todos (resumenes y palabrasclaves)",
           keywordsMainlang: "Solo idioma principal del documento",
           metadataparam: "Página de metadatos:",
           imgresparam: "Resolución de las imágenes:",
           imghr: "Diseño (hr)",
           imgmr: "Galeras (mr)",
           imgbr: "Galeras (br)",
           notestable: "Notes de tableaux (InDesign ≥ 14)",
           ntindd: "En bas de page (InDesign)",
           ntmet:"Interne(s) (Métopes)",
           notesend: "Notes de fin",
           notesendlabel: "Gestion (InDesign ≥ 13) :",
           neindd: "Gestion InDesign",
           nemet:"Réf. croisées (Métopes)",
           apply: "Aplicar",
           close: "Salir",
           chooseFiles: "Elegir un archivo XML y un bosquejo InDesign.",
           createbook: "Herramienta de creación de libro InDesign",
           bookXMLfile: "Archivo XML del volumen: ",
           bookprelim: "Bosquejo prelim. y intercal.: ",
           booktemplate: "Elegir un modelo para importar todos los archivos xml (.indd ou indt)",
           booktemplatefilter: "Bosquejo:*.ind*;",
           element: "Elemento: ",
           attribute: "Attributo: ",
           value: "Valor: ",
           objectstyle: "Estilo de bloque: ",
           appendixparam: "Anexo",
           appendixposition: "Ubicación: ",
           appendixafter: "Después de la bibliografía",
           appendixbefore: "Antes de la bibliografía",
//metopes_aid_client
            wrongpath: "Camino mal hecho (espacio(s)) para ",
            stopimport: " - Fin de la importación.",
            noXSL: "Imposible de encontrar la hoja de estilo XSLT:",
            fail: "No se puede crear la carpeta XML/.indd - Fallo.",
            failbat: "Error de ejecución del script bat - ",
            failpath: "Error, no transformación del archivo XML.\nScript stop.\nComprobar si hay acentos.",
            failXSL: "Error de ejecución de transformación XSL -  ",
            exitXSL: "Resultado de la transformación XSL: ",
            failtransform: "Error, no transformación del archivo XML.\nScript stop.",
            ital: "Cursiva",
//api_metopes        
             logTable: "Posición de los títulos de tablas: ",
             logAuthor: "Posición del autor: ",
             logAuthor: "Posición del anexo: ",
             logAbsract: "Posición resumenes y palabrasclaves: ",
             logLang: "Idioma resumen y palabrasclaves:",
             logMeta: "Metadatos:",
             logIconoPath: "Camino a icono:",
             logResolution: "Resolución icono:",
             logimport: "Importación XML de ",
             logIn: " en ",
             logFig: "- Parámetro de importación de figuras:",
             logFigTitle: "- Parámetro de títulos de figuras:",
             logFigbelow: "\tPosicionados abajo",
             logFigright: "\tPosicionados a la derecha",
             importXML: "Importación XML de ",
             ital: "Tratamiento de cursivas",
             checkindex: "- Verificación de los niveles de índice",
             indexNamemsg: "Un solo \"indexName\" en el archivo",
             indexNamequestion: "Eliminar el indexName? (Entrada de índice directa?)\nCuidado si el archivo es parte de un libro.",
             indexNameNOdelete: "\tElige NO eliminar el primero nivel del index (el mismo para todas las entradas de índice).",
             indexNamedelete: "\tElige eliminar el primero nivel del index (el mismo para todas las entradas de índice).",
             pagesprocess: "Añadido de páginas",
             logimgprocess: "Tratamiento de las imágenes...",
             logcrossref: "Gestión de las ref. cruzadas...",
             logindexprocess: "Tratamiento de las entrades de índice",
             logTableMove: "Movimiento de las tablas",
             logTableReplace: "Reposicionamiento de las tablas",
             notesProcess: "Tratamiento de las notas",
             logTableRedim: "- Redimensionamiento de las tablas",
             logTableRedimFail: "Error en el redimensionamiento de las tablas - ",
             logColumn: "Restauración del número de columnas initial",
             logDeletePages: "Suppresión de las páginas vacías - ",
             logImgRedim: "Problema durante el redimensionamiento de la figura n°",
             logindexverif: "- Verificación del XML para indexación",
             logindexpb1: " errores en el posicionamiento de la etiqueta de índice.",
             logindexpb2: "El marcador de índice se puede colocar en el siguiente párrafo.",
             logindexpb3: "\tTambién es posible que el atributo aid:pstyle falta en el elemento xml padre de index (En este caso, el marcador de índice se colocará correctamente).",
             logindexpb4: "\tDetalles del error: ",
             logindexpb5: "Uno o más marcadores están en elementos que no están asociados con un estilo de párrafo.",
             logindexok: "\tOk",
             scriptEnd: "Tratamiento terminado",
             indexNumber: "\nComprobación de la importación de índices: número de etiquetas de índice en el archivo XML: ",
             indexnbindoc: "\nnúmero de elementos index en el documento: ",
             indexlost: "\nPérdida: ",
             indexword: " índice",
             logIndexImport: "- Comprobación de la importación de índices:",
             logIndexTags: "\tNúmero de elementos index en el archivo XML: ",
             logIndexTagLost: "\tNúmero de elementos index en el documento: ",
             logIndexTagLost: "\tFALTA: ",
             logImgRedim: "- Redimensionamiento de figuras",
             image: "\nLa imagen ",
             imageReduction: " ha sido reducido a ",
             logImage: "\tLa imagen ",
             indexErrorPage: "índice página n°",
             indexErrorName: "\tnombre: ",
             logIndexErrorDeletion: "error : entrada de índice suprimida ",
             caution: "Cuidado",
             already: "Ahora ",
             questionFollow: "páginas añadidas. ¿Conseguir el importación?",
             stopaddingpages: "Cancelación de la adición de páginas, después de la adición de ",
             pages: " páginas",
             crossrefExt: "External cross ref error  - ",
             crossref: "Gestión de las ref. cruzadas",
             crossrefFormat: "formato de las referencias cruzadas:",
             crossrefError: "error durante la gestión de las ref. cruzadas: ",
             line: ", línea =",
             logImageMode: "Modo imagenes = ",
             blocSize: " Tamaño de referencía = ",
             logImageTreatment: "-----------Tratamiento de la figura ",
             logImageID: " (ID indd ",
             logImageDetail: "              -> La figura ",
             logImageShouldRedim: " necesita redimensionamiento",
             logImageWidth: "              -> Ancho demasiado grande (diferencia de ",
             logImageHeight: "              -> Altura demasiado alta (diferencia de ",
             logImageScale: "Escala - división de tamaño por ",
             logImageNoRedim: "              -> Ningún redimensionamiento",
             logBlocStyleNew: "Creación del estilo de bloque ",
             importBookEnd: "Fin de la creación del libro.",
             logBookunvalid: "Se necesita cumplir los attributos tipo '",
             logBookTypeId: "' deben ser identificado.",
             allAttributes: "todos los atributos",
             allValues: "todos los valores",
//anchored_frame
            nodocload: "Ejecucion de los scripts imposible. Cargar un archivo.",
            aftool: "Herramienta de creación de marcos flotantes para elementos XML",
            node: "Elementos:",
            attribute: "Attributo:",
            value: "Valor:",
            afprocessing: "Creación de los marcos flotantes en curso...",
            afend: "Processus completado: ",
            afcreated: " marco(s) flotante(s) creado",
//remove_figure_anchors
           afLaunchFail: "Ejecucion de los scripts imposible. Cargar un archivo.",
           afRemoveEnd: "Processus completado: ",
           unanchored: " imagen(es) desanclada(s)."
        },
          en_EN: {
 //classes_ui
           importTitle: "XML-TEI import tool",
           xmlFile: "XML file: ",
           dotdotdot: "...",
           chooseXMLFile: "Choose XML file (.xml)",
           XMLFileFilter: "XML files:*.xml",
           template: "Template ",
           templateChooser: "Choose a template (.indd or indt)",
           inddFileFilter: "Template:*.ind*;",
           param: "File import settings…",
           inddVersion:"InDesign version: ",
           figTitle:"Figures",
           figparam: "Importing figures: ",
           table: "Table",
           tables: "Tables",
           heap: "Anchored frame",
           figTitleparam: "Placement of figures caption: ",
           figTitlebelow: "Below",
           figTitleRight: "On the right",
           figTitleUp: "Above",
           tableTitleparam: "Placement of table caption:",
           tableTitlebefore: "Before",
           tableTitleafter: "After",
           authorparam: "Placement of author ",
           authorposition: "Placement: ",
           authorafter: "After the title",
           authorbefore: "Before the title",
           authorsign: "At the end of the document",
           keywordsparam: "Placement of abstracts and keywords ",
           keywordsposition: "Placement: ",
           Y: "Yes",
           N: "No",
           dp:":",
           keywordsAll: "All abstracts and keywords",
           keywordsMainlang: "Only in main language",
           metadataparam: "Metadata page:",
           imgresparam: "Images resolution:",
           imghr: "Print layout (hr)",
           imgmr: "Proof reading galley (mr)",
           imgbr: "Proof reading galley (br)",
           notestable: "Table notes (InDesign ≥ 14):",
           ntindd: "Footnote place (InDesign)",
           ntmet:"Intern(s) (Métopes)",
           notesend: "Endnotes",
           notesendlabel: "Mode (InDesign ≥ 13):",
           neindd: "InDesign mode",
           nemet:"Crossref (Métopes)",
           apply: "Apply",
           close: "Close",
           chooseFiles: "Please choose an XML file and an InDesign template..",
           createbook: "Book creation tool",
           bookXMLfile: "XML volume file: ",
           bookprelim: "Template titlepages: ",
           booktemplate: "Choose a template (.indd or indt)",
           booktemplatefilter: "Template:*.ind*;",
           element: "Element: ",
           attribute: "Attribute: ",
           value: "Value: ",
           objectstyle: "Object style: ",
           appendixparam: "Appendix",
           appendixposition: "Placement: ",
           appendixafter: "After the bibliography",
           appendixbefore: "Before the bibliography",
//metopes_aid_client
            wrongpath: "Wrong path (contains spaces) for ",
            stopimport: " - End of import.",
            noXSL: "XSLT not found:",
            fail: "Unable to create the XML/.indd directory - Procedure failed.",
            failbat: "error executing the bat script - ",
            failpath: "Error, the XML file has not been transformed.\nScript stop.\nCheck if the file name contains accents.",
            failXSL: "Error executing XSL transformation -  ",
            exitXSL: "Transformation XSL output: ",
            failtransform: "Error, the XML file has not been transformed.\nScript stop.",
            ital: "Italic",
//api_metopes        
             logTable: "Placement of table caption: ",
             logAuthor: "Placement of author: ",
             logAuthor: "Placement of appendixes: ",
             logAbsract: "Placement of abstracts and keywords: ",
             logLang: "Abstracts and keywords language:",
             logMeta: "Metadata:",
             logIconoPath: "Path to icono:",
             logResolution: "Icono resolution:",
             logimport: "XML import of ",
             logIn: " into ",
             logFig: "- Figure import parameter:",
             logFigTitle: "- Placement of figures caption:",
             logFigbelow: "\tBelow",
             logFigright: "\tOn the right",
             importXML: "XML import of ",
             ital: "Processing of italics",
             checkindex: "- Checking index levels",
             indexNamemsg: "A single \"indexName\" was detected in the document",
             indexNamequestion: "Do you want to delete the indexName? ? (And move the index one level up?)\nNote that it could be dangerous to do so if the document is to be inserted into a book.",
             indexNameNOdelete: "\tYou have chosen NOT to delete the first level of index, common to all indexes.",
             indexNamedelete: "\tYou have chosen to delete the first level of index, common to all indexes.",
             pagesprocess: "Adding pages",
             logimgprocess: "Image processing ...",
             logcrossref: "Cross-reference management...",
             logindexprocess: "Index marker processing",
             logTableMove: "Moving tables",
             logTableReplace: "Replacing tables",
             notesProcess: "Notes processing",
             logTableRedim: "- Resizing tables",
             logTableRedimFail: "Error in resizing tables - ",
             logColumn: "Restoring the initial number of columns",
             logDeletePages: "Delete empty pages function - ",
             logImgRedim: "Problem when resizing the image n°",
             logindexverif: "- Checking XML for indexing",
             logindexpb1: " errors in index tag location.",
             logindexpb2: "The index marker may be placed on the following paragraph.",
             logindexpb3: "\tIt is also possible that the attribute aid:pstyle is missing on the XML parent node of the index (In this case the index marker will be placed correctly).",
             logindexpb4: "\tDetails of errors: ",
             logindexpb5: "One or more markers are in elements that are not associated with a paragraph style.",
             logindexok: "\tOk",
             scriptEnd: "Processing completed",
             indexNumber: "\nChecking the import of indexes: number of index tags in the XML file: ",
             indexnbindoc: "\nnumber of indexes in the document: ",
             indexlost: "\nLOSE: ",
             indexword: " index",
             logIndexImport: "- Checking the import of indexes:",
             logIndexTags: "\tNumber of index tags in the XML file: ",
             logIndexTagLost: "\tNumber of indexes in the document: ",
             logIndexTagLost: "\tLOSE: ",
             logImgRedim: "- Resizing graphics",
             image: "\nImage ",
             imageReduction: " has been reduced to ",
             logImage: "\tImage ",
             indexErrorPage: "index page n°",
             indexErrorName: "\tname: ",
             logIndexErrorDeletion: "error: marker deleted ",
             caution: "Caution",
             already: "Already ",
             questionFollow: "pages added. Continue importing?",
             stopaddingpages: "Cancelling addition of pages, after addition of ",
             pages: " pages",
             crossrefExt: "External cross ref error  - ",
             crossref: "Cross-reference management",
             crossrefFormat: "format of cross-references:",
             crossrefError: "error when managing cross-referenced ref.: ",
             line: ", line =",
             logImageMode: "Image mode = ",
             blocSize: " Reference block size = ",
             logImageTreatment: "-----------Image processing ",
             logImageID: " (ID indd ",
             logImageDetail: "              -> LImage ",
             logImageShouldRedim: " must be resized",
             logImageWidth: "              -> Width too large (difference of ",
             logImageHeight: "              -> Height too high (difference of ",
             logImageScale: "Scaling - size division by ",
             logImageNoRedim: "              -> No resizing required",
             logBlocStyleNew: "Creating the block style ",
             importBookEnd: "Book creation completed.",
             logBookunvalid: "Incorrect volume file. Types '",
             logBookTypeId: "' must be identified.",
             allAttributes: "all attributes",
             allValues: "all values",
//anchored_frame
            nodocload: "Launch of the module impossible. Please upload a document.",
            aftool: "Tool for creating anchored frames for XML nodes",
            node: "Nodes:",
            attribute: "Attribute:",
            value: "Value:",
            afprocessing: "Creation of anchored frames in progress....",
            afend: "Process completed: ",
            afcreated: " anchored frame(s) created",
//remove_figure_anchors
           afLaunchFail: "Launch of the module impossible. Please upload a document.",
           afRemoveEnd: "Processing completed: ",
           unanchored: " unanchored image(s)."
        }
 };
 
 var i18nLocale = metopesI18n[$.locale];
if(!i18nLocale)
    i18nLocale = metopesI18n[defaultLang];
    
function i18n(key){
       var trans =  i18nLocale[key];
       if(trans)
        return trans;
       return metopesI18n[defaultLang][key];      
}