Commit 6460fc83 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(app/DefaultTranslator): display correctly qt messages

parent a3ae2b29
......@@ -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);
......
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