Prints the store version's language specification as a two-letter language code.
Description
- de = German
- en = English
- fi = Finnish
{CurrentLanguageCode}
tag partially deviate from the ISO 639-1 standard, which is why MyCashflow's compatibility with external systems cannot be taken for granted. Issues may occur especially in relation to the following languages:Language | Output language code | ISO 639-1 |
---|---|---|
Chinese | cn | zh |
Estonian | ee | et |
Japanese | jp | ja |
Swedish | se | sv |
To print a more complex and standard-compliant specification, use the {CurrentLocale}
tag.
Syntax
{CurrentLanguageCode}
Scope
Required scope: globaali
Tags with global scope can be used on any template and in any tag.
Printing language information in the html element
{Doctype}
<html lang="{CurrentLanguageCode}">
<head>
...
In the MyCashflow default theme, language information is printed in the html
element by using the {CurrentLanguageCode}
tag in its lang
attribute.
Printing language information makes it possible to use styles and Javascript commands depending on the selected language, which can be helpful in localizing the store.
Attribuutit
after/before:
By using the
after
andbefore
attributes you can define content that is output either after or before the tag's output.Allowed values:HTML and Interface markup.
E.g.
before:
'<p>Tämä merkkaus näkyy ennen tagin omaa sisältöä.</p>'after:
'<p>Tämä taas näkyy tagin oman sisällön jälkeen.</p>'
If the tag does not produce any content, neither the content of the
after
andbefore
attributes will be output.escape:
Adds an escape character before quotation marks in the output.
The attribute makes it easier to process the tag-produced content when using JavaScript.
Allowed values:true/false. The default value is false.
or:
Defines alternative content that is displayed if the tag itself does not produce any content.
Allowed values:HTML and Interface markup.
E.g.
or:
'Sisältöä ei löytynyt.'