Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Fix siteLanguage("locale") TypoScript condition example #1449

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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 @@ -1262,7 +1262,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 @@ -1296,8 +1296,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