Skip to content

Commit adfae63

Browse files
cunddfroemken
authored andcommitted
[BUGFIX] Fix siteLanguage("locale") TypoScript condition example (#1449)
1 parent f23a915 commit adfae63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/Conditions/Index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ siteLanguage()
12681268
Returns the language ID as an integer.
12691269

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

12731273
:typoscript:`siteLanguage("base")`
12741274
Returns the configured base URL as a string.
@@ -1307,8 +1307,8 @@ siteLanguage()
13071307
.. code-block:: typoscript
13081308
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript
13091309
1310-
[siteLanguage("locale") == "de_CH"]
1311-
page.10.value = This site has the locale "de_CH"
1310+
[siteLanguage("locale") == "de-CH"]
1311+
page.10.value = This site has the locale "de_CH" or "de_CH.utf8"
13121312
[END]
13131313
13141314
[siteLanguage("title") == "Italy"]

0 commit comments

Comments
 (0)