From bf8d147ca5f9360864524361b62f83090a71413f Mon Sep 17 00:00:00 2001 From: "U-DESKTOP-HQME86J\\marco" Date: Thu, 2 Jan 2020 19:09:19 +0100 Subject: [PATCH] requeste changes --- contrib/ext_editor.lua | 22 +++++++++++----------- locale/it_IT/LC_MESSAGES/ext_editor.mo | Bin 2180 -> 0 bytes 2 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 locale/it_IT/LC_MESSAGES/ext_editor.mo diff --git a/contrib/ext_editor.lua b/contrib/ext_editor.lua index d9b4f0e..b5e8eb2 100644 --- a/contrib/ext_editor.lua +++ b/contrib/ext_editor.lua @@ -105,7 +105,7 @@ local lastchoice = 0 -- update lists of program names and paths, as well as combobox --------------- -local function UpdateProgramList(combobox, button1, button2, update_button_pressed) +local function UpdateProgramList(combobox, button_edit, button_edit_copy, update_button_pressed) -- initialize lists program_names = {} @@ -137,8 +137,8 @@ local function UpdateProgramList(combobox, button1, button2, update_button_press combobox.selected = lastchoice local active = n_entries > 0 combobox.sensitive = active - button1.sensitive = active - button2.sensitive = active + button_edit.sensitive = active + button_edit_copy.sensitive = active if update_button_pressed then dt.print(n_entries.._(" editors configured")) end end @@ -367,7 +367,7 @@ local combobox = dt.new_widget("combobox") { -- button edit ---------------------------------------------------------------- -local button1 = dt.new_widget("button") { +local button_edit = dt.new_widget("button") { label = _("edit"), tooltip = _("open the selected image in external editor"), --sensitive = false, @@ -378,7 +378,7 @@ local button1 = dt.new_widget("button") { -- button edit a copy --------------------------------------------------------- -local button2 = dt.new_widget("button") { +local button_edit_copy = dt.new_widget("button") { label = _("edit a copy"), tooltip = _("create a copy of the selected image and open it in external editor"), clicked_callback = function() @@ -388,11 +388,11 @@ local button2 = dt.new_widget("button") { -- button update list --------------------------------------------------------- -local button3 = dt.new_widget("button") { +local button_update_list = dt.new_widget("button") { label = _("update list"), tooltip = _("update list of programs if lua preferences are changed"), clicked_callback = function() - UpdateProgramList(combobox, button1, button2, true) + UpdateProgramList(combobox, button_edit, button_edit_copy, true) end } @@ -401,9 +401,9 @@ local button3 = dt.new_widget("button") { -- it doesn't seem there is a way to make the buttons equal in size local box1 = dt.new_widget("box") { orientation = "horizontal", - button1, - button2, - button3 + button_edit, + button_edit_copy, + button_update_list } @@ -425,7 +425,7 @@ dt.register_lib( -- initialize list of programs and widgets ------------------------------------ -UpdateProgramList(combobox, button1, button2, false) +UpdateProgramList(combobox, button_edit, button_edit_copy, false) -- register the new preferences ----------------------------------------------- diff --git a/locale/it_IT/LC_MESSAGES/ext_editor.mo b/locale/it_IT/LC_MESSAGES/ext_editor.mo deleted file mode 100644 index 3d4925d33e1df8e424f4371e15b1ed3340aa46bf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2180 zcma)+&u<(x6vqt|S{BNWQhv6AR|!NyG-);kR3=T;HUzX1X`?1W;zXSp@5GhI9&AsV z^n}Wx7sL$&;>6#;i96-Ql_NcI;et58o$vF`=EqVhteyGHcx}J;zVE%cd+gAc0^=fN}Q!3^)aT z1hOBuz_-CKz#OsN0ofl8=5gRS_$YV^WdCMBws#I(0N)3XfS-XJ_vawn`xazBzVGIL z0@=S`z?Z>4z~{iDhe!Kf1zGDe;7i~Y5I=Dpx8tA(p9XJ(GvGHMpLYl3cGWMO%g&Zla7r~>r*d`A?Ydko9_KgR&r@W>Y+#pZV<4KV1uurTb`}i=f z{R1u~4S0?vD-L^NpV;Tte=H%vGE3T$MwbMIb)iI(=^hf^ zL$<~!iJXkICZuT;g6JmHeIp;QVp9{Y)6ly*rP1gRMcb5|;K^r>xhsc2dPt^~cvnN^ zl`T{t=@nvvMQ2Bte$=T?~qtfeLRh)xtB~-f1F11z2)?H4$)hpRm zwWWD^_AXq=X@0K%PS&5#=Fif6KY#PBnYsSlT<-%JVz%z34Mw7pbE>5;9Gy#;Eu{C- zYpX9*wbW*|aP@g?u~m!8%+{5xa~edXK-%5u9EI9j8LTYtx!a$e>n%AOm4z)7LrxJ9 zoNkQNc7X%+LB++3YfFQ{-a7UPf@I6Ka3yLir?VS4dDXODn(RI2>yVRe(rZ|pU!c+B z;*_ORi`1W9=#ATRw>xFj+@6-AcUuS-4XQ$Dt(z8Wg{q7mC#9BRiM#YBF>kW;* G6aN4N6;u!a