2012-07-06 21:21:56 -03:00
/ *
* Copyright [ 2011 ] [ wisemapping ]
*
* Licensed under WiseMapping Public License , Version 1.0 ( the "License" ) .
* It is basically the Apache License , Version 2.0 ( the "License" ) plus the
* "powered by wisemapping" text requirement on every single page ;
* you may not use this file except in compliance with the License .
* You may obtain a copy of the license at
*
* http : //www.wisemapping.org/license
*
* Unless required by applicable law or agreed to in writing , software
* distributed under the License is distributed on an "AS IS" BASIS ,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied .
* See the License for the specific language governing permissions and
* limitations under the License .
* /
mindplot . Messages = new Class ( {
Static : {
init : function ( locale ) {
locale = $defined ( locale ) ? locale : 'en' ;
var bundle = mindplot . Messages . BUNDLES [ locale ] ;
if ( bundle == null && locale . indexOf ( "_" ) != - 1 ) {
// Try to locate without the specialization ...
locale = locale . substring ( 0 , locale . indexOf ( "_" ) ) ;
bundle = mindplot . Messages . BUNDLES [ locale ] ;
}
mindplot . Messages . _ _bundle = bundle ;
}
}
} ) ;
$msg = function ( key ) {
if ( ! mindplot . Messages . _ _bundle ) {
mindplot . Messages . init ( 'en' ) ;
}
return mindplot . Messages . _ _bundle [ 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' ,
2012-07-08 18:41:35 -03:00
// @Todo: pending ...
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'
2012-07-06 21:21:56 -03:00
} ,
'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'
} ,
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 ;