summaryrefslogtreecommitdiff
path: root/src/utils/translation
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-29 03:51:37 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-29 03:52:16 +0300
commit3bf4e26b1319295532bb4396cbd6406d85cbcae0 (patch)
tree80a4303b29aafa21683e90e45798283a482bf1d1 /src/utils/translation
parent7f607a0f58a9eba53237955c06bf445c71d57b6c (diff)
downloadplus-3bf4e26b1319295532bb4396cbd6406d85cbcae0.tar.gz
plus-3bf4e26b1319295532bb4396cbd6406d85cbcae0.tar.bz2
plus-3bf4e26b1319295532bb4396cbd6406d85cbcae0.tar.xz
plus-3bf4e26b1319295532bb4396cbd6406d85cbcae0.zip
Replace vectors with strings to short names.
Diffstat (limited to 'src/utils/translation')
-rw-r--r--src/utils/translation/translationmanager.cpp2
-rw-r--r--src/utils/translation/translationmanager.h7
2 files changed, 4 insertions, 5 deletions
diff --git a/src/utils/translation/translationmanager.cpp b/src/utils/translation/translationmanager.cpp
index 03dd6d100..2a962913a 100644
--- a/src/utils/translation/translationmanager.cpp
+++ b/src/utils/translation/translationmanager.cpp
@@ -88,7 +88,7 @@ PoDict *TranslationManager::loadLang(LangVect lang,
bool TranslationManager::translateFile(const std::string &fileName,
PoDict *dict,
- std::vector<std::string> &lines)
+ StringVect &lines)
{
if (!dict || fileName.empty())
return false;
diff --git a/src/utils/translation/translationmanager.h b/src/utils/translation/translationmanager.h
index 842c5620b..debb555ea 100644
--- a/src/utils/translation/translationmanager.h
+++ b/src/utils/translation/translationmanager.h
@@ -23,15 +23,14 @@
#include "localconsts.h"
-#include <string>
-#include <vector>
+#include "utils/stringvector.h"
class PoDict;
class TranslationManager
{
public:
- static PoDict *loadLang(std::vector<std::string> lang,
+ static PoDict *loadLang(StringVect lang,
std::string subName,
PoDict *dict = nullptr);
@@ -43,7 +42,7 @@ class TranslationManager
static bool translateFile(const std::string &fileName,
PoDict *dict,
- std::vector<std::string> &lines);
+ StringVect &lines);
};
#endif // UTILS_TRANSLATION_MANAGER_H