Cutelee 6.2.0
I18nNode Class Reference
Inheritance diagram for I18nNode:

Public Member Functions

 I18nNode (const QString &sourceText, const QList< FilterExpression > &feList, QObject *parent={})
void render (OutputStream *stream, Context *c) const override
Public Member Functions inherited from Cutelee::Node
 Node (QObject *parent={})
 ~Node () override

Additional Inherited Members

Protected Member Functions inherited from Cutelee::Node
TemplateImpl * containerTemplate () const
void streamValueInContext (OutputStream *stream, const QVariant &input, Cutelee::Context *c) const

Detailed Description

Definition at line 51 of file i18n.h.

Constructor & Destructor Documentation

◆ I18nNode()

I18nNode::I18nNode ( const QString & sourceText,
const QList< FilterExpression > & feList,
QObject * parent = {} )

Definition at line 105 of file i18n.cpp.

Member Function Documentation

◆ render()

void I18nNode::render ( OutputStream * stream,
Context * c ) const
overridevirtual

Reimplement this to render the template in the Context c.

This will also involve calling render on and child nodes.

Implements Cutelee::Node.

Definition at line 112 of file i18n.cpp.

References Cutelee::Context::localizer(), Cutelee::FilterExpression::resolve(), and Cutelee::Node::streamValueInContext().