diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-05-12 19:59:48 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-05-21 23:50:03 +0200 |
| commit | ecc01574a2b51561bd88a94f535052df119c4c33 (patch) | |
| tree | c223f9c523cff215b0009c4af2a0af778e5a474e /src/lib | |
| parent | 6cab56ab466e821d336998cdb6769c864214e1aa (diff) | |
Cleanup: give Linux a version of mo_path().
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/util.cc | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 97928dc15..9f70773ad 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -534,6 +534,16 @@ mo_path() } #endif + +#ifdef DCPOMATIC_LINUX +boost::filesystem::path +mo_path() +{ + return LINUX_LOCALE_PREFIX; +} +#endif + + void dcpomatic_setup_gettext_i18n(string lang) { @@ -556,14 +566,8 @@ dcpomatic_setup_gettext_i18n(string lang) setlocale(LC_ALL, ""); textdomain("libdcpomatic2"); -#if defined(DCPOMATIC_WINDOWS) || defined(DCPOMATIC_OSX) bindtextdomain("libdcpomatic2", mo_path().string().c_str()); bind_textdomain_codeset("libdcpomatic2", "UTF8"); -#endif - -#ifdef DCPOMATIC_LINUX - bindtextdomain("libdcpomatic2", LINUX_LOCALE_PREFIX); -#endif } /** Compute a digest of the first and last `size' bytes of a set of files. */ |
