Commit 0eb05c83 authored by Laurent Montel's avatar Laurent Montel 😁

Look at to fix bug about language in template

parent 1f40a874
......@@ -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 );
......
......@@ -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 & selection=QString() ) const;
/**
* Returns HTML message body.
......
......@@ -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;
}
......
Markdown is supported
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