Commit 384b429b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add i18n

parent 03e1f033
Pipeline #93166 passed with stage
in 50 minutes and 53 seconds
......@@ -5,8 +5,18 @@
*/
#include "scamconfigureutils.h"
#include <KLocalizedString>
QString ScamConfigureUtils::convertEnumToString(MessageViewer::ScamDetectionInfo::ScamDetectionField flag)
{
// TODO
switch (flag) {
case MessageViewer::ScamDetectionInfo::ScamDetectionField::None:
break;
case MessageViewer::ScamDetectionInfo::ScamDetectionField::DisableAll:
return i18n("Disable All Check");
case MessageViewer::ScamDetectionInfo::ScamDetectionField::RedirectUrl:
return i18n("Redirect Url");
case MessageViewer::ScamDetectionInfo::ScamDetectionField::HasIp:
return i18n("Has Ip");
}
return {};
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment