From 3bf4e26b1319295532bb4396cbd6406d85cbcae0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 29 Mar 2012 03:51:37 +0300 Subject: Replace vectors with strings to short names. --- src/utils/translation/translationmanager.cpp | 2 +- src/utils/translation/translationmanager.h | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src/utils/translation') 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 &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 -#include +#include "utils/stringvector.h" class PoDict; class TranslationManager { public: - static PoDict *loadLang(std::vector 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 &lines); + StringVect &lines); }; #endif // UTILS_TRANSLATION_MANAGER_H -- cgit v1.2.3-70-g09d2