diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-03-20 15:01:03 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-03-20 15:01:03 +0000 |
| commit | 7ea72d80eb1ddefc8b43afa682f0bf20e9b67b7d (patch) | |
| tree | 0a1de6e36b93142d644e3dfb9963e11c5ecaf54b /src/lib/util.cc | |
| parent | 8019a8c5a615d557bf54972f34a9faddebcbb93b (diff) | |
Try to set gettext up correctly.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 53bdb4c79..e043f8576 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -249,6 +249,13 @@ dvdomatic_setup () ui_thread = this_thread::get_id (); } +void +dvdomatic_setup_i18n (string lang) +{ + bindtextdomain ("libdvdomatic", LOCALE_PREFIX); + setlocale (LC_ALL, lang.c_str ()); +} + /** @param start Start position for the crop within the image. * @param size Size of the cropped area. * @return FFmpeg crop filter string. |
