| 104 | } |
| 105 | |
| 106 | void CViacamController::SetUpLanguage () |
| 107 | { |
| 108 | assert (m_locale); |
| 109 | |
| 110 | m_languageId= m_configManager->ReadLanguage (); |
| 111 | |
| 112 | m_locale->AddCatalogLookupPathPrefix(wxT(".")); |
| 113 | |
| 114 | #if defined(__WXGTK__) |
| 115 | wxString prefix= wxStandardPaths::Get().GetInstallPrefix(); |
| 116 | prefix+= wxT("/share/locale/"); |
| 117 | m_locale->AddCatalogLookupPathPrefix(prefix); |
| 118 | #endif |
| 119 | |
| 120 | if (!m_locale->Init(m_languageId)) |
| 121 | slog_write (SLOG_PRIO_WARNING, "Cannot load locale. Switching to default locale.\n"); |
| 122 | m_locale->AddCatalog(wxT("wxstd")); |
| 123 | m_locale->AddCatalog(wxT("eviacam")); |
| 124 | } |
| 125 | |
| 126 | void CViacamController::SetLanguage (const int id) |
| 127 | { |
nothing calls this directly
no test coverage detected