Actually implement translation for qtscript, not just markup.

master
Per Inge Mathisen 2011-05-17 08:53:55 +02:00
parent 32f53cb388
commit 5d3cce5d56
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ static QScriptValue js_allianceExistsBetween(QScriptContext *context, QScriptEng
static QScriptValue js_translate(QScriptContext *context, QScriptEngine *engine)
{
return QScriptValue(context->argument(0));
return QScriptValue(gettext(context->argument(0).toString().toUtf8().constData()));
}
// ----------------------------------------------------------------------------------------