git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Internationalization -- initial step, make _ return a std::string to prevent memory...
[novacoin.git]
/
src
/
qt
/
bitcoin.cpp
diff --git
a/src/qt/bitcoin.cpp
b/src/qt/bitcoin.cpp
index
e003267
..
a71c348
100644
(file)
--- 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);