![]() |
NDEVR
API Documentation
|
Allows QT to call into the native application translator when needed to translate UI auto-generated items. More...
Public Member Functions | |
| bool | isEmpty () const override |
| Returns whether the translator is empty (has no translations). | |
| virtual QString | translate (const char *context, const char *sourceText, const char *disambiguation=nullptr, int n=-1) const override |
| Translates the given source text using the NDEVR translation system. | |
Static Public Member Functions | |
| static QCustomTranslator * | MainTranslator () |
| Returns the singleton main translator instance used by the application. | |
Allows QT to call into the native application translator when needed to translate UI auto-generated items.
Definition at line 43 of file QCustomTranslator.h.
|
inlineoverride |
Returns whether the translator is empty (has no translations).
Definition at line 73 of file QCustomTranslator.h.
|
inlinestatic |
Returns the singleton main translator instance used by the application.
Definition at line 50 of file QCustomTranslator.h.
|
inlineoverridevirtual |
Translates the given source text using the NDEVR translation system.
| [in] | context | The translation context (typically the class name). |
| [in] | sourceText | The source text to translate. |
| [in] | disambiguation | Optional disambiguation string (unused). |
| [in] | n | Optional plural form count (unused). |
Definition at line 63 of file QCustomTranslator.h.
References Translator::DefaultReadableLabel().