our search is not fuzzy, so for some languages it makes a lot of sense
to search in the plurals, as they may use different grammatical forms.
Task-number: QTBUG-32218
Change-Id: I9ba2e370f9bcc564e707b2339ab0b1e73935c03d
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
if (searchItem(DataModel::Comments, m->extraComment()))
break;
}
- // Note: we do not look into plurals on grounds of them not
- // containing anything much different from the singular.
- if (searchItem(DataModel::Translations, m->translation()))
- break;
+ foreach (const QString &trans, m->translations())
+ if (searchItem(DataModel::Translations, trans))
+ goto didfind;
if (searchItem(DataModel::Comments, m->translatorComment()))
break;
found = false;
// did not find the search string in this message
} while (0);
if (found) {
+ didfind:
setCurrentMessage(realIndex, i);
// determine whether the search wrapped