summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-05-12 00:44:05 +0200
committerCarl Hetherington <cth@carlh.net>2025-05-12 00:44:05 +0200
commit76dd507f45f52cf3b969df5fb393dfbb7db1cedc (patch)
treeac9511ab023c61d4a42e7c1049861e6780bac064 /src/lib/util.cc
parent351297f2b408bbf4e3198bede69a3725e8468334 (diff)
haxi18n
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index aca0fa651..1f9f881ef 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -545,29 +545,29 @@ mo_path()
* is configured for the OS.
*/
void
-dcpomatic_setup_c_and_gettext_i18n(string lang)
+dcpomatic_setup_c_and_gettext_i18n()
{
-#ifdef DCPOMATIC_LINUX
- lang += ".UTF8";
-#endif
-
- if (!lang.empty()) {
- /* Override the environment that we want gettext to use. Note that
- * the caller must not free the string passed into putenv().
- */
- string s = String::compose("LANGUAGE=%1", lang);
- putenv(strdup(s.c_str()));
-#if defined(DCPOMATIC_WINDOWS) || defined(DCPOMATIC_LINUX)
- /* On Linux and Windows this must not be "C" otherwise gettext doesn't work.
- * https://www.gnu.org/software/gettext/manual/html_node/The-LANGUAGE-variable.html
- *
- * On macOS doing this sets the number format to the forced language, which
- * means it disagrees with wxWidgets.
- */
- s = String::compose("LANG=%1", lang);
- putenv(strdup(s.c_str()));
-#endif
- }
+// #ifdef DCPOMATIC_LINUX
+// lang += ".UTF8";
+// #endif
+
+// if (!lang.empty()) {
+// /* Override the environment that we want gettext to use. Note that
+// * the caller must not free the string passed into putenv().
+// */
+// string s = String::compose("LANGUAGE=%1", lang);
+// putenv(strdup(s.c_str()));
+// #if defined(DCPOMATIC_WINDOWS) || defined(DCPOMATIC_LINUX)
+// /* On Linux and Windows this must not be "C" otherwise gettext doesn't work.
+// * https://www.gnu.org/software/gettext/manual/html_node/The-LANGUAGE-variable.html
+// *
+// * On macOS doing this sets the number format to the forced language, which
+// * means it disagrees with wxWidgets.
+// */
+// s = String::compose("LANG=%1", lang);
+// putenv(strdup(s.c_str()));
+// #endif
+ // }
setlocale(LC_ALL, "");