[BUGFIX] Corrected tooltip for pages with nav_hide 70/59270/3
authorGuido Schmechel <guido.schmechel@brandung.de>
Sat, 22 Dec 2018 12:23:13 +0000 (13:23 +0100)
committerJan Helke <typo3@helke.de>
Fri, 11 Jan 2019 08:26:52 +0000 (09:26 +0100)
The inverted state of the nav_hide values is now considered.
For this purpose, the original label is supplemented again.

Resolves: #87256
Releases: master, 9.5
Change-Id: I8893a15744464af33d2147f1df42b25344d7de92
Reviewed-on: https://review.typo3.org/59270
Tested-by: Riccardo De Contardi <erredeco@gmail.com>
Tested-by: TYPO3com <noreply@typo3.com>
Reviewed-by: Stefanos Karasavvidis <sk@karasavvidis.gr>
Tested-by: Stefanos Karasavvidis <sk@karasavvidis.gr>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/core/Resources/Private/Language/locallang_tca.xlf

index 59346e0..f487890 100644 (file)
@@ -1318,7 +1318,7 @@ class BackendUtility
             }
         }
         if ($row['nav_hide']) {
-            $parts[] = rtrim($lang->sL($GLOBALS['TCA']['pages']['columns']['nav_hide']['label']), ':');
+            $parts[] = $lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:pages.nav_hide');
         }
         if ($row['hidden']) {
             $parts[] = $lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.hidden');
index df363f7..7c2e0e9 100644 (file)
                        <trans-unit id="pages.hidden_toggle_formlabel">
                                <source>Page visible</source>
                        </trans-unit>
+                       <trans-unit id="pages.nav_hide">
+                               <source>Page not enabled in menus</source>
+                       </trans-unit>
                        <trans-unit id="pages.nav_hide_toggle">
                                <source>Page enabled in menus</source>
                        </trans-unit>