"quick": remove "Lisp.tr()"; N.B. just use qsTr();

This commit is contained in:
polos 2017-02-04 12:52:23 +01:00
parent 0ff3dee53c
commit ef6bd0f2f7
3 changed files with 1 additions and 8 deletions

View file

@ -2524,7 +2524,7 @@ cl_object qtranslate(cl_object l_con, cl_object l_src, cl_object l_n) {
ecl_process_env()->nvalues = 1;
QByteArray context(toQString(l_con).toUtf8());
QByteArray source(toQString(l_src).toUtf8());
int n = (int)toFloat(l_n); // for QML (value comes from JS)
int n = toInt(l_n);
cl_object l_ret;
if(n == -1) {
l_ret = from_qstring(QCoreApplication::translate(context, source)); }