qt - Translating a Q_ENUM keys -
i use q_enum
macro in code, , use associated qmetaenum
populate qcombobox
.
is there "standard" way manage translation of q_enum
keys (retrieved qmetaenum::key()
method)?
i didn't find in qt's documentation, , main problem automatically add translations keys in *.ts files keys of q_enum
.
thanks
you have provide translation keys yourself, series of qt_tr_noop()
expansions, lupdate
pick them up.
if that's onerous, write small program generate suitable input file lupdate
meta-object.
Comments
Post a Comment