Skip to content

Commit

Permalink
lua/configuration: Add locale_dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
wpferguson authored and TurboGit committed Jan 17, 2024
1 parent 5d812af commit b6368e3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/lua/configuration.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This file is part of darktable,
Copyright (C) 2013-2020 darktable developers.
Copyright (C) 2013-2024 darktable developers.
darktable is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -14,7 +14,8 @@
You should have received a copy of the GNU General Public License
along with darktable. If not, see <http://www.gnu.org/licenses/>.
*/
*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
Expand Down Expand Up @@ -112,6 +113,11 @@ int dt_lua_init_configuration(lua_State *L)
lua_pushstring(L, tmp_path);
lua_settable(L, -3);

lua_pushstring(L, "locale_dir");
dt_loc_get_localedir(tmp_path, sizeof(tmp_path));
lua_pushstring(L, tmp_path);
lua_settable(L, -3);

lua_pushstring(L, "version");
lua_pushstring(L, darktable_package_version);
lua_settable(L, -3);
Expand Down Expand Up @@ -176,4 +182,3 @@ int dt_lua_init_configuration(lua_State *L)
// vim: shiftwidth=2 expandtab tabstop=2 cindent
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
// clang-format on

0 comments on commit b6368e3

Please sign in to comment.