diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-03-07 23:48:31 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-03-07 23:48:31 +0000 |
| commit | 5f3d6026a68118666988b997c7ced189b93fabb4 (patch) | |
| tree | 70563ecaafe56a4af87190cfd299350d488324d7 /src/tools | |
| parent | fda4b7ffbc70e63061c741a90dfdc81602764610 (diff) | |
Non-exposed but working language config option.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dvdomatic.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/dvdomatic.cc b/src/tools/dvdomatic.cc index 741498c47..d08975061 100644 --- a/src/tools/dvdomatic.cc +++ b/src/tools/dvdomatic.cc @@ -444,6 +444,11 @@ void setup_i18n () { int language = wxLANGUAGE_DEFAULT; + + if (Config::instance()->language()) { + wxLanguageInfo const * li = wxLocale::FindLanguageInfo (std_to_wx (Config::instance()->language().get())); + language = li->Language; + } if (wxLocale::IsAvailable (language)) { locale = new wxLocale (language, wxLOCALE_LOAD_DEFAULT); |
