mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-25 19:31:57 -08:00
small revisions
This commit is contained in:
parent
1a41ed320b
commit
307b0cb8d2
6 changed files with 8 additions and 8 deletions
|
|
@ -2526,10 +2526,10 @@ cl_object qtranslate(cl_object l_con, cl_object l_src, cl_object l_n) {
|
|||
QByteArray source(toQString(l_src).toUtf8());
|
||||
int n = toInt(l_n);
|
||||
cl_object l_ret;
|
||||
if(n == -1) {
|
||||
l_ret = from_qstring(QCoreApplication::translate(context, source)); }
|
||||
else {
|
||||
if(n > 0) {
|
||||
l_ret = from_qstring(QCoreApplication::translate(context, source, 0, n)); }
|
||||
else {
|
||||
l_ret = from_qstring(QCoreApplication::translate(context, source)); }
|
||||
return l_ret; }
|
||||
|
||||
cl_object qlocal8bit(cl_object l_str) {
|
||||
|
|
|
|||
|
|
@ -54,4 +54,4 @@ function apply(arg1, arg2, arg3) {
|
|||
|
||||
function tr(source, context, pluralNumber) {
|
||||
// for i18n
|
||||
return EQL5.apply(null, "eql:qtranslate", [context, source, (typeof(pluralNumber) == "number") ? pluralNumber : 0]); }
|
||||
return EQL5.apply(null, "eql:qtranslate", [context, source, pluralNumber]); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue