- 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({ this.parent({
closeButton:true, closeButton:true,
destroyOnClose:true, destroyOnClose:true,
title:'Link', title:$msg('LINK'),
onInitialize:function (wrapper) { onInitialize:function (wrapper) {
wrapper.setStyle('opacity', 0); wrapper.setStyle('opacity', 0);
this.fx = new Fx.Morph(wrapper, { 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'}); var buttonContainer = new Element('div').setStyles({paddingTop:5, textAlign:'center'});
// Create accept button ... // 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.addClass('button');
okButton.inject(buttonContainer); okButton.inject(buttonContainer);
// Create remove button ... // Create remove button ...
if ($defined(model.getValue())) { 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.setStyle('margin', '5px');
rmButton.addClass('button'); rmButton.addClass('button');
rmButton.inject(buttonContainer); rmButton.inject(buttonContainer);
@ -121,7 +121,7 @@ mindplot.widget.LinkEditor = new Class({
} }
// Create cancel button ... // 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.setStyle('margin', '5px');
cButton.addClass('button'); cButton.addClass('button');
cButton.inject(buttonContainer); cButton.inject(buttonContainer);

View File

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

View File

@ -50,3 +50,8 @@ CLIPBOARD_IS_EMPTY=Nothing to copy. Clipboard is empty.
CENTRAL_TOPIC_CAN_NOT_BE_DELETED=Central topic can not be deleted. 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. 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. 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. 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 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

@ -54,3 +54,6 @@ CLIPBOARD_IS_EMPTY=Rien à copier. Presse-papier vide.
CENTRAL_TOPIC_CAN_NOT_BE_DELETED=Le noeud racine ne peut pas être effacé. 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. 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 CONFIRM_NEW_PASSWORD=Confirmer nouveau mot de passe
MY_WISEMAPS=Mes Wisemaps MY_WISEMAPS=Mes Wisemaps
RETYPE_PASSWORD=Répéter mot de passe RETYPE_PASSWORD=Répéter mot de passe
REGISTER=M'enregistrer REGISTER=M'enregistreREMEMBER_ME=Se souvenir de moi
REMEMBER_ME=Se souvenir de moi
SIGN_IN=Se connecter SIGN_IN=Se connecter
SIGN_UP=S'inscrire SIGN_UP=S'inscrire
ACCOUNT=Compte ACCOUNT=Compte