diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-13 16:56:37 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-13 16:56:37 +0200 |
commit | 39cf857db9b926c47f545cba1d7113267260c40e (patch) | |
tree | 8aa3a7fbfa8079e7837650c8c3f0e9032ba87df4 /src/qt/bitcoin.cpp | |
parent | e83474f2ebbae84394f0b86cfea977d3024bd33f (diff) |
Internationalization -- initial step, make _ return a std::string to prevent memory leaks
Diffstat (limited to 'src/qt/bitcoin.cpp')
-rw-r--r-- | src/qt/bitcoin.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index e003267426..a71c348254 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -87,6 +87,14 @@ void MainFrameRepaint() { } +/* + Translate string to current locale using Qt. + */ +std::string _(const char* psz) +{ + return QCoreApplication::translate("bitcoin-core", psz).toStdString(); +} + int main(int argc, char *argv[]) { QApplication app(argc, argv); |