Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Pim
Commits
0eb05c83
Commit
0eb05c83
authored
Jan 07, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Look at to fix bug about language in template
parent
1f40a874
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
templateparser/templateparser.cpp
templateparser/templateparser.cpp
+7
-0
templateparser/templateparser.h
templateparser/templateparser.h
+1
-1
templateparser/templatesutil.cpp
templateparser/templatesutil.cpp
+4
-2
No files found.
templateparser/templateparser.cpp
View file @
0eb05c83
...
...
@@ -311,6 +311,13 @@ void TemplateParser::processWithTemplate( const QString &tmpl )
QString
q
;
int
len
=
parseQuotes
(
QLatin1String
(
"REM="
),
cmd
,
q
);
i
+=
len
;
}
else
if
(
cmd
.
startsWith
(
QLatin1String
(
"LANGUAGE="
)
)
)
{
QString
q
;
const
int
len
=
parseQuotes
(
QLatin1String
(
"LANGUAGE="
),
cmd
,
q
);
i
+=
len
;
if
(
!
q
.
isEmpty
())
{
//TODO
}
}
else
if
(
cmd
.
startsWith
(
QLatin1String
(
"DICTIONARYLANGUAGE="
)
)
)
{
QString
q
;
const
int
len
=
parseQuotes
(
QLatin1String
(
"DICTIONARYLANGUAGE="
),
cmd
,
q
);
...
...
templateparser/templateparser.h
View file @
0eb05c83
...
...
@@ -300,7 +300,7 @@ private:
* smart quoting is turned on. Signed or encrypted texts
* get converted to plain text when allowDecryption is true.
*/
QString
quotedPlainText
(
const
QString
&
election
=
QString
()
)
const
;
QString
quotedPlainText
(
const
QString
&
s
election
=
QString
()
)
const
;
/**
* Returns HTML message body.
...
...
templateparser/templatesutil.cpp
View file @
0eb05c83
...
...
@@ -50,7 +50,8 @@ QStringList TemplateParser::Util::keywordsWithArgs()
<<
QLatin1String
(
"%TEXTPIPE=
\"\"
"
)
<<
QLatin1String
(
"%OHEADER=
\"\"
"
)
<<
QLatin1String
(
"%HEADER=
\"\"
"
)
<<
QLatin1String
(
"%DICTIONARYLANGUAGE=
\"\"
"
);
<<
QLatin1String
(
"%DICTIONARYLANGUAGE=
\"\"
"
)
<<
QLatin1String
(
"%LANGUAGE=
\"\"
"
);
return
keywordsWithArgs
;
}
...
...
@@ -70,7 +71,8 @@ QStringList TemplateParser::Util::keywordsWithArgsForCompleter()
<<
QLatin1String
(
"%TEXTPIPE=
\"
.*
\"
"
)
<<
QLatin1String
(
"%OHEADER=
\"
.*
\"
"
)
<<
QLatin1String
(
"%HEADER=
\"
.*
\"
"
)
<<
QLatin1String
(
"%DICTIONARYLANGUAGE=
\"
.*
\"
"
);
<<
QLatin1String
(
"%DICTIONARYLANGUAGE=
\"
.*
\"
"
)
<<
QLatin1String
(
"%LANGUAGE=
\"
.*
\"
"
);
return
keywordsWithArgs
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment