![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <QList>#include <QLoggingCategory>#include <QString>Go to the source code of this file.
Namespaces | |
| namespace | TranslationLoader |
Enumerations | |
| enum class | TranslationLoadResult { Loaded , Missing , NoDirectory } |
| The outcome of a translation load attempt. More... | |
Functions | |
| QList< QString > | TranslationLoader::qtTranslationCandidates () |
| Every directory that may hold Qt's own translations, in order of preference. | |
| QList< QString > | TranslationLoader::qtTranslationPaths () |
| The candidates that actually exist, most likely first, so no caller searches a path that is not there. | |
| QList< QString > | TranslationLoader::applicationTranslationPaths (const QString &_installedPath) |
| The directories to search for an application's own translation files, in order of preference. | |
| TranslationLoadResult | TranslationLoader::loadFrom (QTranslator &_translator, const QString &_nameHint, const QList< QString > &_directories) |
| Loads the first _nameHint + language translation file found in _directories into _translator. | |
| TranslationLoadResult | TranslationLoader::loadQt (QTranslator &_translator, const QString &_lang) |
| Loads Qt's own translation for _lang, which covers the strings of Qt's own dialogs. | |
| QList< QString > | TranslationLoader::availableLanguages (const QString &_prefix, const QList< QString > &_directories) |
| The language codes of the <prefix><lang>.qm files in _directories, sorted by code. | |
| TranslationLoadResult | TranslationLoader::loadApplication (QTranslator &_translator, const QString &_prefix, const QString &_lang, const QList< QString > &_directories) |
| Loads the <prefix><_lang>.qm translation file from _directories into _translator. | |
|
strong |