diff options
Diffstat (limited to 'src/wx/wx_util.cc')
| -rw-r--r-- | src/wx/wx_util.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index e4229c1b7..e261a527e 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -468,11 +468,20 @@ dcpomatic_setup_i18n() } } + auto add_source_tree_prefixes = []() { + wxFileTranslationsLoader::AddCatalogLookupPathPrefix(char_to_wx("build/src/wx/mo")); + wxFileTranslationsLoader::AddCatalogLookupPathPrefix(char_to_wx("build/src/tools/mo")); + }; + + #ifdef DCPOMATIC_DEBUG - wxFileTranslationsLoader::AddCatalogLookupPathPrefix(char_to_wx("build/src/wx/mo")); - wxFileTranslationsLoader::AddCatalogLookupPathPrefix(char_to_wx("build/src/tools/mo")); + add_source_tree_prefixes(); #endif + if (running_tests) { + add_source_tree_prefixes(); + } + translations->AddStdCatalog(); translations->AddCatalog(char_to_wx("libdcpomatic2-wx")); translations->AddCatalog(char_to_wx("dcpomatic2")); |
