Generate convertor for properties files to js.
This commit is contained in:
@@ -36,6 +36,48 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.gmaven</groupId>
|
||||
<artifactId>gmaven-plugin</artifactId>
|
||||
<version>1.4</version>
|
||||
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>generate-resources</phase>
|
||||
<goals>
|
||||
<goal>execute</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<source>
|
||||
def outdir = new File(project.basedir, 'src/main/javascript');
|
||||
if (project.packaging != 'pom')
|
||||
{
|
||||
def dir = new File(project.basedir, 'src/main/resources/');
|
||||
|
||||
dir.eachFile { file ->
|
||||
def matcher = file.name =~ /messages_(.+)\.properties/;
|
||||
def lang = matcher[0][1];
|
||||
def outfile = new File(outdir, "MessageBundle_${lang}.js");
|
||||
println "Converting ${file.name} to ${outfile.name}";
|
||||
|
||||
outfile.withWriter('UTF-8') { out ->
|
||||
out.writeLine "mindplot.Messages.BUNDLES['${lang}'] = { ";
|
||||
file.eachLine('UTF-8') { line ->
|
||||
if( line.trim()!="" && line[0]!='#' ) {
|
||||
matcher = line =~ /(.+)=(.+)/;
|
||||
out.writeLine("'${matcher[0][1]}' : \"${matcher[0][2]}\",");
|
||||
}
|
||||
}
|
||||
out.writeLine("'DUMMY' : '' ");
|
||||
out.writeLine "};"
|
||||
}
|
||||
}
|
||||
}
|
||||
</source>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<executions>
|
||||
@@ -182,6 +224,12 @@
|
||||
<include>layout/GridSorter.js</include>
|
||||
<include>layout/OriginalLayout.js</include>
|
||||
<include>layout/EventBus.js</include>
|
||||
<include>MessageBundle_en.js</include>
|
||||
<include>MessageBundle_es.js</include>
|
||||
<include>MessageBundle_fr.js</include>
|
||||
<include>MessageBundle_pt_BR.js</include>
|
||||
<include>MessageBundle_zh_CN.js</include>
|
||||
<include>MessageBundle_zh_TW.js</include>
|
||||
<include>footer.js</include>
|
||||
</includes>
|
||||
</aggregation>
|
||||
|
1
mindplot/src/main/javascript/.gitignore
vendored
Normal file
1
mindplot/src/main/javascript/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
MessageBundle_*
|
@@ -40,206 +40,5 @@ $msg = function (key) {
|
||||
return msg ? msg : key;
|
||||
};
|
||||
|
||||
mindplot.Messages.BUNDLES = {
|
||||
'en':{
|
||||
|
||||
ZOOM_IN:'Zoom In',
|
||||
ZOOM_OUT:'Zoom Out',
|
||||
TOPIC_SHAPE:'Topic Shape',
|
||||
TOPIC_ADD:'Add Topic',
|
||||
TOPIC_DELETE:'Delete Topic',
|
||||
TOPIC_ICON:'Add Icon',
|
||||
TOPIC_LINK:'Add Link',
|
||||
TOPIC_RELATIONSHIP:'Relationship',
|
||||
TOPIC_COLOR:'Topic Color',
|
||||
TOPIC_BORDER_COLOR:'Topic Border Color',
|
||||
TOPIC_NOTE:'Add Note',
|
||||
FONT_FAMILY:'Font Type',
|
||||
FONT_SIZE:'Text Size',
|
||||
FONT_BOLD:'Text Bold',
|
||||
FONT_ITALIC:'Text Italic',
|
||||
UNDO_EDITION:'Undo Edition',
|
||||
REDO_EDITION:'Redo Edition',
|
||||
UNDO:'Undo',
|
||||
REDO:'Redo',
|
||||
INSERT:'Insert',
|
||||
SAVE:'Save',
|
||||
NOTE:'Note',
|
||||
ADD_TOPIC:'Add Topic',
|
||||
LOADING:'Loading ...',
|
||||
EXPORT:'Export',
|
||||
PRINT:'Print',
|
||||
PUBLISH:'Publish',
|
||||
COLLABORATE:'Share',
|
||||
HISTORY:'History',
|
||||
DISCARD_CHANGES:'Discard Changes',
|
||||
FONT_COLOR:'Text Color',
|
||||
SAVING:'Saving ...',
|
||||
SAVE_COMPLETE:'Save Complete',
|
||||
ZOOM_IN_ERROR:'Zoom too high.',
|
||||
ZOOM_ERROR:'No more zoom can be applied.',
|
||||
ONLY_ONE_TOPIC_MUST_BE_SELECTED:'Could not create a topic. Only one topic must be selected.',
|
||||
ONE_TOPIC_MUST_BE_SELECTED:'Could not create a topic. One topic must be selected.',
|
||||
SAVE_COULD_NOT_BE_COMPLETED:'Save could not be completed. Try latter.',
|
||||
UNEXPECTED_ERROR_LOADING:"We're sorry, an unexpected error has occurred. Try again reloading the editor.\nIf the problem persists, contact us to support@wisemapping.com.",
|
||||
MAIN_TOPIC:'Main Topic',
|
||||
SUB_TOPIC:'Sub Topic',
|
||||
ISOLATED_TOPIC:'Isolated Topic',
|
||||
CENTRAL_TOPIC:'Central Topic',
|
||||
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE:'Children can not be collapsed. One topic must be selected.',
|
||||
SHORTCUTS:'Keyboard Shortcuts',
|
||||
ENTITIES_COULD_NOT_BE_DELETED:'Could not delete topic or relation. At least one map entity must be selected.',
|
||||
CENTRAL_TOPIC_CAN_NOT_BE_DELETED:'Central topic can not be deleted.',
|
||||
SELECTION_COPIED_TO_CLIPBOARD:'Topics copied to the clipboard',
|
||||
CLIPBOARD_IS_EMPTY:'Nothing to copy. Clipboard is empty',
|
||||
AT_LEAST_ONE_TOPIC_MUST_BE_SELECTED:'At least one topic must be selected.',
|
||||
RELATIONSHIP_COULD_NOT_BE_CREATED:'Relationship could not be created. A parent relationship topic must be selected first.'
|
||||
|
||||
},
|
||||
'es':{
|
||||
DISCARD_CHANGES:'Descartar Cambios',
|
||||
SAVE:'Guardar',
|
||||
INSERT:'Insertar',
|
||||
ZOOM_IN:'Acercar',
|
||||
ZOOM_OUT:'Alejar',
|
||||
TOPIC_BORDER_COLOR:'Color del Borde',
|
||||
TOPIC_SHAPE:'Forma del Tópico',
|
||||
TOPIC_ADD:'Agregar Tópico',
|
||||
TOPIC_DELETE:'Borrar Tópico',
|
||||
TOPIC_ICON:'Agregar Icono',
|
||||
TOPIC_LINK:'Agregar Enlace',
|
||||
TOPIC_NOTE:'Agregar Nota',
|
||||
TOPIC_COLOR:'Color Tópico',
|
||||
TOPIC_RELATIONSHIP:'Relación',
|
||||
FONT_FAMILY:'Tipo de Fuente',
|
||||
FONT_SIZE:'Tamaño de Texto',
|
||||
FONT_BOLD:'Negrita',
|
||||
FONT_ITALIC:'Italica',
|
||||
FONT_COLOR:'Color de Texto',
|
||||
UNDO_EDITION:'Undo Edition',
|
||||
REDO_EDITION:'Redo Edition',
|
||||
UNDO:'Rehacer',
|
||||
NOTE:'Nota',
|
||||
LOADING:'Cargando ...',
|
||||
PRINT:'Imprimir',
|
||||
PUBLISH:'Publicar',
|
||||
REDO:'Deshacer',
|
||||
ADD_TOPIC:'Agregar Tópico',
|
||||
COLLABORATE:'Compartir',
|
||||
EXPORT:'Exportar',
|
||||
HISTORY:'History',
|
||||
SAVE_COMPLETE:'Grabado Completo',
|
||||
SAVING:'Grabando ...',
|
||||
ONE_TOPIC_MUST_BE_SELECTED:'No ha sido posible crear un nuevo tópico. Al menos un tópico debe ser seleccionado.',
|
||||
ONLY_ONE_TOPIC_MUST_BE_SELECTED:'No ha sido posible crear un nuevo tópico. Solo un tópico debe ser seleccionado.',
|
||||
SAVE_COULD_NOT_BE_COMPLETED:'Grabación no pudo ser completada. Intentelo mas tarde.',
|
||||
UNEXPECTED_ERROR_LOADING:"Lo sentimos, un error inesperado ha ocurrido. Intentelo nuevamente recargando el editor.\n Si el problema persiste, contactenos a support@wisemapping.com.",
|
||||
ZOOM_ERROR:'No es posible aplicar mas zoom.',
|
||||
ZOOM_IN_ERROR:'El zoom es muy alto.',
|
||||
MAIN_TOPIC:'Tópico Principal',
|
||||
SUB_TOPIC:'Tópico Secundario',
|
||||
ISOLATED_TOPIC:'Tópico Aislado',
|
||||
CENTRAL_TOPIC:'Tópico Central',
|
||||
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE:'Tópicos hijos no pueden ser colapsados. Solo un topic debe ser seleccionado.',
|
||||
SHORTCUTS:'Accesos directos',
|
||||
ENTITIES_COULD_NOT_BE_DELETED:'El tópico o la relación no pudo ser borrada. Debe selecionar al menos una.',
|
||||
CENTRAL_TOPIC_CAN_NOT_BE_DELETED:'El tópico central no puede ser borrado.',
|
||||
SELECTION_COPIED_TO_CLIPBOARD:'Tópicos copiados al clipboard',
|
||||
CLIPBOARD_IS_EMPTY:'Nada que copiar. Clipboard está vacio.',
|
||||
AT_LEAST_ONE_TOPIC_MUST_BE_SELECTED:'Al menos un tópico debe ser seleccionado.',
|
||||
RELATIONSHIP_COULD_NOT_BE_CREATED:'La relación no pudo ser creada. Una relación padre debe ser seleccionada primero.'
|
||||
|
||||
},
|
||||
zh_cn:{
|
||||
ZOOM_IN:'放大',
|
||||
ZOOM_OUT:'缩小',
|
||||
TOPIC_SHAPE:'节点外形',
|
||||
TOPIC_ADD:'添加节点',
|
||||
TOPIC_DELETE:'删除节点',
|
||||
TOPIC_ICON:'加入图标',
|
||||
TOPIC_LINK:'添加链接',
|
||||
TOPIC_RELATIONSHIP:'关系',
|
||||
TOPIC_COLOR:'节点颜色',
|
||||
TOPIC_BORDER_COLOR:'边框颜色',
|
||||
TOPIC_NOTE:'添加注释',
|
||||
FONT_FAMILY:'字体',
|
||||
FONT_SIZE:'文字大小',
|
||||
FONT_BOLD:'粗体',
|
||||
FONT_ITALIC:'斜体',
|
||||
UNDO:'撤销',
|
||||
REDO:'重做',
|
||||
INSERT:'插入',
|
||||
SAVE:'保存',
|
||||
NOTE:'注释',
|
||||
ADD_TOPIC:'添加节点',
|
||||
LOADING:'载入中……',
|
||||
EXPORT:'导出',
|
||||
PRINT:'打印',
|
||||
PUBLISH:'公开',
|
||||
COLLABORATE:'共享',
|
||||
HISTORY:'历史',
|
||||
DISCARD_CHANGES:'清除改变',
|
||||
FONT_COLOR:'文本颜色',
|
||||
SAVING:'保存中……',
|
||||
SAVE_COMPLETE:'完成保存',
|
||||
ZOOM_IN_ERROR:'缩放过多。',
|
||||
ZOOM_ERROR:'不能再缩放。',
|
||||
ONLY_ONE_TOPIC_MUST_BE_SELECTED:'不能创建节点。仅能选择一个节点。',
|
||||
ONE_TOPIC_MUST_BE_SELECTED:'不能创建节点。必须选择一个节点。',
|
||||
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE:'子节点不能折叠。必须选择一个节点。',
|
||||
SAVE_COULD_NOT_BE_COMPLETED:'保存未完成。稍后再试。',
|
||||
UNEXPECTED_ERROR_LOADING:'抱歉,突遭错误,我们无法处理你的请求。\n尝试重新装载编辑器。如果问题依然存在请联系support@wisemapping.com。',
|
||||
MAIN_TOPIC:'主节点',
|
||||
SUB_TOPIC:'子节点',
|
||||
ISOLATED_TOPIC:'独立节点',
|
||||
CENTRAL_TOPIC:'中心节点',
|
||||
SHORTCUTS:'快捷键'
|
||||
},
|
||||
zh_tw:{
|
||||
ZOOM_IN:'放大',
|
||||
ZOOM_OUT:'縮小',
|
||||
TOPIC_SHAPE:'節點外形',
|
||||
TOPIC_ADD:'添加節點',
|
||||
TOPIC_DELETE:'刪除節點',
|
||||
TOPIC_ICON:'加入圖示',
|
||||
TOPIC_LINK:'添加鏈接',
|
||||
TOPIC_RELATIONSHIP:'關係',
|
||||
TOPIC_COLOR:'節點顏色',
|
||||
TOPIC_BORDER_COLOR:'邊框顏色',
|
||||
TOPIC_NOTE:'添加注釋',
|
||||
FONT_FAMILY:'字體',
|
||||
FONT_SIZE:'文字大小',
|
||||
FONT_BOLD:'粗體',
|
||||
FONT_ITALIC:'斜體',
|
||||
UNDO:'撤銷',
|
||||
REDO:'重做',
|
||||
INSERT:'插入',
|
||||
SAVE:'保存',
|
||||
NOTE:'注釋',
|
||||
ADD_TOPIC:'添加節點',
|
||||
LOADING:'載入中……',
|
||||
EXPORT:'導出',
|
||||
PRINT:'列印',
|
||||
PUBLISH:'公開',
|
||||
COLLABORATE:'共用',
|
||||
HISTORY:'歷史',
|
||||
DISCARD_CHANGES:'清除改變',
|
||||
FONT_COLOR:'文本顏色',
|
||||
SAVING:'保存中……',
|
||||
SAVE_COMPLETE:'完成保存',
|
||||
ZOOM_IN_ERROR:'縮放過多。',
|
||||
ZOOM_ERROR:'不能再縮放。',
|
||||
ONLY_ONE_TOPIC_MUST_BE_SELECTED:'不能創建節點。僅能選擇一個節點。',
|
||||
ONE_TOPIC_MUST_BE_SELECTED:'不能創建節點。必須選擇一個節點。',
|
||||
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE:'子節點不能折疊。必須選擇一個節點。',
|
||||
SAVE_COULD_NOT_BE_COMPLETED:'保存未完成。稍後再試。',
|
||||
UNEXPECTED_ERROR_LOADING:'抱歉,突遭錯誤,我們無法處理你的請求。\n嘗試重新裝載編輯器。如果問題依然存在請聯繫support@wisemapping.com。',
|
||||
MAIN_TOPIC:'主節點',
|
||||
SUB_TOPIC:'子節點',
|
||||
ISOLATED_TOPIC:'獨立節點',
|
||||
CENTRAL_TOPIC:'中心節點',
|
||||
SHORTCUTS:'快捷鍵'
|
||||
}
|
||||
};
|
||||
mindplot.Messages.BUNDLES['zh'] = mindplot.Messages.zh_tw;
|
||||
mindplot.Messages.BUNDLES = {};
|
||||
|
||||
|
54
mindplot/src/main/resources/messages_fr.properties
Normal file
54
mindplot/src/main/resources/messages_fr.properties
Normal file
@@ -0,0 +1,54 @@
|
||||
# traduction fran<61>aise Ren<65> Amberg 2012-08-20
|
||||
|
||||
ZOOM_IN=Agrandir affichage
|
||||
ZOOM_OUT=R<EFBFBD>duire affichage
|
||||
TOPIC_SHAPE=Forme du noeud
|
||||
TOPIC_ADD=Ajouter un noeud
|
||||
TOPIC_DELETE=Supprimer le noeud
|
||||
TOPIC_ICON=Ajouter une ic<69>ne
|
||||
TOPIC_LINK=Ajouter un lien
|
||||
TOPIC_RELATIONSHIP=Relation du noeud
|
||||
TOPIC_COLOR=Couleur du lien
|
||||
TOPIC_BORDER_COLOR=Couleur de bordure du noeud
|
||||
TOPIC_NOTE=Ajouter une note
|
||||
FONT_FAMILY=Type de police
|
||||
FONT_SIZE=Taille de police
|
||||
FONT_BOLD=Caract<EFBFBD>res gras
|
||||
FONT_ITALIC=Caract<EFBFBD>res italiques
|
||||
UNDO=Annuler
|
||||
REDO=Refaire
|
||||
INSERT=Ins<EFBFBD>rer
|
||||
SAVE=Enregistrer
|
||||
NOTE=Note
|
||||
|
||||
ADD_TOPIC=Ajouter un noeud
|
||||
LOADING=Chargement ...
|
||||
EXPORT=Exporter
|
||||
PRINT=Imprimer
|
||||
PUBLISH=Publier
|
||||
COLLABORATE=Partager
|
||||
HISTORY=Historique
|
||||
DISCARD_CHANGES=Annuler les changements
|
||||
FONT_COLOR=Couleur de police
|
||||
SAVING=Enregistrement ...
|
||||
SAVE_COMPLETE=Enregistrement termin<69>
|
||||
|
||||
ZOOM_IN_ERROR=Zoom trop grand.
|
||||
ZOOM_ERROR=Impossible de zoomer plus.
|
||||
ONLY_ONE_TOPIC_MUST_BE_SELECTED=Impossible de cr<63>er un noeud. Un seul noeud doit <20>tre s<>lectionn<6E>.
|
||||
ONE_TOPIC_MUST_BE_SELECTED=Impossible de cr<63>er un noeud. Un noeud parent doit <20>tre s<>lectionn<6E> au pr<70>alable.
|
||||
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE=Un noeud enfant ne peut pas <20>tre r<>duit. Un noeud doit <20>tre s<>lectionn<6E>.
|
||||
SAVE_COULD_NOT_BE_COMPLETED=Enregistrement impossible. Essayer ult<6C>rieurement.
|
||||
UNEXPECTED_ERROR_LOADING=Nous sommes d<>sol<6F>s, une erreur vient de survenir.\nEssayez de recharger l'<27>diteur. Si le probl<62>me persiste, contactez-nous : support@wisemapping.com.
|
||||
MAIN_TOPIC=Noeud titre principal
|
||||
SUB_TOPIC=Noeud sous-titre
|
||||
ISOLATED_TOPIC=Noeud isol<6F>
|
||||
CENTRAL_TOPIC=Noeud racine
|
||||
SHORTCUTS=Raccourcis clavier
|
||||
|
||||
ENTITIES_COULD_NOT_BE_DELETED=Impossible d'effacer un noeud ou une relation. Au moins un objet de la carte doit <20>tre s<>lectionn<6E>.
|
||||
AT_LEAST_ONE_TOPIC_MUST_BE_SELECTED=Au moins un objet de la carte doit <20>tre s<>lectionn<6E>.
|
||||
CLIPBOARD_IS_EMPTY=Rien <20> copier. Presse-papier vide.
|
||||
CENTRAL_TOPIC_CAN_NOT_BE_DELETED=Le noeud racine ne peut pas <20>tre effac<61>.
|
||||
RELATIONSHIP_COULD_NOT_BE_CREATED=Impossible de cr<63>er relation. Un noeud parent doit <20>tre s<>lectionn<6E> au pr<70>alable.
|
||||
SELECTION_COPIED_TO_CLIPBOARD=Noeuds s<>lectionn<6E>s copi<70>s dans le presse-papiers.
|
Reference in New Issue
Block a user