aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-02-17 17:22:01 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-02-17 17:22:01 +0000
commitbcd27140384ec3703f3fd18ec89b0046a0ef17d3 (patch)
treef474d2b08e0b538df5fa5e431b8a2bfdc6f79d09 /util.h
parentf3cd4206b8f65048c332ccf2274fb976cfebf08c (diff)
downloadbitcoin-bcd27140384ec3703f3fd18ec89b0046a0ef17d3.tar.xz
all builds are now with wxWidgets-2.9.0, we are now using UTF-8,
added support for language translation file locale/<lang>/LC_MESSAGES/bitcoin.mo -- version 0.2.2
Diffstat (limited to 'util.h')
-rw-r--r--util.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/util.h b/util.h
index 933c71be0b..188a9ece14 100644
--- a/util.h
+++ b/util.h
@@ -340,10 +340,11 @@ void skipspaces(T& it)
++it;
}
-
-
-
-
+inline const char* wxGetTranslation(const char* psz)
+{
+ // Return translated UTF-8 const char*
+ return wxGetTranslation(wxString(psz, wxConvUTF8)).utf8_str();
+}