resource.language

Resource: Language

Reads a certain language file with returning not just one single label, but all the translated labels.

Examples

<!-- Tag usage for force getting labels in a specific language (different to current is possible too) -->
<v:resource.language extensionName="myext" path="Path/To/Locallang.xlf" languageKey="en"/>
<!-- Tag usage for getting labels of current language -->
<v:resource.language extensionName="myext" path="Path/To/Locallang.xlf"/>

Arguments

as

DataType

string

Required

false

Description

Template variable name to assign; if not specified the ViewHelper returns the variable instead.

extensionName

DataType

string

Required

false

Description

Name of the extension

path

DataType

string

Default

'locallang.xlf'

Required

false

Description

Absolute or relative path to the locallang file

languageKey

DataType

string

Required

false

Description

Key for getting translation of a different than current initialized language