mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
fix(app/DefaultTranslator): display correctly qt messages
This commit is contained in:
parent
a3ae2b29db
commit
6460fc8303
1 changed files with 1 additions and 4 deletions
|
|
@ -27,12 +27,9 @@ QString DefaultTranslator::translate (
|
|||
const char *disambiguation,
|
||||
int n
|
||||
) const {
|
||||
if (!m_contexts.contains(context))
|
||||
return "";
|
||||
|
||||
QString translation = QTranslator::translate(context, source_text, disambiguation, n);
|
||||
|
||||
if (translation.length() == 0)
|
||||
if (translation.length() == 0 && m_contexts.contains(context))
|
||||
qWarning() << QStringLiteral("Unable to find a translation. (context=%1, label=%2)")
|
||||
.arg(context).arg(source_text);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue