summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-05-11 02:13:54 +0200
committerCarl Hetherington <cth@carlh.net>2025-05-11 13:12:21 +0200
commit8b377dff83c734b3754688a6c6d665e697201b10 (patch)
tree8b6f29f25dfd39f2b3012ba28d8fdaac4d8a2fd6
parent08c59d5232072f604e15216bd1abc29e7b7576be (diff)
Add mo_path() for Linux.
-rw-r--r--src/lib/util.cc9
-rw-r--r--src/lib/util.h2
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);