From 8b377dff83c734b3754688a6c6d665e697201b10 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 11 May 2025 02:13:54 +0200 Subject: Add mo_path() for Linux. --- src/lib/util.cc | 9 +++++++++ src/lib/util.h | 2 -- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/lib/util.cc b/src/lib/util.cc index 81ae4c494..7dd2db83e 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -529,6 +529,15 @@ mo_path() } #endif +#ifdef DCPOMATIC_LINUX +boost::filesystem::path +mo_path() +{ + return LINUX_LOCALE_PREFIX; +} +#endif + + void dcpomatic_setup_gettext_i18n(string lang) { diff --git a/src/lib/util.h b/src/lib/util.h index 525deeb75..a463bf9bf 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -74,9 +74,7 @@ extern std::string short_audio_channel_name(int); extern bool valid_image_file(boost::filesystem::path); extern bool valid_sound_file(boost::filesystem::path); extern bool valid_j2k_file(boost::filesystem::path); -#ifdef DCPOMATIC_WINDOWS extern boost::filesystem::path mo_path(); -#endif extern std::string tidy_for_filename(std::string); extern dcp::Size fit_ratio_within(float ratio, dcp::Size); extern void set_backtrace_file(boost::filesystem::path); -- cgit v1.2.3