Another attempt to fix wxWidgets i18n on Debian/Ubuntu.
[dcpomatic.git] / src / wx / wx_util.cc
index 1e501f54fd5650a892b0ab5a2d189ba950482eac..7f15217f14a65490345aacf3a4b81551de8f892c 100644 (file)
@@ -280,6 +280,14 @@ dcpomatic_setup_i18n ()
                locale->AddCatalogLookupPathPrefix (POSIX_LOCALE_PREFIX);
 #endif
 
+#ifdef DCPOMATIC_LINUX
+               /* We have to include the wxWidgets .mo in our distribution,
+                  so we rename it to avoid clashes with any other installation
+                  of wxWidgets.
+               */
+               locale->AddCatalog (wxT ("dcpomatic-wxstd"));
+#endif         
+               
                locale->AddCatalog (wxT ("libdcpomatic-wx"));
                locale->AddCatalog (wxT ("dcpomatic"));