Messagelib

defaulttemplates.cpp
1/*
2 * SPDX-FileCopyrightText: 2006 Dmitry Morozhnikov <dmiceman@mail.ru>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 *
6 */
7
8#include "defaulttemplates.h"
9
10#include <KLocalizedString>
11
12using namespace TemplateParser;
13
14QString DefaultTemplates::defaultNewMessage()
15{
16 return QLatin1StringView("%REM=\"") + i18n("Default new message template") + QLatin1StringView("\"%-\n") + QLatin1StringView("%BLANK");
17}
18
19QString DefaultTemplates::defaultReply()
20{
21 return QStringLiteral("%REM=\"") + i18n("Default reply template") + QStringLiteral("\"%-\n")
22 + i18nc(
23 "Default reply template."
24 "%1: date of original message, %2: time of original message, "
25 "%3: quoted text of original message, %4: cursor Position",
26 "On %1 %2 you wrote:\n"
27 "%3\n"
28 "%4",
29 QStringLiteral("%ODATE"),
30 QStringLiteral("%OTIMELONG"),
31 QStringLiteral("%QUOTE"),
32 QStringLiteral("%CURSOR"));
33}
34
35QString DefaultTemplates::defaultReplyAll()
36{
37 return QStringLiteral("%REM=\"") + i18n("Default reply all template") + QStringLiteral("\"%-\n")
38 + i18nc(
39 "Default reply all template: %1: date, %2: time, %3: name of original sender, "
40 "%4: quoted text of original message, %5: cursor position",
41 "On %1 %2 %3 wrote:\n"
42 "%4\n"
43 "%5",
44 QStringLiteral("%ODATE"),
45 QStringLiteral("%OTIMELONG"),
46 QStringLiteral("%OFROMNAME"),
47 QStringLiteral("%QUOTE"),
48 QStringLiteral("%CURSOR"));
49}
50
51QString DefaultTemplates::defaultForward()
52{
53 return QStringLiteral("%REM=\"") + i18n("Default forward template") + QStringLiteral("\"%-\n")
54 + i18nc(
55 "Default forward template: %1: subject of original message, "
56 "%2: date of original message, "
57 "%3: time of original message, "
58 "%4: mail address of original sender, "
59 "%5: original message text",
60 "\n"
61 "---------- Forwarded Message ----------\n"
62 "\n"
63 "Subject: %1\n"
64 "Date: %2, %3\n"
65 "From: %4\n"
66 "%OADDRESSEESADDR\n"
67 "\n"
68 "%5\n"
69 "-----------------------------------------",
70 QStringLiteral("%OFULLSUBJECT"),
71 QStringLiteral("%ODATE"),
72 QStringLiteral("%OTIMELONG"),
73 QStringLiteral("%OFROMADDR"),
74 QStringLiteral("%TEXT"));
75}
76
77QString DefaultTemplates::defaultQuoteString()
78{
79 return QStringLiteral("> ");
80}
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:48:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.