mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
Initialize the stereo mode translations after the locales have been initialized
This commit is contained in:
parent
7933141817
commit
5998f2cde9
@ -35,6 +35,12 @@ stereo_mode_c::init() {
|
||||
s_modes.push_back("column_interleaved_left_first");
|
||||
s_modes.push_back("anaglyph");
|
||||
s_modes.push_back("side_by_side_right_first");
|
||||
}
|
||||
|
||||
void
|
||||
stereo_mode_c::init_translations() {
|
||||
if (!s_translations.empty())
|
||||
return;
|
||||
|
||||
s_translations.push_back(Y("mono"));
|
||||
s_translations.push_back(Y("side by side (left first)"));
|
||||
@ -52,6 +58,7 @@ stereo_mode_c::init() {
|
||||
|
||||
const std::string
|
||||
stereo_mode_c::translate(unsigned int mode) {
|
||||
init_translations();
|
||||
return mode < s_translations.size() ? s_translations[mode] : Y("unknown");
|
||||
}
|
||||
|
||||
|
@ -40,6 +40,7 @@ public:
|
||||
};
|
||||
|
||||
static void init();
|
||||
static void init_translations();
|
||||
static const std::string translate(unsigned int mode);
|
||||
static const std::string displayable_modes_list();
|
||||
static mode parse_mode(const std::string &str);
|
||||
|
Loading…
Reference in New Issue
Block a user