![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <ecvTranslationManager.h>


Public Member Functions | |
| ~ccTranslationManager () override=default | |
| void | registerTranslatorFile (const QString &prefix, const QString &path) |
| void | loadTranslations () |
| void | loadTranslation (QString language) |
| void | populateMenu (QMenu *menu, const QString &pathToTranslationFiles) |
Static Public Member Functions | |
| static ccTranslationManager & | get () |
Protected Member Functions | |
| ccTranslationManager ()=default | |
Definition at line 16 of file ecvTranslationManager.h.
|
overridedefault |
|
explicitprotecteddefault |
References cloudViewer::t::geometry::path.
|
static |
Definition at line 25 of file ecvTranslationManager.cpp.
Referenced by ecvApplicationBase::ecvApplicationBase(), main(), and MainWindow::MainWindow().
| 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.
Definition at line 53 of file ecvTranslationManager.cpp.
References ecvApp.
Referenced by main().
| void ccTranslationManager::loadTranslations | ( | ) |
Using the translation file prefixes that were registered, load the actual translations
Definition at line 34 of file ecvTranslationManager.cpp.
References ecvApp.
Referenced by ecvApplicationBase::ecvApplicationBase().
| void ccTranslationManager::populateMenu | ( | QMenu * | menu, |
| const QString & | pathToTranslationFiles | ||
| ) |
Populate the menu with a list of languages found using files in 'pathToTranslationFiles'
Definition at line 72 of file ecvTranslationManager.cpp.
Referenced by MainWindow::MainWindow().
| 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
| prefix | The prefix of the file to register |
| path | The path to look for the files in |
Definition at line 29 of file ecvTranslationManager.cpp.
References cloudViewer::t::geometry::path.
Referenced by ecvApplicationBase::ecvApplicationBase().