From a32825559a9f692b5ddb88689c45161c992a04c7 Mon Sep 17 00:00:00 2001
From: Oliver Bartsch <bo@cedev.de>
Date: Tue, 20 Oct 2020 20:54:43 +0200
Subject: [PATCH] [BUGFIX] Fix CSH labels for inverted columns

Since some TCA columns like `hidden` use the `invertStateDisplay`
option for display in FormEngine nowadays, the corresponding
CSH labels are now adjusted to reflect this behaviour.

Resolves: #92603
Releases: master, 10.4
Change-Id: I05bb667930906232947a2ebb4f1995e795e39110
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66212
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Daniel Haupt <mail@danielhaupt.de>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Daniel Haupt <mail@danielhaupt.de>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
---
 .../Resources/Private/Language/locallang_csh_be_groups.xlf  | 2 +-
 .../Resources/Private/Language/locallang_csh_be_users.xlf   | 2 +-
 .../core/Resources/Private/Language/locallang_csh_pages.xlf | 6 +++---
 .../Resources/Private/Language/locallang_csh_sysfilem.xlf   | 2 +-
 .../Private/Language/locallang_csh_sysfilestorage.xlf       | 2 +-
 .../Resources/Private/Language/locallang_csh_syslang.xlf    | 2 +-
 .../Resources/Private/Language/locallang_csh_sysnews.xlf    | 2 +-
 .../Resources/Private/Language/locallang_csh_fe_groups.xlf  | 2 +-
 .../Resources/Private/Language/locallang_csh_fe_users.xlf   | 2 +-
 .../Resources/Private/Language/locallang_csh_systmpl.xlf    | 2 +-
 .../Resources/Private/Language/locallang_csh_ttcontent.xlf  | 2 +-
 .../Resources/Private/Language/locallang_csh_indexcfg.xlf   | 2 +-
 12 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/typo3/sysext/core/Resources/Private/Language/locallang_csh_be_groups.xlf b/typo3/sysext/core/Resources/Private/Language/locallang_csh_be_groups.xlf
index c148a61ac323..18dcfdf6648f 100644
--- a/typo3/sysext/core/Resources/Private/Language/locallang_csh_be_groups.xlf
+++ b/typo3/sysext/core/Resources/Private/Language/locallang_csh_be_groups.xlf
@@ -198,7 +198,7 @@ Examples from "Getting Started" | https://docs.typo3.org/typo3cms/GettingStarted
 				<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
 			</trans-unit>
 			<trans-unit id="hidden.description" resname="hidden.description">
-				<source>Disables a user group.</source>
+				<source>Enables a user group.</source>
 			</trans-unit>
 			<trans-unit id="hidden.details" resname="hidden.details">
 				<source>If you disable a user group all users which are members of the group will in effect not inherit any properties this group may have given them.</source>
diff --git a/typo3/sysext/core/Resources/Private/Language/locallang_csh_be_users.xlf b/typo3/sysext/core/Resources/Private/Language/locallang_csh_be_users.xlf
index 802f064a1364..531f3180fe41 100644
--- a/typo3/sysext/core/Resources/Private/Language/locallang_csh_be_users.xlf
+++ b/typo3/sysext/core/Resources/Private/Language/locallang_csh_be_users.xlf
@@ -142,7 +142,7 @@ _MOD_user_setup:option_newPassword</source>
 				<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
 			</trans-unit>
 			<trans-unit id="disable.description" resname="disable.description">
-				<source>This option will temporarily disable the user from logging in.</source>
+				<source>Unchecking this option will temporarily disable the user from logging in.</source>
 			</trans-unit>
 			<trans-unit id="_disable.seeAlso" resname="_disable.seeAlso" xml:space="preserve">
 				<source>be_users:starttime,
diff --git a/typo3/sysext/core/Resources/Private/Language/locallang_csh_pages.xlf b/typo3/sysext/core/Resources/Private/Language/locallang_csh_pages.xlf
index 63ac57439843..26efc0a25031 100644
--- a/typo3/sysext/core/Resources/Private/Language/locallang_csh_pages.xlf
+++ b/typo3/sysext/core/Resources/Private/Language/locallang_csh_pages.xlf
@@ -34,7 +34,7 @@ pages:url</source>
 				<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
 			</trans-unit>
 			<trans-unit id="hidden.description" resname="hidden.description">
-				<source>If this is checked, the page will be disabled on the website.</source>
+				<source>If this is checked, the page will be visible on the website.</source>
 			</trans-unit>
 			<trans-unit id="hidden.details" resname="hidden.details" xml:space="preserve">
 				<source>The 'Disable,' 'Start,' 'Stop,' and 'Access' options are all about limiting access to pages and are thus related in functionality. When a page is not visible due to one of these options, the page will not show up in the site navigation.
