|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Any translations framework that implements this interface can work with the generated classes from UIC. All classes generated by the UICompiler framework will automatically have i18n (aka internationalisation) included. The default translator will be good enough for almost all users, but to allow other translations frameworks to be used with minimal effort, the UICompiler translator classes use this interface. Implement this interface on your preferred translator and you are free to return that in the extending class. All you need to do is reimplement the translate() method call.
Method Summary | |
String |
getButtonText(String in)
In Qt the '&' in front of a character represents a mnemonic; but should not be visible on buttons; this method returns the string sans the '&'. |
char |
getMnemonic(String in)
In Qt the '&' in front of a character represents a mnemonic; but should not be visible on buttons; this method returns the first character that follows the '& char. |
String |
i18n(String in)
To to internationalisation of a string, you call this method. |
Method Detail |
public String i18n(String in)
in
- the input string you want translated
public String getButtonText(String in)
public char getMnemonic(String in)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |