How do you imagine to have localized text from custom data? If text from file is none deterministic then it is impossible (extremely hard) to provide proper translations! For example see google translate.
If you have well defined texts then IMHO you trying to do something strange what should be handled fully by Qt localization engine.
Write what you are trying to do not how you try to achieve this.