This module offers some additional functionality that might come in useful for the Blellow theme.
Here is an overview of the features it offers:
Work in progress
The format_size
filter gives an easy way to display file sizes in human
readable format.
Example
If the variable {{ filesize }}
contains the number 123456
:
{{ filesize|format_size }}
Output: 120.56 KB
.
The to_language
filter will convert a language code into the full language
name in the current language. Please note that for this to work the language
should be enabled, and be translated in the current language.
This filter works great in conjunction with the OpenEuropa Multilingual module which includes all translations of the European language names.
Example
If the variable {{ langcode }}
contains es
and the current language is
English:
{{ langcode|to_language }}
Output: Spanish
.
The to_native_language
filter will convert a language code into the full language
name in the native language. Please note that for this to work the language
should be enabled, and be translated in the its own native language.
This filter works great in conjunction with the OpenEuropa Multilingual module which includes all native translations of the European language names.
Example
If the variable {{ langcode }}
contains es
:
{{ langcode|to_nativelanguage }}
Output: Español
.