33#include <NDEVR/QTTools.h>
34#include <NDEVR/Translator.h>
35#include <NDEVR/TranslatedString.h>
63 virtual QString
translate(
const char* context,
const char* sourceText,
const char* disambiguation =
nullptr,
int n = -1)
const override
65 UNUSED(disambiguation);
Allows QT to call into the native application translator when needed to translate UI auto-generated i...
static QCustomTranslator * MainTranslator()
Returns the singleton main translator instance used by the application.
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 String DefaultReadableLabel(const StringView &text_string)
Generates a default human-readable label from a text string.
The primary namespace for the NDEVR SDK.