Localization in progress ...
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ class User
|
||||
int GetCategoriesNumber();
|
||||
int GetAccountsNumber();
|
||||
int GetOperationsNumber(int month, int year);
|
||||
wxLanguage GetLanguage();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user