@@ -135,7 +135,7 @@ Combined:
 When specific pages need a longer or shorter cache lifetime than the default, this option can be used.</source>
 			</trans-unit>
 			<trans-unit id="no_search.description" resname="no_search.description">
-				<source>If enabled, this option excludes the page from searching operations on the website.</source>
+				<source>If enabled, this option includes the page in searching operations on the website.</source>
 			</trans-unit>
 			<trans-unit id="php_tree_stop.description" resname="php_tree_stop.description">
 				<source>If enabled, this option excludes the subtree from rendering in the backend.</source>
@@ -288,7 +288,7 @@ The most common use is to display the date from the automatically updated 'tstam
 If you insert a 'd' the current time and date is inserted. You can also append any value in the field with a number lie '+10' which will add 10 days to the current value.</source>
 			</trans-unit>
 			<trans-unit id="nav_hide.description" resname="nav_hide.description">
-				<source>With this option the page will be not appear in menus in the Frontend. The page can still be viewed if linked by going directly to its URL.</source>
+				<source>With this option the page will appear in menus in the Frontend. If unchecked, the page can still be viewed if linked by going directly to its URL.</source>
 			</trans-unit>
 			<trans-unit id="_nav_hide.seeAlso" resname="_nav_hide.seeAlso">
 				<source>pages:nav_title</source>
diff --git a/typo3/sysext/core/Resources/Private/Language/locallang_csh_sysfilem.xlf b/typo3/sysext/core/Resources/Private/Language/locallang_csh_sysfilem.xlf
index 268ece0d3e3a..26240b6f876b 100644
--- a/typo3/sysext/core/Resources/Private/Language/locallang_csh_sysfilem.xlf
+++ b/typo3/sysext/core/Resources/Private/Language/locallang_csh_sysfilem.xlf
@@ -56,7 +56,7 @@ EXT:core/Resources/Public/Images/cshimages/be_groups_7.png</source>
 The directory structure of "fileadmin/" where you can see the "user_upload" folder in the bottom of the list.</source>
 			</trans-unit>
 			<trans-unit id="hidden.description" resname="hidden.description">
-				<source>Use this option to temporarily disable the filemount.</source>
+				<source>Unchecking this option temporarily disables the filemount.</source>
 			</trans-unit>
 			<trans-unit id="hidden.details" resname="hidden.details">
 				<source>All backend users using the mount will not have access anymore. This includes 'Admin'-users.</source>
diff --git a/typo3/sysext/core/Resources/Private/Language/locallang_csh_sysfilestorage.xlf b/typo3/sysext/core/Resources/Private/Language/locallang_csh_sysfilestorage.xlf
index fe7432f64997..35a6df3ccd21 100644
--- a/typo3/sysext/core/Resources/Private/Language/locallang_csh_sysfilestorage.xlf
+++ b/typo3/sysext/core/Resources/Private/Language/locallang_csh_sysfilestorage.xlf
@@ -10,7 +10,7 @@
 				<source></source>
 			</trans-unit>
 			<trans-unit id="hidden.description" resname="hidden.description">
-				<source>Disabling the storage will result in removing it from any listings in the backend. Existing file relations will still exist.</source>
+				<source>Unchecking this option results in removing of the storage from any listings in the backend. Existing file relations will still exist.</source>
 			</trans-unit>
 			<trans-unit id="hidden.details" resname="hidden.details">
 				<source>If you set up a file storage, it will show up on any folder lists, thus allowing to basically browse through the files in this file repository. If you set this checkbox, this storage will be excluded from any listings in the backend. Any existing file references will still exist further.</source>
diff --git a/typo3/sysext/core/Resources/Private/Language/locallang_csh_syslang.xlf b/typo3/sysext/core/Resources/Private/Language/locallang_csh_syslang.xlf
index 9c239a324e80..896929efc875 100644
--- a/typo3/sysext/core/Resources/Private/Language/locallang_csh_syslang.xlf
+++ b/typo3/sysext/core/Resources/Private/Language/locallang_csh_syslang.xlf
@@ -7,7 +7,7 @@
 				<source>Enter the name of this additional system language.</source>
 			</trans-unit>
 			<trans-unit id="hidden.description" resname="hidden.description">
-				<source>This option will hide the system language from being available in the backend.</source>
+				<source>Unchecking this option will hide the system language from being available in the backend.</source>
 			</trans-unit>
 			<trans-unit id=".description" resname=".description">
 				<source>Defines which languages are alternatively available on each webpage.</source>
diff --git a/typo3/sysext/core/Resources/Private/Language/locallang_csh_sysnews.xlf b/typo3/sysext/core/Resources/Private/Language/locallang_csh_sysnews.xlf
index 1e5524c28e01..afeefb9aaa06 100644
--- a/typo3/sysext/core/Resources/Private/Language/locallang_csh_sysnews.xlf
+++ b/typo3/sysext/core/Resources/Private/Language/locallang_csh_sysnews.xlf
@@ -4,7 +4,7 @@
 		<header/>
 		<body>
 			<trans-unit id="hidden.description" resname="hidden.description">
