Commit 5052e588 authored by Pino Toscano's avatar Pino Toscano
Browse files

i18n: translate combobox elements from Sane

Followup of commit fc30bcf1.
parent 4df75e88
......@@ -169,7 +169,6 @@ QString KSaneOptCombo::getSaneComboString(float fval)
QString KSaneOptCombo::getSaneComboString(unsigned char *data)
{
QString tmp;
if (data == nullptr) {
return QString();
}
......@@ -180,9 +179,7 @@ QString KSaneOptCombo::getSaneComboString(unsigned char *data)
case SANE_TYPE_FIXED:
return getSaneComboString((float)SANE_UNFIX(toSANE_Word(data)));
case SANE_TYPE_STRING:
tmp = i18n(reinterpret_cast<char *>(data));
tmp = tmp.simplified();
return tmp;
return sane_i18n(reinterpret_cast<char *>(data));
default :
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment