aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/translations.h
blob: 4ae62319a484bfd2fb25418a9c5404f8fbe6a7b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef TRANSLATIONS_H
#define TRANSLATIONS_H

#include "coreSQLiteStudio_global.h"
#include <QString>
#include <QMap>

API_EXPORT void loadTranslations(const QStringList& baseNames);
API_EXPORT void loadTranslation(const QString& baseName);
API_EXPORT void unloadTranslation(const QString& baseName);
API_EXPORT void setDefaultLanguage(const QString& lang);
API_EXPORT QString getConfigLanguageDefault();

/**
 * @brief Provides list of translations as code names.
 * @return List of available translations in their code names (pl, pt, de, ...).
 */
API_EXPORT QStringList getAvailableTranslations();

/**
 * @brief Provides list of languages and their code names.
 * @return A map of pairs, there key is a translated (with a current language) name of language and value is its translation code name (pl, pt, de, ...).
 *
 * As the result is a QMap, it comes sorted by a translated names of languages.
 */
API_EXPORT QMap<QString, QString> getAvailableLanguages();

#endif // TRANSLATIONS_H