Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
jinja2.ext.InternationalizationExtension Class Reference
Inheritance diagram for jinja2.ext.InternationalizationExtension:
Inheritance graph
[legend]
Collaboration diagram for jinja2.ext.InternationalizationExtension:
Collaboration graph
[legend]

Public Member Functions

None __init__ (self, Environment environment)
 
t.Union[nodes.Node, t.List[nodes.Node]] parse (self, "Parser" parser)
 
- Public Member Functions inherited from jinja2.ext.Extension
None __init_subclass__ (cls)
 
"te.Self" bind (self, Environment environment)
 
str preprocess (self, str source, t.Optional[str] name, t.Optional[str] filename=None)
 
t.Union["TokenStream", t.Iterable["Token"]] filter_stream (self, "TokenStream" stream)
 
nodes.ExtensionAttribute attr (self, str name, t.Optional[int] lineno=None)
 
nodes.Call call_method (self, str name, t.Optional[t.List[nodes.Expr]] args=None, t.Optional[t.List[nodes.Keyword]] kwargs=None, t.Optional[nodes.Expr] dyn_args=None, t.Optional[nodes.Expr] dyn_kwargs=None, t.Optional[int] lineno=None)
 

Static Public Attributes

dict tags = {"trans"}
 
- Static Public Attributes inherited from jinja2.ext.Extension
identifier .ClassVar[str]
 
tags = set()
 
int priority = 100
 

Protected Member Functions

None _install (self, "_SupportedTranslations" translations, t.Optional[bool] newstyle=None)
 
None _install_null (self, t.Optional[bool] newstyle=None)
 
None _install_callables (self, t.Callable[[str], str] gettext, t.Callable[[str, str, int], str] ngettext, t.Optional[bool] newstyle=None, t.Optional[t.Callable[[str, str], str]] pgettext=None, t.Optional[t.Callable[[str, str, str, int], str]] npgettext=None)
 
None _uninstall (self, "_SupportedTranslations" translations)
 
t.Iterator[ t.Tuple[int, str, t.Union[t.Optional[str], t.Tuple[t.Optional[str],...]]]] _extract (self, t.Union[str, nodes.Template] source, t.Sequence[str] gettext_functions=GETTEXT_FUNCTIONS)
 
str _trim_whitespace (self, str string, t.Pattern[str] _ws_re=_ws_re)
 
t.Tuple[t.List[str], str] _parse_block (self, "Parser" parser, bool allow_pluralize)
 
nodes.Output _make_node (self, str singular, t.Optional[str] plural, t.Optional[str] context, t.Dict[str, nodes.Expr] variables, t.Optional[nodes.Expr] plural_expr, bool vars_referenced, bool num_called_num)
 

Additional Inherited Members

- Public Attributes inherited from jinja2.ext.Extension
 identifier
 
 environment
 

Detailed Description

This extension adds gettext support to Jinja.

Constructor & Destructor Documentation

◆ __init__()

None jinja2.ext.InternationalizationExtension.__init__ (   self,
Environment  environment 
)

Reimplemented from jinja2.ext.Extension.

Member Function Documentation

◆ _make_node()

nodes.Output jinja2.ext.InternationalizationExtension._make_node (   self,
str  singular,
t.Optional[str]  plural,
t.Optional[str]  context,
t.Dict[str, nodes.Expr variables,
t.Optional[nodes.Expr plural_expr,
bool  vars_referenced,
bool  num_called_num 
)
protected
Generates a useful node from the data provided.

◆ _parse_block()

t.Tuple[t.List[str], str] jinja2.ext.InternationalizationExtension._parse_block (   self,
"Parser"  parser,
bool   allow_pluralize 
)
protected
Parse until the next block tag with a given name.

◆ parse()

t.Union[nodes.Node, t.List[nodes.Node]] jinja2.ext.InternationalizationExtension.parse (   self,
"Parser"  parser 
)
Parse a translatable tag.

Reimplemented from jinja2.ext.Extension.


The documentation for this class was generated from the following file: