From 8e61be024ddc5a7a6bf03b0c1c71e2add97db965 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 13 Apr 2013 21:00:22 +0100 Subject: Some logging. --- src/tools/dvdomatic.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/tools') diff --git a/src/tools/dvdomatic.cc b/src/tools/dvdomatic.cc index 212d4848e..b09f4e554 100644 --- a/src/tools/dvdomatic.cc +++ b/src/tools/dvdomatic.cc @@ -458,14 +458,21 @@ setup_i18n () { int language = wxLANGUAGE_DEFAULT; + ofstream f ("c:/users/carl/foo", ios::app); + f << "Hello.\n"; + if (Config::instance()->language()) { + f << "Configured language " << Config::instance()->language().get() << "\n"; wxLanguageInfo const * li = wxLocale::FindLanguageInfo (std_to_wx (Config::instance()->language().get())); + f << "LanguageInfo " << li << "\n"; if (li) { language = li->Language; + f << "language=" << language << " cf " << wxLANGUAGE_DEFAULT << " " << wxLANGUAGE_ENGLISH << "\n"; } } if (wxLocale::IsAvailable (language)) { + f << "Language is available.\n"; locale = new wxLocale (language, wxLOCALE_LOAD_DEFAULT); #ifdef DVDOMATIC_WINDOWS @@ -476,6 +483,7 @@ setup_i18n () locale->AddCatalog (wxT ("dvdomatic")); if (!locale->IsOk()) { + f << "Locale is not ok.\n"; delete locale; locale = new wxLocale (wxLANGUAGE_ENGLISH); language = wxLANGUAGE_ENGLISH; -- cgit v1.2.3