Skip to content

Commit 4658e5b

Browse files
froemkenlinawolf
authored andcommitted
Add more explaination for TS:data SiteLanguage:locale #1409 (#1413)
* Add more explaination for TS:data SiteLanguage:locale #1409 * Add description for locale itself (cherry picked from commit 26909ce)
1 parent d8b1fba commit 4658e5b

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

Documentation/Functions/Data.rst

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -949,14 +949,25 @@ siteLanguage
949949

950950
:typoscript:`locale`
951951
.. versionchanged:: 12.3
952-
Several subkeys are available:
953-
954-
* :typoscript:`languageCode`: this contains the two-letter language code (previously :typoscript:`siteLanguage:twoLetterIsoCode`)
955-
* :typoscript:`countryCode`: contains the uppercase country code part of the locale
956-
* :typoscript:`full`: contains the entire locale (also the default if no subkey is specified)
957-
958-
The locale, like `de_CH` or `en_GB` (also available from the subkey :typoscript:`locale.full`).
959-
952+
The :typoscript:`locale` property in typoscript can be subdivided
953+
into more specific details using subkeys separated by a colon `:`.
954+
The subkeys `languageCode`, `countryCode`, and `full` allow access
955+
to the individual components of the :typoscript:`locale` value. For
956+
instance, a :typoscript:`locale` value of "en_US.UTF-8" can be
957+
broken down into "en", "US", and for the `full` subkey, "en-US".
958+
959+
* :typoscript:`languageCode`: this contains the two-letter
960+
language code (previously
961+
:typoscript:`siteLanguage:twoLetterIsoCode`)
962+
* :typoscript:`countryCode`: contains the uppercase country code
963+
part of the locale
964+
* :typoscript:`full`: contains the entire locale (also the default
965+
if no subkey is specified)
966+
967+
The :typoscript:`locale` property represents the language, country, and
968+
character encoding settings for TYPO3. It is a composite value, such as
969+
"en_US.UTF-8", which can be dissected into different components via
970+
subkeys for more precise language and location specifications.
960971

961972
:typoscript:`navigationTitle`
962973
The label to be used within language menus.

0 commit comments

Comments
 (0)