Problem in localizing wxWidgets application for wxLANGUAGE_NORWEGIAN_NYNORSK locale

Amit amitgupta.it at gmail.com
Sun Nov 5 23:00:14 PST 2006


Hi,

I am trying to localize wxWidgets Application for
wxLANGUAGE_NORWEGIAN_NYNORSK locale but with no success.
It works fine when localzing for Swedish (wxLANGUAGE_SWEDISH) and
danish (wxLANGUAGE_DANISH) locales & picks up the right values. For
norwegian locale the default values are being displayed.

I am using the following piece of code for the above mentioned
objective.

	if(wxT("ENG") == UserConfigFile()->GetLocale())
		m_Locale.Init(wxLANGUAGE_ENGLISH);
	else if(wxT("SWE") == UserConfigFile()->GetLocale())
	    m_Locale.Init(wxLANGUAGE_SWEDISH);
	else if(wxT("DUTCH") == UserConfigFile()->GetLocale())
		m_Locale.Init(wxLANGUAGE_DANISH);
	else if(wxT("NORW") == UserConfigFile()->GetLocale())
		m_Locale.Init(wxLANGUAGE_NORWEGIAN_NYNORSK);

	wxLocale::AddCatalogLookupPathPrefix(wxT("."));
	wxLocale::AddCatalogLookupPathPrefix(wxT(".."));

	if(wxT("SWE") == UserConfigFile()->GetLocale())
		m_Locale.AddCatalog(wxT("Swe_Localized"));
	else if(wxT("DUTCH") == UserConfigFile()->GetLocale())
		m_Locale.AddCatalog(wxT("Da_Localized"));
	else if(wxT("NORW") == UserConfigFile()->GetLocale())
		m_Locale.AddCatalog(wxT("Nor_Localized"));

It would be nice if someone can address this issue and let me know if I
am doing something wrong or it is a wxWidgets issue.

wxWidgets Version : 2.6.3
OS : Win XP

Regards,
- Amit







More information about the wx-users mailing list