mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
- I18 link and note dialog.
This commit is contained in:
parent
cd776073dc
commit
310a6b9e03
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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.
|
||||
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
|
||||
WRITE_YOUR_TEXT_HERE=Write your note here ...
|
||||
REMOVE=Remove
|
||||
ACCEPT=Accept
|
||||
CANCEL=Cancel
|
||||
|
||||
|
@ -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
|
@ -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é.
|
||||
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.
|
||||
ACCEPT=Accepter
|
||||
CANCEL=Annuler
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user