2012-07-01 17:21:02 -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 : {
2012-07-01 17:54:46 -03:00
init : function ( locale ) {
locale = $defined ( locale ) ? locale : 'en' ;
2012-07-01 17:21:02 -03:00
mindplot . Messages . _ _bundle = mindplot . Messages . BUNDLES [ locale ] ;
console . log ( mindplot . Messages . _ _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.' ,
2012-07-02 23:09:32 -03:00
ONLY _ONE _TOPIC _MUST _BE _SELECTED : 'Could not create a topic. Only one topic must be selected.' ,
2012-07-01 17:21:02 -03:00
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' ,
2012-07-02 23:09:32 -03:00
CENTRAL _TOPIC : 'Central Topic' ,
ONLY _ONE _TOPIC _MUST _BE _SELECTED _COLLAPSE : 'Children can not be collapsed. One topic must be selected.'
2012-07-01 17:21:02 -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' ,
2012-07-02 23:09:32 -03:00
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.'
2012-07-01 17:21:02 -03:00
}
} ;