MCPcopy Create free account
hub / github.com/cmauri/eviacam / SetUpLanguage

Method SetUpLanguage

src/viacamcontroller.cpp:106–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void 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
126void CViacamController::SetLanguage (const int id)
127{

Callers

nothing calls this directly

Calls 2

ReadLanguageMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected