Skip to content

Commit 697a5a7

Browse files
authored
Add hint to dynamically load language from backend user in cli (#5355)
1 parent 0e24c36 commit 697a5a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/ApiOverview/Backend/BackendUserObject.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ as the global variable :php:`$GLOBALS['BE_USER']`. The object is created in
1414
and is an instance of the class :php:`\TYPO3\CMS\Core\Authentication\BackendUserAuthentication`
1515
(which extends :php:`\TYPO3\CMS\Core\Authentication\AbstractUserAuthentication`).
1616

17-
When working with CLI and commands you might initialize the backend user object with :php:`\TYPO3\CMS\Core\Core\Bootstrap::initializeBackendUser()`.
17+
When working with CLI and commands you might initialize the backend user object with :php:`\TYPO3\CMS\Core\Core\Bootstrap::initializeBackendUser()`. In addition, you can call :php:`\TYPO3\CMS\Core\Core\Bootstrap::initializeBackendAuthentication()` to load the language of the CLI user set in the backend so that view helpers (like :php:`f:translate()`) used in the CLI resolve to the correct language.
1818

1919
.. index:: Backend user; Access
2020
.. _be-user-check:

0 commit comments

Comments
 (0)