diff --git a/typo3/sysext/beuser/Classes/Controller/PermissionController.php b/typo3/sysext/beuser/Classes/Controller/PermissionController.php index bcbbfdefe0fac8dedb49f53bda71def3fa340fdf..be09d9e2d61a2c3f456f1ace2a2f20d2b9a2b068 100644 --- a/typo3/sysext/beuser/Classes/Controller/PermissionController.php +++ b/typo3/sysext/beuser/Classes/Controller/PermissionController.php @@ -229,7 +229,8 @@ class PermissionController extends ActionController 'id' => $this->id ))->buildBackendUri(); foreach (array(1, 2, 3, 4, 10) as $depthLevel) { - $depthOptions[$depthLevel] = $depthLevel . ' ' . LocalizationUtility::translate('LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:levels', 'beuser'); + $levelLabel = $depthLevel === 1 ? 'level' : 'levels'; + $depthOptions[$depthLevel] = $depthLevel . ' ' . LocalizationUtility::translate('LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:' . $levelLabel, 'beuser'); } $this->view->assign('depthBaseUrl', $url); $this->view->assign('depth', $this->depth); @@ -389,7 +390,9 @@ class PermissionController extends ActionController if ($this->getBackendUser()->user['uid'] && !empty($tree->orig_ids_hierarchy)) { // Init: $labelRecursive = LocalizationUtility::translate('LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:recursive', 'beuser'); + $labelLevel = LocalizationUtility::translate('LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:level', 'beuser'); $labelLevels = LocalizationUtility::translate('LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:levels', 'beuser'); + $labelPageAffected = LocalizationUtility::translate('LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:page_affected', 'beuser'); $labelPagesAffected = LocalizationUtility::translate('LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:pages_affected', 'beuser'); $theIdListArr = array(); // Traverse the number of levels we want to allow recursive @@ -400,8 +403,9 @@ class PermissionController extends ActionController $theIdListArr[] = $theId; } $lKey = $this->getLevels - $a + 1; - $options[implode(',', $theIdListArr)] = $labelRecursive . ' ' . $lKey . ' ' . $labelLevels . - ' (' . count($theIdListArr) . ' ' . $labelPagesAffected . ')'; + $pagesCount = count($theIdListArr); + $options[implode(',', $theIdListArr)] = $labelRecursive . ' ' . $lKey . ' ' . ($lKey === 1 ? $labelLevel : $labelLevels) . + ' (' . $pagesCount . ' ' . ($pagesCount === 1 ? $labelPageAffected : $labelPagesAffected) . ')'; } } } diff --git a/typo3/sysext/beuser/Resources/Private/Language/locallang_mod_permission.xlf b/typo3/sysext/beuser/Resources/Private/Language/locallang_mod_permission.xlf index faaa2c43213d479cb8d4d6ceffd5166ed8a17b78..dcd38cb70c28f422ecf4833018a3ae35cf9740b5 100644 --- a/typo3/sysext/beuser/Resources/Private/Language/locallang_mod_permission.xlf +++ b/typo3/sysext/beuser/Resources/Private/Language/locallang_mod_permission.xlf @@ -42,6 +42,9 @@ <trans-unit id="recursive"> <source>Set recursively</source> </trans-unit> + <trans-unit id="page_affected"> + <source>page affected</source> + </trans-unit> <trans-unit id="pages_affected"> <source>pages affected</source> </trans-unit> @@ -54,6 +57,9 @@ <trans-unit id="Depth"> <source>Depth</source> </trans-unit> + <trans-unit id="level"> + <source>level</source> + </trans-unit> <trans-unit id="levels"> <source>levels</source> </trans-unit>