[Interest] tr() a string while ignoring context?

Thiago Macieira thiago.macieira at intel.com
Fri Nov 9 21:20:29 CET 2018


On Friday, 9 November 2018 09:47:18 PST Vadim Peretokin wrote:
> I tried QObject::tr but I'm still having difficulty. I'd like to translate
> dynamic input that's not known as compile-time.

You can only translate content known at compile time.

Any dynamism is basically matching the runtime string to one of the static 
strings and then applying the translation of that static strings.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center






More information about the Interest mailing list