From 9f106d7d3f357d646d26891c97834cb174178b10 Mon Sep 17 00:00:00 2001 From: Daniel Corn Date: Wed, 27 Nov 2024 11:19:08 +0100 Subject: [PATCH] [BUGFIX] Fix `siteLanguage("locale")` TypoScript condition example --- Documentation/Conditions/Index.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/Conditions/Index.rst b/Documentation/Conditions/Index.rst index ba385f55e..9b8b67a15 100644 --- a/Documentation/Conditions/Index.rst +++ b/Documentation/Conditions/Index.rst @@ -1258,7 +1258,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. @@ -1292,8 +1292,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"]