- I18 link and note dialog.

This commit is contained in:
Paulo Gustavo Veiga 2012-09-19 20:21:20 -03:00
parent cd776073dc
commit 310a6b9e03
6 changed files with 26 additions and 14 deletions

View File

@ -24,7 +24,7 @@ mindplot.widget.LinkEditor = new Class({
this.parent({
closeButton:true,
destroyOnClose:true,
title:'Link',
title:$msg('LINK'),
onInitialize:function (wrapper) {
wrapper.setStyle('opacity', 0);
this.fx = new Fx.Morph(wrapper, {
@ -102,13 +102,13 @@ mindplot.widget.LinkEditor = new Class({
var buttonContainer = new Element('div').setStyles({paddingTop:5, textAlign:'center'});
// Create accept button ...
var okButton = new Element('input', {type:'submit', value:'Accept', 'class':'btn-primary'});
var okButton = new Element('input', {type:'submit', value:$msg('ACCEPT'), 'class':'btn-primary'});
okButton.addClass('button');
okButton.inject(buttonContainer);
// Create remove button ...
if ($defined(model.getValue())) {
var rmButton = new Element('input', {type:'button', value:'Remove', 'class':'btn-primary'});
var rmButton = new Element('input', {type:'button', value:$msg('REMOVE'), 'class':'btn-primary'});
rmButton.setStyle('margin', '5px');
rmButton.addClass('button');
rmButton.inject(buttonContainer);
@ -121,7 +121,7 @@ mindplot.widget.LinkEditor = new Class({
}
// Create cancel button ...
var cButton = new Element('input', {type:'button', value:'Cancel', 'class':'btn-secondary'});
var cButton = new Element('input', {type:'button', value:$msg('CANCEL'), 'class':'btn-secondary'});
cButton.setStyle('margin', '5px');
cButton.addClass('button');
cButton.inject(buttonContainer);

View File

@ -24,7 +24,7 @@ mindplot.widget.NoteEditor = new Class({
this.parent({
closeButton:true,
destroyOnClose:true,
title:'Note',
title:$msg('NOTE'),
onInitialize:function (wrapper) {
wrapper.setStyle('opacity', 0);
this.fx = new Fx.Morph(wrapper, {
@ -68,7 +68,7 @@ mindplot.widget.NoteEditor = new Class({
// Add textarea ...
var textArea = new Element('textarea',
{placeholder:'Write your note here ...',
{placeholder:$msg('WRITE_YOUR_TEXT_HERE'),
required:true,
autofocus:'autofocus'
});
@ -85,7 +85,7 @@ mindplot.widget.NoteEditor = new Class({
form.addEvent('submit', function (event) {
event.preventDefault();
event.stopPropagation();
if (textArea.value ) {
if (textArea.value) {
model.setValue(textArea.value);
}
this.close();
@ -96,13 +96,13 @@ mindplot.widget.NoteEditor = new Class({
var buttonContainer = new Element('div').setStyles({paddingTop:5, textAlign:'right'});
// Create accept button ...
var okButton = new Element('input', {type:'submit', value:'Accept', 'class':'btn-primary'});
var okButton = new Element('input', {type:'submit', value:$msg('ACCEPT'), 'class':'btn-primary'});
okButton.addClass('button');
okButton.inject(buttonContainer);
// Create remove button ...
if ($defined(model.getValue())) {
var rmButton = new Element('input', {type:'button', value:'Remove', 'class':'btn-primary'});
var rmButton = new Element('input', {type:'button', value:$msg('REMOVE'), 'class':'btn-primary'});
rmButton.setStyle('margin', '5px');
rmButton.addClass('button');
rmButton.inject(buttonContainer);
@ -114,7 +114,7 @@ mindplot.widget.NoteEditor = new Class({
}
// Create cancel button ...
var cButton = new Element('input', {type:'button', value:'Cancel', 'class':'btn-secondary'});
var cButton = new Element('input', {type:'button', value:$msg('CANCEL'), 'class':'btn-secondary'});
cButton.setStyle('margin', '5px');
cButton.addClass('button');
cButton.inject(buttonContainer);

View File

@ -49,4 +49,9 @@ AT_LEAST_ONE_TOPIC_MUST_BE_SELECTED=At least one topic must be selected.
CLIPBOARD_IS_EMPTY=Nothing to copy. Clipboard is empty.
CENTRAL_TOPIC_CAN_NOT_BE_DELETED=Central topic can not be deleted.
RELATIONSHIP_COULD_NOT_BE_CREATED=Relationship could not be created. A parent relationship topic must be selected first.
SELECTION_COPIED_TO_CLIPBOARD=Topics copied to the clipboard
SELECTION_COPIED_TO_CLIPBOARD=Topics copied to the clipboard
WRITE_YOUR_TEXT_HERE=Write your note here ...
REMOVE=Remove
ACCEPT=Accept
CANCEL=Cancel

View File

@ -50,3 +50,8 @@ CLIPBOARD_IS_EMPTY=Nada que copiar. Clipboard está vacio.
CENTRAL_TOPIC_CAN_NOT_BE_DELETED=El tópico central no puede ser borrado.
RELATIONSHIP_COULD_NOT_BE_CREATED=La relación no pudo ser creada. Una relación padre debe ser seleccionada primero.
SELECTION_COPIED_TO_CLIPBOARD=Tópicos copiados al clipboard
WRITE_YOUR_TEXT_HERE=Escribe tu nota aquí ...
REMOVE=Borrar
ACCEPT=Aceptar
CANCEL=Cancelar

View File

@ -53,4 +53,7 @@ AT_LEAST_ONE_TOPIC_MUST_BE_SELECTED=Au moins un objet de la carte doit être sé
CLIPBOARD_IS_EMPTY=Rien à copier. Presse-papier vide.
CENTRAL_TOPIC_CAN_NOT_BE_DELETED=Le noeud racine ne peut pas être effacé.
RELATIONSHIP_COULD_NOT_BE_CREATED=Impossible de créer relation. Un noeud parent doit être sélectionné au préalable.
SELECTION_COPIED_TO_CLIPBOARD=Noeuds sélectionnés copiés dans le presse-papiers.
SELECTION_COPIED_TO_CLIPBOARD=Noeuds sélectionnés copiés dans le presse-papiers.
ACCEPT=Accepter
CANCEL=Annuler

View File

@ -23,8 +23,7 @@ NEW_PASSWORD=Nouveau mot de passe
CONFIRM_NEW_PASSWORD=Confirmer nouveau mot de passe
MY_WISEMAPS=Mes Wisemaps
RETYPE_PASSWORD=Répéter mot de passe
REGISTER=M'enregistrer
REMEMBER_ME=Se souvenir de moi
REGISTER=M'enregistreREMEMBER_ME=Se souvenir de moi
SIGN_IN=Se connecter
SIGN_UP=S'inscrire
ACCOUNT=Compte