File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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-
You can’t perform that action at this time.
0 commit comments