aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/translations.h
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2015-01-30 17:00:24 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2015-01-30 17:00:24 -0500
commite4767514ed04e6a0bddf3f4a47f5f0b09e65e0ee (patch)
tree86cadc2137831d44fa29fd40a2964f7fb1326de4 /SQLiteStudio3/coreSQLiteStudio/translations.h
parent26ddfe11c2b7fac52e5f57dcd9f5223a50b2a9a7 (diff)
parent016003905ca0e8e459e3dc33e786beda8ec92f45 (diff)
Merge tag 'upstream/3.0.2'
Upstream version 3.0.2 # gpg: Signature made Fri 30 Jan 2015 05:00:11 PM EST using RSA key ID EBE9BD91 # gpg: Good signature from "Unit 193 <unit193@gmail.com>" # gpg: aka "Unit 193 <unit193@ninthfloor.org>" # gpg: aka "Unit 193 <unit193@ubuntu.com>"
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/translations.h')
-rw-r--r--SQLiteStudio3/coreSQLiteStudio/translations.h25
1 files changed, 25 insertions, 0 deletions
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 <QString>
+#include <QMap>
+
+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<QString, QString> getAvailableLanguages();
+
+#endif // TRANSLATIONS_H