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.
extern std::string dependency_version_summary ();
extern double seconds (struct timeval);
extern void dvdomatic_setup ();
+extern void dvdomatic_setup_i18n (std::string);
extern std::vector<std::string> split_at_spaces_considering_quotes (std::string);
extern std::string md5_digest (std::string);
extern std::string md5_digest (void const *, int);
language = wxLANGUAGE_ENGLISH;
}
}
+
+ dvdomatic_setup_i18n (wx_to_std (locale->GetCanonicalName ()));
}
class App : public wxApp