Localization in progress ...

This commit is contained in:
2010-07-06 20:59:02 +02:00
parent 4544a5c3ad
commit f6c64d5448
7 changed files with 63 additions and 6 deletions

View File

@@ -85,3 +85,16 @@ int User::GetOperationsNumber(int month, int year)
{
return (*_operations[year])[month].size();
}
wxLanguage User::GetLanguage()
{
wxString res = _preferences[wxT("language")];
long val;
if (res == wxT(""))
return wxLANGUAGE_ENGLISH_UK ;
res.ToLong(&val);
return (wxLanguage)val;
}

View File

@@ -31,6 +31,7 @@ class User
int GetCategoriesNumber();
int GetAccountsNumber();
int GetOperationsNumber(int month, int year);
wxLanguage GetLanguage();
};
#endif