all scripts - added bindtextdomain back in because 4.8 isn't ready to
handle the translations yet. In 5.0 this will be removed
and darktable will handle translating the strings.
This commit is contained in:
@@ -69,6 +69,8 @@ dt.print_error("Hello World!")
|
||||
|
||||
local gettext = dt.gettext.gettext
|
||||
|
||||
gettext.bindtextdomain("gettextExample", dt.configuration.config_dir .."/lua/locale/")
|
||||
|
||||
-- Translate a string using the darktable textdomain
|
||||
dt.print_error(gettext("image"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user