Qt Utilities 6.14.3
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
|
Convenience functions to load translations for Qt and the application. More...
Functions | |
QT_UTILITIES_EXPORT QString & | additionalTranslationFilePath () |
Allows to set an additional search path for translation files. | |
QT_UTILITIES_EXPORT void | loadQtTranslationFile (std::initializer_list< QString > repositoryNames) |
Loads and installs the appropriate Qt translation file for the current locale. | |
QT_UTILITIES_EXPORT void | loadQtTranslationFile (std::initializer_list< QString > repositoryNames, const QString &localeName) |
QT_UTILITIES_EXPORT void | loadApplicationTranslationFile (const QString &configName, const QString &applicationName) |
Loads and installs the appropriate application translation file for the current locale. | |
QT_UTILITIES_EXPORT void | loadApplicationTranslationFile (const QString &configName, const QString &applicationName, const QString &localeName) |
Loads and installs the appropriate application translation file for the specified locale. | |
QT_UTILITIES_EXPORT void | loadApplicationTranslationFile (const QString &configName, const std::initializer_list< QString > &applicationNames) |
Loads and installs the appropriate application translation file for the current locale. | |
QT_UTILITIES_EXPORT void | loadApplicationTranslationFile (const QString &configName, const std::initializer_list< QString > &applicationNames, const QString &localeName) |
Loads and installs the appropriate application translation file for the specified locale. | |
QT_UTILITIES_EXPORT void | clearTranslationFiles () |
Clears all translation files previously loaded via the load-functions in this namespace. | |
void | loadQtTranslationFile (initializer_list< QString > repositoryNames, const QString &localeName) |
Loads and installs the appropriate Qt translation file for the specified locale. | |
Convenience functions to load translations for Qt and the application.
QString & QtUtilities::TranslationFiles::additionalTranslationFilePath | ( | ) |
Allows to set an additional search path for translation files.
Definition at line 80 of file resources.cpp.
void QtUtilities::TranslationFiles::clearTranslationFiles | ( | ) |
Clears all translation files previously loaded via the load-functions in this namespace.
Definition at line 280 of file resources.cpp.
void QtUtilities::TranslationFiles::loadApplicationTranslationFile | ( | const QString & | configName, |
const QString & | applicationName ) |
Loads and installs the appropriate application translation file for the current locale.
applicationName | Specifies the name of the application. |
Definition at line 176 of file resources.cpp.
void QtUtilities::TranslationFiles::loadApplicationTranslationFile | ( | const QString & | configName, |
const QString & | applicationName, | ||
const QString & | localeName ) |
Loads and installs the appropriate application translation file for the specified locale.
applicationName | Specifies the name of the application. |
localeName | Specifies the name of the locale. |
Definition at line 223 of file resources.cpp.
void QtUtilities::TranslationFiles::loadApplicationTranslationFile | ( | const QString & | configName, |
const std::initializer_list< QString > & | applicationNames ) |
Loads and installs the appropriate application translation file for the current locale.
applicationNames | Specifies the names of the applications. |
Definition at line 257 of file resources.cpp.
void QtUtilities::TranslationFiles::loadApplicationTranslationFile | ( | const QString & | configName, |
const std::initializer_list< QString > & | applicationNames, | ||
const QString & | localeName ) |
Loads and installs the appropriate application translation file for the specified locale.
applicationNames | Specifies the names of the applications. |
localeName | Specifies the name of the locale. |
Definition at line 270 of file resources.cpp.
void QtUtilities::TranslationFiles::loadQtTranslationFile | ( | initializer_list< QString > | repositoryNames, |
const QString & | localeName ) |
Loads and installs the appropriate Qt translation file for the specified locale.
repositoryNames | Specifies the names of the Qt repositories to load translations for (eg. qtbase, qtscript, ...). |
localeName | Specifies the name of the locale. |
Definition at line 120 of file resources.cpp.
void QtUtilities::TranslationFiles::loadQtTranslationFile | ( | std::initializer_list< QString > | repositoryNames | ) |
Loads and installs the appropriate Qt translation file for the current locale.
repositoryNames | Specifies the names of the Qt repositories to load translations for (eg. qtbase, qtscript, ...). |
Definition at line 100 of file resources.cpp.
QT_UTILITIES_EXPORT void QtUtilities::TranslationFiles::loadQtTranslationFile | ( | std::initializer_list< QString > | repositoryNames, |
const QString & | localeName ) |