Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Documentation/Conditions/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ siteLanguage()
Returns the language ID as an integer.

:typoscript:`siteLanguage("locale")`
Returns the current locale as a string, for example `en_GB` or `de_DE`.
Returns the current locale as a string, for example `en-GB` or `de-DE`.

:typoscript:`siteLanguage("base")`
Returns the configured base URL as a string.
Expand Down Expand Up @@ -1450,8 +1450,8 @@ siteLanguage()
.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript

[siteLanguage("locale") == "de_CH"]
page.10.value = This site has the locale "de_CH"
[siteLanguage("locale") == "de-CH"]
page.10.value = This site has the locale "de_CH" or "de_CH.utf8"
[END]

[siteLanguage("title") == "Italy"]
Expand Down
Loading