+ // NB: this function returns reference to a string, so we have to keep
+ // a copy of it somewhere
+ return wxLocale::GetUntranslatedString(str);
+}
+inline const wxString& wxGetTranslation(const wxString& str1,
+ const wxString& str2,
+ size_t n,
+ const wxString& domain = wxEmptyString)
+{
+ wxLocale *pLoc = wxGetLocale();
+ if (pLoc)
+ return pLoc->GetString(str1, str2, n, domain);
+ else
+ // NB: this function returns reference to a string, so we have to keep
+ // a copy of it somewhere
+ return n == 1
+ ? wxLocale::GetUntranslatedString(str1)
+ : wxLocale::GetUntranslatedString(str2);