Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
None
-
None
Description
Would it be possible to have a getter to return the filename that
(bool) QTranslator::load(const QLocale &locale, const QString &filename, const QString &prefix = QString(), const QString &directory = QString(), const QString &suffix = QString())
or more specifically
(bool) QTranslatorPrivate::do_load(const QString &realname, const QString &directory)
in qtbase.git/tree/src/corelib/kernel/qtranslator.cpp actually uses - I am I18ning a project that will not have a full set of translations available immediately and for debugging purposes (at least) I think it would be useful to be able to determine exactly which file (including an internal resource in some situations) the public QTranslator::load(...) methods use, especially when the version taking a
const QLocale &
as the first argument is used.
It looks as though it ought to be possible to catch and store the (QString) QFile::fileName() that was successfully loaded in that do_load method...
Attachments
Issue Links
- duplicates
-
QTBUG-36608 add api to make QTranslator file resolution visible to the outside
- Closed