Skip to content

Commit

Permalink
Change query tool delete message
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasstein committed Dec 1, 2016
1 parent 600087b commit a95cefd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/js/bundles/dn_querybuilder/config/ToolsBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ define([
createInstance: function () {
var configStore = this._getConfigStore();
var properties = this._properties || {};
var i18nGRID = this._i18n.get().widget.grid;
var i18n = this.i18n = this._i18n.get();
var i18nGRID = i18n.widget.grid;
var opts = d_lang.mixin({
configStore: configStore,
toolbar: this._toolbar,
Expand Down Expand Up @@ -136,7 +137,7 @@ define([
properties.customquery = {};
properties.options = {};
}
var wizardI18n = this._i18n.get().widget.wizard;
var wizardI18n = this.i18n.widget.wizard;
return new ToolsBuilderWizard({
widget: this._widget,
globalProperties: this._properties,
Expand All @@ -158,7 +159,7 @@ define([
_openWizardWindow: function (wizard, edit) {
var properties = wizard.get("properties");
var windowManager = this._windowManager;
var i18n = this._i18n.get().widget.wizard;
var i18n = this.i18n.widget.wizard;
var title;
if (edit === true) {
title = i18n.windowtitleEdit;
Expand Down Expand Up @@ -216,7 +217,7 @@ define([
_onRemoveQueryTool: function (event) {
var ids = event.ids || [];
ct_when(this._windowManager.createInfoDialogWindow({
message: "DeleteQueryTool",
message: this.i18n.widget.window.removeToolMessage,
attachToDom: this._appCtx.builderWindowRoot
}), function () {
var store = this._getConfigStore();
Expand Down
1 change: 1 addition & 0 deletions src/main/js/bundles/dn_querybuilder/config/nls/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ define({
window: {
title: "Name",
removeTool: "Remove custom query tool",
removeToolMessage: "Remove custom query tool?",
addTool: "Add new custom query tool",
copyTool: "Copy custom query tool"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ define({
window: {
title: "Name",
removeTool: "Custom Query Tool entfernen",
removeToolMessage: "Custom Query Tool entfernen?",
addTool: "Custom Query Tool hinzuf\u00fcgen",
copyTool: "Custom Query Tool kopieren"
},
Expand Down

0 comments on commit a95cefd

Please sign in to comment.