summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-10 16:44:18 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-10 16:44:18 +0300
commitc7c3b1a4c09ed2e4c4d0a6ba37e700f84874dba0 (patch)
treed346e636b136ffcfd976de17bf1bdaa372521573 /plugins/UserInfoEx
parent6eedeee1d473c077e5fa2fbbcfc2968d0f620c2c (diff)
fixes #3904 (UInfoEx: сделать названия форматов переводимыми)
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r--plugins/UserInfoEx/src/ex_import/svc_ExImport.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/plugins/UserInfoEx/src/ex_import/svc_ExImport.cpp b/plugins/UserInfoEx/src/ex_import/svc_ExImport.cpp
index 2782b988f0..145959d32f 100644
--- a/plugins/UserInfoEx/src/ex_import/svc_ExImport.cpp
+++ b/plugins/UserInfoEx/src/ex_import/svc_ExImport.cpp
@@ -87,21 +87,25 @@ static void DisplayNameToFileName(lpExImParam ExImContact, wchar_t *pszFileName,
pszFileName[0] = 0;
}
-const wchar_t *FilterString(lpExImParam ExImContact)
+static CMStringW FilterString(lpExImParam ExImContact)
{
+ CMStringW str;
+
switch (ExImContact->Typ) {
case EXIM_SUBGROUP:
case EXIM_ACCOUNT:
- return L"XMLCard 1.0 (*.xml)\0*.xml\0";
+ str.Format(L"%s 1.0 (*.xml)\0*.xml\0", TranslateT("XMLCard"));
+ __fallthrough;
case EXIM_ALL:
case EXIM_GROUP:
- return L"XMLCard 1.0 (*.xml)\0*.xml\0DBEditor++ File (*.ini)\0*.ini\0";
+ str.AppendFormat(L"%s (*.ini)\0*.ini\0", TranslateT("DBEditor++ File"));
+ __fallthrough;
case EXIM_CONTACT:
- return L"XMLCard 1.0 (*.xml)\0*.xml\0DBEditor++ File (*.ini)\0*.ini\0Standard vCard 2.1 (*.vcf)\0*.vcf\0";
+ str.AppendFormat(L"%s 2.1 (*.vcf)\0*.vcf\0", TranslateT("Standard vCard"));
}
- return nullptr;
+ return str;
}
/**