mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-23 03:43:48 +01:00
Change messages ...
This commit is contained in:
parent
31c86d053d
commit
cd178109f3
@ -354,18 +354,12 @@ mindplot.Designer = new Class({
|
||||
|
||||
shrinkSelectedBranch:function () {
|
||||
var nodes = this.getModel().filterSelectedTopics();
|
||||
if (nodes.length <= 0) {
|
||||
if (nodes.length <= 0 || nodes.length != 1) {
|
||||
// If there are more than one node selected,
|
||||
$notify($msg('ONE_TOPIC_MUST_BE_SELECTED'));
|
||||
$notify($msg('ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE'));
|
||||
return;
|
||||
|
||||
}
|
||||
if (nodes.length != 1) {
|
||||
// If there are more than one node selected,
|
||||
$notify($msg('ONLY_ONE_TOPIC_MUST_BE_SELECTED'));
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute event ...
|
||||
var topic = nodes[0];
|
||||
this._actionDispatcher.shrinkBranch([topic.getId()], !topic.areChildrenShrunken());
|
||||
|
@ -71,14 +71,15 @@ mindplot.Messages.BUNDLES = {
|
||||
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 node must be selected.',
|
||||
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'
|
||||
CENTRAL_TOPIC: 'Central Topic',
|
||||
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE:'Children can not be collapsed. One topic must be selected.'
|
||||
},
|
||||
'es':{
|
||||
DISCARD_CHANGES:'Descartar Cambios',
|
||||
@ -123,7 +124,8 @@ mindplot.Messages.BUNDLES = {
|
||||
MAIN_TOPIC:'Tópico Principal',
|
||||
SUB_TOPIC:'Tópico Secundario',
|
||||
ISOLATED_TOPIC:'Tópico Aislado',
|
||||
CENTRAL_TOPIC: 'Tópico Central'
|
||||
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.'
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -33,8 +33,9 @@ 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 node must be selected.
|
||||
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.
|
||||
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE=Children can not be collapsed. 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.\nTry again reloading the editor.If the problem persists, contact us to support@wisemapping.com.
|
||||
MAIN_TOPIC=Main Topic
|
||||
|
@ -42,3 +42,4 @@ 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.
|
||||
|
Loading…
Reference in New Issue
Block a user