manages locale setting/finding with user interface More...
#include <wxTranslationHelper.h>
Public Member Functions | |
| wxTranslationHelper (wxApp &app, const wxString &search_path) | |
| ~wxTranslationHelper () | |
| wxLocale * | GetLocale () |
| void | GetInstalledLanguages (wxArrayString &names, wxArrayLong &identifiers, int ¤t_selected) |
| put names and ID for all found .mo files | |
| bool | AskUserForLanguage (wxArrayString &names, wxArrayLong &identifiers, int selected_index) |
| bool | Load () |
| void | Save () |
| const wxString & | GetSearchPath () const |
| void | SetSearchPath (const wxString &value) |
Private Member Functions | |
| wxTranslationHelper (const wxTranslationHelper &) | |
Private Attributes | |
| wxApp & | m_App |
| wxString | m_SearchPath |
| wxLocale * | m_Locale |
| bool | m_UseNativeConfig |
manages locale setting/finding with user interface
Definition at line 15 of file wxTranslationHelper.h.
| wxTranslationHelper::wxTranslationHelper | ( | wxApp & | app, | |
| const wxString & | search_path | |||
| ) |
Definition at line 14 of file wxTranslationHelper.cpp.
| wxTranslationHelper::~wxTranslationHelper | ( | ) |
Definition at line 24 of file wxTranslationHelper.cpp.
| wxTranslationHelper::wxTranslationHelper | ( | const wxTranslationHelper & | ) | [private] |
| bool wxTranslationHelper::AskUserForLanguage | ( | wxArrayString & | names, | |
| wxArrayLong & | identifiers, | |||
| int | selected_index | |||
| ) |
Definition at line 140 of file wxTranslationHelper.cpp.
| void wxTranslationHelper::GetInstalledLanguages | ( | wxArrayString & | names, | |
| wxArrayLong & | identifiers, | |||
| int & | current_selected | |||
| ) |
put names and ID for all found .mo files
| current_selected | will contain the index of currently in settings selected languageID in name/identifiers array, or -1 if notfound |
Definition at line 86 of file wxTranslationHelper.cpp.
| wxLocale * wxTranslationHelper::GetLocale | ( | ) |
Definition at line 33 of file wxTranslationHelper.cpp.
| const wxString & wxTranslationHelper::GetSearchPath | ( | ) | const |
Definition at line 38 of file wxTranslationHelper.cpp.
| bool wxTranslationHelper::Load | ( | ) |
Definition at line 52 of file wxTranslationHelper.cpp.
| void wxTranslationHelper::Save | ( | ) |
Definition at line 80 of file wxTranslationHelper.cpp.
| void wxTranslationHelper::SetSearchPath | ( | const wxString & | value | ) |
Definition at line 43 of file wxTranslationHelper.cpp.
wxApp& wxTranslationHelper::m_App [private] |
Definition at line 36 of file wxTranslationHelper.h.
wxLocale* wxTranslationHelper::m_Locale [private] |
Definition at line 38 of file wxTranslationHelper.h.
wxString wxTranslationHelper::m_SearchPath [private] |
Definition at line 37 of file wxTranslationHelper.h.
bool wxTranslationHelper::m_UseNativeConfig [private] |
Definition at line 39 of file wxTranslationHelper.h.
1.6.3