diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-03-01 17:10:48 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-03-01 17:10:48 +0000 |
| commit | cbc6c5863ec336f0843a87a71e9d7a25a5e59286 (patch) | |
| tree | 864a28dcf0333cfabe452f393ba6a03febd9f95d /src | |
| parent | 3940c9ceea90f99d18792bb9ea6074ca65d7fed9 (diff) | |
Hopefully fix up gettext in both libdvdomatic and the wx code.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/util.cc | 3 | ||||
| -rw-r--r-- | src/tools/dvdomatic.cc | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 892a7fd86..3d70a3122 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -235,7 +235,8 @@ seconds (struct timeval t) void dvdomatic_setup () { - bindtextdomain ("libdvdomatic", LOCALE_DIR); + bindtextdomain ("libdvdomatic", LOCALE_PREFIX); + setlocale (LC_ALL, ""); avfilter_register_all (); diff --git a/src/tools/dvdomatic.cc b/src/tools/dvdomatic.cc index 52e551d2a..024f5a53e 100644 --- a/src/tools/dvdomatic.cc +++ b/src/tools/dvdomatic.cc @@ -443,7 +443,7 @@ setup_i18n () locale = new wxLocale (language, wxLOCALE_LOAD_DEFAULT); #ifdef __WXGTK__ - locale->AddCatalogLookupPathPrefix (wxT (LOCALE_DIR)); + locale->AddCatalogLookupPathPrefix (wxT (LOCALE_PREFIX "/locale")); #endif locale->AddCatalog ("libdvdomatic-wx"); |
