qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
Go to the documentation of this file.
33 static void translate(
const QString& localeName);
38 using Callback = QPair<
void*, std::function<void()>>;
static QTranslator * core_translator
static void translate(const QString &localeName)
Loads the translations according to the settings or locale.
static void unregister(void *owner)
Unregisters all handlers of an owner.
QPair< void *, std::function< void()> > Callback
static void registerHandler(const std::function< void()> &, void *owner)
Register a function to be called when the UI needs to be retranslated.
static QTranslator * app_translator
static QVector< Callback > callbacks