Internationalization -- initial step, make _ return a std::string to prevent memory leaks

This commit is contained in:
Wladimir J. van der Laan
2011-06-13 16:56:37 +02:00
parent e83474f2eb
commit 39cf857db9
6 changed files with 20 additions and 12 deletions

View File

@@ -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);