Skip to content

Commit b6368e3

Browse files
wpfergusonTurboGit
authored andcommitted
lua/configuration: Add locale_dir.
1 parent 5d812af commit b6368e3

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/lua/configuration.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of darktable,
3-
Copyright (C) 2013-2020 darktable developers.
3+
Copyright (C) 2013-2024 darktable developers.
44
55
darktable is free software: you can redistribute it and/or modify
66
it under the terms of the GNU General Public License as published by
@@ -14,7 +14,8 @@
1414
1515
You should have received a copy of the GNU General Public License
1616
along with darktable. If not, see <http://www.gnu.org/licenses/>.
17-
*/
17+
*/
18+
1819
#ifdef HAVE_CONFIG_H
1920
#include "config.h"
2021
#endif
@@ -112,6 +113,11 @@ int dt_lua_init_configuration(lua_State *L)
112113
lua_pushstring(L, tmp_path);
113114
lua_settable(L, -3);
114115

116+
lua_pushstring(L, "locale_dir");
117+
dt_loc_get_localedir(tmp_path, sizeof(tmp_path));
118+
lua_pushstring(L, tmp_path);
119+
lua_settable(L, -3);
120+
115121
lua_pushstring(L, "version");
116122
lua_pushstring(L, darktable_package_version);
117123
lua_settable(L, -3);
@@ -176,4 +182,3 @@ int dt_lua_init_configuration(lua_State *L)
176182
// vim: shiftwidth=2 expandtab tabstop=2 cindent
177183
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
178184
// clang-format on
179-

0 commit comments

Comments
 (0)