-				<source>This option will hide the news from showing up at the login screen.</source>
+				<source>Unchecking this option will hide the news from showing up at the login screen.</source>
 			</trans-unit>
 			<trans-unit id="title.description" resname="title.description">
 				<source>Enter the title of the news.</source>
diff --git a/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_fe_groups.xlf b/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_fe_groups.xlf
index 99009152e3a2..2987b0ec7946 100644
--- a/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_fe_groups.xlf
+++ b/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_fe_groups.xlf
@@ -4,7 +4,7 @@
 		<header/>
 		<body>
 			<trans-unit id="hidden.description" resname="hidden.description">
-				<source>This option disables the user group.</source>
+				<source>This option enables the user group.</source>
 			</trans-unit>
 			<trans-unit id="hidden.details" resname="hidden.details" xml:space="preserve">
 				<source>If you disable a user group all users which are members of the group will in effect not inherit any properties this group may have given them.
diff --git a/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_fe_users.xlf b/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_fe_users.xlf
index 63a9c7219303..4839657d6e1d 100644
--- a/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_fe_users.xlf
+++ b/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_fe_users.xlf
@@ -43,7 +43,7 @@
 				<source>Insert a photo of the user.</source>
 			</trans-unit>
 			<trans-unit id="disable.description" resname="disable.description">
-				<source>This option will temporarily disable the user from logging in.</source>
+				<source>Unchecking this option will temporarily disable the user from logging in.</source>
 			</trans-unit>
 			<trans-unit id="_disable.seeAlso" resname="_disable.seeAlso">
 				<source>fe_users:starttime,fe_users:endtime</source>
diff --git a/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_systmpl.xlf b/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_systmpl.xlf
index 9108d0d83762..c56863bdd756 100644
--- a/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_systmpl.xlf
+++ b/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_systmpl.xlf
@@ -26,7 +26,7 @@ EXT:frontend/Resources/Public/Images/cshimages/systemplate1.png</source>
 The Web&gt;Template module contains tools which will help you to edit and validate TypoScript structures.</source>
 			</trans-unit>
 			<trans-unit id="hidden.description" resname="hidden.description">
-				<source>Hiding the template will deactivate the template record.</source>
+				<source>Unchecking this option will deactivate the template record.</source>
 			</trans-unit>
 			<trans-unit id="hidden.details" resname="hidden.details">
 				<source>If the Template Record was the first record on a page hiding it will expose the second record on the page instead.</source>
diff --git a/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_ttcontent.xlf b/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_ttcontent.xlf
index 1c6e2bd15bf5..bafed6c6dd76 100644
--- a/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_ttcontent.xlf
+++ b/typo3/sysext/frontend/Resources/Private/Language/locallang_csh_ttcontent.xlf
@@ -89,7 +89,7 @@ About Content Elements | https://docs.typo3.org/typo3cms/GettingStartedTutorial/
 				<note from="developer">This string contains an internal text, which must not be changed. Just copy the original text into the translation field. For more information have a look at the Tutorial.</note>
 			</trans-unit>
 			<trans-unit id="hidden.description" resname="hidden.description">
-				<source>Check this box if you wish to disable the Content Element and keep it from being displayed on the website.</source>
+				<source>Uncheck this box if you wish to disable the Content Element and keep it from being displayed on the website.</source>
 			</trans-unit>
 			<trans-unit id="_hidden.seeAlso" resname="_hidden.seeAlso" xml:space="preserve">
 				<source>tt_content:starttime,
diff --git a/typo3/sysext/indexed_search/Resources/Private/Language/locallang_csh_indexcfg.xlf b/typo3/sysext/indexed_search/Resources/Private/Language/locallang_csh_indexcfg.xlf
index 5cea7dcf6dea..e58904a289fb 100644
--- a/typo3/sysext/indexed_search/Resources/Private/Language/locallang_csh_indexcfg.xlf
+++ b/typo3/sysext/indexed_search/Resources/Private/Language/locallang_csh_indexcfg.xlf
@@ -16,7 +16,7 @@
 				<source>If needed, give it a description or put other important notes in this field.</source>
 			</trans-unit>
 			<trans-unit id="hidden.description" resname="hidden.description">
-				<source>Disable the configuration by this checkbox. If disabled, the configuration will be bypassed by the crawlers cron job.</source>
+				<source>Disable the configuration by unchecking this option. If disabled, the configuration will be bypassed by the crawlers cron job.</source>
 			</trans-unit>
 			<trans-unit id="hidden.details" resname="hidden.details">
 				<source>Notice; Disabling the indexing process will not hide already indexed content in search results!</source>
-- 
GitLab