From 7ea72d80eb1ddefc8b43afa682f0bf20e9b67b7d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 20 Mar 2013 15:01:03 +0000 Subject: Try to set gettext up correctly. --- src/lib/util.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/lib/util.cc') 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. -- cgit v1.2.3