Merge pull request #83 from chrik5/API5.0.0
This scripts work with API version 5.0.0 & small fix for hugin
This commit is contained in:
@@ -40,7 +40,7 @@ local dt = require "darktable"
|
||||
local debug = require "darktable.debug"
|
||||
|
||||
local gettext = dt.gettext
|
||||
dt.configuration.check_version(...,{3,0,0},{4,0,0})
|
||||
dt.configuration.check_version(...,{3,0,0},{4,0,0},{5,0,0})
|
||||
|
||||
-- Tell gettext where to find the .mo file translating messages for a particular domain
|
||||
gettext.bindtextdomain("copy_attach_detach_tags",dt.configuration.config_dir.."/lua/")
|
||||
|
||||
@@ -68,7 +68,7 @@ require "official/yield"
|
||||
|
||||
local gettext = dt.gettext
|
||||
|
||||
dt.configuration.check_version(...,{3,0,0},{4,0,0})
|
||||
dt.configuration.check_version(...,{3,0,0},{4,0,0},{5,0,0})
|
||||
|
||||
-- Tell gettext where to find the .mo file translating messages for a particular domain
|
||||
gettext.bindtextdomain("gimp",dt.configuration.config_dir.."/lua/")
|
||||
|
||||
@@ -39,7 +39,7 @@ require "official/yield"
|
||||
local gettext = dt.gettext
|
||||
|
||||
-- works with darktable API version 2.0.0 and 3.0.0
|
||||
dt.configuration.check_version(...,{2,0,0},{3,0,0},{4,0,0})
|
||||
dt.configuration.check_version(...,{2,0,0},{3,0,0},{4,0,0},{5,0,0})
|
||||
|
||||
-- Tell gettext where to find the .mo file translating messages for a particular domain
|
||||
gettext.bindtextdomain("hugin",dt.configuration.config_dir.."/lua/")
|
||||
@@ -115,7 +115,7 @@ local function create_panorama(storage, image_table, extra_data) --finalize
|
||||
|
||||
dt.print_error(huginStartCommand)
|
||||
|
||||
if dt.control.execute( huginStartCommand)
|
||||
if not dt.control.execute(huginStartCommand)
|
||||
then
|
||||
dt.print(_("Command hugin failed ..."))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user