mirror of
https://gitlab.com/eql/EQL5.git
synced 2026-01-30 12:22:36 -08:00
"quick": remove "Lisp.tr()"; N.B. just use qsTr();
This commit is contained in:
parent
0ff3dee53c
commit
ef6bd0f2f7
3 changed files with 1 additions and 8 deletions
|
|
@ -36,9 +36,6 @@ Item {
|
|||
|
||||
// (5) pass 'this' as first argument (can be accessed in Lisp via qml:*caller*)
|
||||
Lisp.call(this, "eql-user:show-properties-dialog")
|
||||
|
||||
// (6) i........18........n
|
||||
console.log(Lisp.tr("internationalization"))
|
||||
}
|
||||
|
||||
Text {
|
||||
|
|
|
|||
|
|
@ -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)); }
|
||||
|
|
|
|||
|
|
@ -51,7 +51,3 @@ function apply(arg1, arg2, arg3) {
|
|||
name = arg1;
|
||||
args = arg2; }
|
||||
return checkEval(EQL5.apply(caller, name, args)); }
|
||||
|
||||
function tr(source, context, pluralN) {
|
||||
// for i18n
|
||||
return EQL5.apply(null, "qtranslate", [context, source, (undefined != pluralN) ? pluralN : -1]); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue