Doc: Fix description of QTranslator::translate()
If the translations are incomplete it's actually not ensured that a translation without disambiguation is used: lrelease will drop the disambiguation from one of the identical messages if there is no message which actually has no disambiguation ... Task-number: QTBUG-30471 Change-Id: I1787f5c401a7afb964acbf8a8609ba328c8140a9 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
parent
a133cea211
commit
15377a6927
@ -1086,6 +1086,11 @@ void QTranslatorPrivate::clear()
|
||||
\a disambiguation). If none is found, also tries (\a context, \a
|
||||
sourceText, ""). If that still fails, returns a null string.
|
||||
|
||||
\note Incomplete translations may result in unexpected behavior:
|
||||
If no translation for (\a context, \a sourceText, "")
|
||||
is provided, the method might in this case actually return a
|
||||
translation for a different \a disambiguation.
|
||||
|
||||
If \a n is not -1, it is used to choose an appropriate form for
|
||||
the translation (e.g. "%n file found" vs. "%n files found").
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user