summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-08-27 14:49:15 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-08-27 14:49:15 +0300
commitbae985cd619792221e9e5febe53037bdf2156da5 (patch)
tree16e537fcafd0e8bcf92c88b0520113ed7174a137 /plugins/Msg_Export/src/utils.cpp
parentd49f6ebd98d18b4e0ea785c058b0756728d993cd (diff)
missing translations restored
Diffstat (limited to 'plugins/Msg_Export/src/utils.cpp')
-rwxr-xr-xplugins/Msg_Export/src/utils.cpp31
1 files changed, 11 insertions, 20 deletions
diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp
index c1ecf4ce8f..7fb612c656 100755
--- a/plugins/Msg_Export/src/utils.cpp
+++ b/plugins/Msg_Export/src/utils.cpp
@@ -122,15 +122,6 @@ wstring _DBGetStringW(MCONTACT hContact, const char *szModule, const char *szSet
// Description : will replace all acurances of a string with another string
// used to replace %user%, and other user
-static void ReplaceAll(string &sSrc, const char *pszReplace, const string &sNew)
-{
- string::size_type nCur = 0;
- while ((nCur = sSrc.find(pszReplace, nCur)) != sSrc.npos) {
- sSrc.replace(nCur, mir_strlen(pszReplace), sNew);
- nCur += sNew.size();
- }
-}
-
static void ReplaceAll(wstring &sSrc, const wchar_t *pszReplace, const wstring &sNew)
{
string::size_type nCur = 0;
@@ -651,17 +642,17 @@ void DisplayErrorDialog(const wchar_t *pszError, wstring &sFilePath, DBEVENTINFO
const char *pSettings[] =
{
- "FirstName",
- "LastName",
- "e-mail",
- "Nick",
- "Age",
- "Gender",
- "City",
- "State",
- "Phone",
- "Homepage",
- "About"
+ LPGEN("FirstName"),
+ LPGEN("LastName"),
+ LPGEN("e-mail"),
+ LPGEN("Nick"),
+ LPGEN("Age"),
+ LPGEN("Gender"),
+ LPGEN("City"),
+ LPGEN("State"),
+ LPGEN("Phone"),
+ LPGEN("Homepage"),
+ LPGEN("About")
};
static bool ExportDBEventInfo(MCONTACT hContact, HANDLE hFile, wstring sFilePath, DBEVENTINFO &dbei, bool bAppendOnly)