#include <ecvTranslationManager.h>
Definition at line 16 of file ecvTranslationManager.h.
◆ ~ccTranslationManager()
| ccTranslationManager::~ccTranslationManager |
( |
| ) |
|
|
overridedefault |
◆ ccTranslationManager()
| ccTranslationManager::ccTranslationManager |
( |
| ) |
|
|
explicitprotecteddefault |
◆ get()
◆ loadTranslation()
| void ccTranslationManager::loadTranslation |
( |
QString |
language | ) |
|
Using the translation file prefixes that were registered, load the actual translation by the 2-letter ISO 639 language code in lowercase.
Referenced by main().
◆ loadTranslations()
| void ccTranslationManager::loadTranslations |
( |
| ) |
|
Using the translation file prefixes that were registered, load the actual translations
◆ populateMenu()
| void ccTranslationManager::populateMenu |
( |
QMenu * |
menu, |
|
|
const QString & |
pathToTranslationFiles |
|
) |
| |
Populate the menu with a list of languages found using files in 'pathToTranslationFiles'
Referenced by MainWindow::MainWindow().
◆ registerTranslatorFile()
| void ccTranslationManager::registerTranslatorFile |
( |
const QString & |
prefix, |
|
|
const QString & |
path |
|
) |
| |
Register a file prefix for translation files. The files should be named <prefix>_<lang>.ts where <lang> is the 2-letter ISO 639 language code in lowercase. e.g. ACloudViewer_fr.ts
- Parameters
-
| prefix | The prefix of the file to register |
| path | The path to look for the files in |
The documentation for this class was generated from the following file: