[Qt-interest] How translate constants

Andre Somers andre at familiesomers.nl
Mon Dec 14 11:25:00 CET 2009


Perepelica Alexander wrote:
> Hello!
> I try using Qt translate feature for my app. All is ok with widgets and 
> all other variables which initialization call in runtime after I load 
> translator. But how can I translate my constants which are initialized 
> before loading translator?
>   
Isn't the point of a constant that it is... eh... constant?
Perhaps you should not use constants for things that obviously need 
changing? A constant is nice to define values like 42 or pi, but for 
translatable strings, they seem useless to me.

André



More information about the Qt-interest-old mailing list