Actually implement translation for qtscript, not just markup.
parent
32f53cb388
commit
5d3cce5d56
|
@ -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()));
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue