Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Müller <fmueller@owncloud.com>2021-03-16 17:46:41 +0300
committerFabian Müller <80399010+fmoc@users.noreply.github.com>2021-03-31 12:43:26 +0300
commitc6bfd2ba59358a09ff1e0e0cc8c79c10addb77d4 (patch)
treeedd842ed1bbef5824624d4152d4b4dc29bd627ae /src/gui/translations.h
parent3ecdfcc97636c3fb160aa86a12c7cb67b6d682f6 (diff)
Move translations-related functionaltiy into new utility namespace
Diffstat (limited to 'src/gui/translations.h')
-rw-r--r--src/gui/translations.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/gui/translations.h b/src/gui/translations.h
new file mode 100644
index 000000000..705c72c67
--- /dev/null
+++ b/src/gui/translations.h
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) by Fabian Müller <fmueller@owncloud.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ */
+
+#ifndef TRANSLATIONSMANAGER_H
+#define TRANSLATIONSMANAGER_H
+
+#include <QSet>
+#include <QString>
+
+namespace OCC {
+
+namespace Translations {
+
+ /**
+ * @return translation files' filename prefix
+ */
+ const QString translationsFilePrefix();
+
+ /**
+ * @returntranslation files' filename suffix
+ */
+ const QString translationsFileSuffix();
+
+ /**
+ * @return path to translation files
+ */
+ QString applicationTrPath();
+
+ /**
+ * @return list of locales for which translations are available
+ */
+ QSet<QString> listAvailableTranslations();
+
+} // namespace Translations
+
+} // namespace OCC
+
+#endif // TRANSLATIONSMANAGER_H