From 016003905ca0e8e459e3dc33e786beda8ec92f45 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Fri, 30 Jan 2015 17:00:07 -0500 Subject: Imported Upstream version 3.0.2 --- SQLiteStudio3/coreSQLiteStudio/translations.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 SQLiteStudio3/coreSQLiteStudio/translations.h (limited to 'SQLiteStudio3/coreSQLiteStudio/translations.h') diff --git a/SQLiteStudio3/coreSQLiteStudio/translations.h b/SQLiteStudio3/coreSQLiteStudio/translations.h new file mode 100644 index 0000000..c130064 --- /dev/null +++ b/SQLiteStudio3/coreSQLiteStudio/translations.h @@ -0,0 +1,25 @@ +#ifndef TRANSLATIONS_H +#define TRANSLATIONS_H + +#include +#include + +void loadTranslations(const QStringList& baseNames); +void loadTranslation(const QString& baseName); +void unloadTranslation(const QString& baseName); + +/** + * @brief Provides list of translations as code names. + * @return List of available translations in their code names (pl, pt, de, ...). + */ +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. + */ +QMap getAvailableLanguages(); + +#endif // TRANSLATIONS_H -- cgit v1.2.3