Skip to content

Commit e487d01

Browse files
committed
[TASK] Reformat TYPO3 login warranty and license information
Resolves: #108306 Releases: main, 13.4, 12.4 Change-Id: I5a671b56569b186089e0f264e086ca8825430904 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/91876 Tested-by: Oli Bartsch <[email protected]> Reviewed-by: Oli Bartsch <[email protected]> Tested-by: Benni Mack <[email protected]> Tested-by: core-ci <[email protected]> Reviewed-by: Benni Mack <[email protected]> (cherry picked from commit f761142) Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/91879 Reviewed-by: Garvin Hicking <[email protected]> Tested-by: Garvin Hicking <[email protected]>
1 parent 8c9959c commit e487d01

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

typo3/sysext/backend/Resources/Private/Language/locallang_login.xlf

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
<trans-unit id="error.furtherInformation" resname="error.furtherInformation">
4949
<source>For more information or further help click here</source>
5050
</trans-unit>
51-
<trans-unit id="warranty.by" resname="warranty.by">
52-
<source>Warranty is supplied by %s; %sdetails about licences.%s</source>
51+
<trans-unit id="warranty.by" resname="warranty.by" x-unused-since="12.4">
52+
<source>Warranty is supplied by %s; %sdetails about licenses.%s</source>
5353
</trans-unit>
54-
<trans-unit id="no.warranty" resname="no.warranty">
55-
<source>TYPO3 CMS comes with ABSOLUTELY NO WARRANTY; %sdetails about licences.%s</source>
54+
<trans-unit id="no.warranty" resname="no.warranty" x-unused-since="12.4">
55+
<source>TYPO3 CMS comes with ABSOLUTELY NO WARRANTY; %sdetails about licenses.%s</source>
5656
</trans-unit>
5757
<trans-unit id="typo3.cms" resname="typo3.cms">
5858
<source>TYPO3 CMS</source>
@@ -72,12 +72,18 @@
7272
<trans-unit id="extension.trademark">
7373
<source>TYPO3 is a registered %strademark%s.</source>
7474
</trans-unit>
75-
<trans-unit id="details.link" resname="details.link">
75+
<trans-unit id="details.link" resname="details.link" x-unused-since="12.4">
7676
<source>Go to %s for details.</source>
7777
</trans-unit>
7878
<trans-unit id="free.software" resname="free.software">
7979
<source>This is free software, and you are welcome to redistribute it under certain conditions; %sdetails about licences.%s</source>
8080
</trans-unit>
81+
<trans-unit id="free_software_and_warranty" resname="free_software_and_warranty">
82+
<source>TYPO3 CMS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions, see %sdetails about licenses.%s</source>
83+
</trans-unit>
84+
<trans-unit id="free_software_and_custom_warranty" resname="free_software_and_custom_warranty">
85+
<source>Warranty is supplied by %s. This is free software, and you are welcome to redistribute it under certain conditions, see %sdetails about licenses.%s</source>
86+
</trans-unit>
8187
<trans-unit id="keep.notice" resname="keep.notice">
8288
<source>Obstructing the appearance of this notice is prohibited by law.</source>
8389
</trans-unit>

typo3/sysext/core/Classes/Information/Typo3Information.php

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,16 @@ public function getCopyrightNotice(): string
8989

9090
if (strlen($loginCopyrightWarrantyProvider) >= 2 && strlen($loginCopyrightWarrantyURL) >= 10) {
9191
$warrantyNote = sprintf(
92-
$this->languageService->sL('LLL:EXT:backend/Resources/Private/Language/locallang_login.xlf:warranty.by'),
92+
$this->languageService->sL('LLL:EXT:backend/Resources/Private/Language/locallang_login.xlf:free_software_and_custom_warranty'),
9393
htmlspecialchars($loginCopyrightWarrantyProvider),
9494
'<a href="' . htmlspecialchars($loginCopyrightWarrantyURL) . '" target="_blank" rel="noreferrer">',
9595
'</a>'
9696
);
9797
} else {
9898
$warrantyNote = sprintf(
99-
$this->languageService->sL('LLL:EXT:backend/Resources/Private/Language/locallang_login.xlf:no.warranty'),
99+
$this->languageService->sL('LLL:EXT:backend/Resources/Private/Language/locallang_login.xlf:free_software_and_warranty'),
100100
'<a href="' . htmlspecialchars(static::URL_LICENSE) . '" target="_blank" rel="noreferrer">',
101-
'</a>'
101+
'</a> '
102102
);
103103
}
104104
return '<a href="' . htmlspecialchars(static::URL_COMMUNITY) . '" target="_blank" rel="noreferrer">' .
@@ -111,16 +111,7 @@ public function getCopyrightNotice(): string
111111
'<a href="' . htmlspecialchars(static::URL_TRADEMARK) . '" target="_blank" rel="noreferrer">',
112112
'</a>'
113113
) . ' ' .
114-
sprintf(
115-
$this->languageService->sL('LLL:EXT:backend/Resources/Private/Language/locallang_login.xlf:details.link'),
116-
'<a href="' . htmlspecialchars(static::URL_COMMUNITY) . '" target="_blank" rel="noreferrer">' . htmlspecialchars(static::URL_COMMUNITY) . '</a>'
117-
) . ' ' .
118-
strip_tags($warrantyNote, '<a>') . ' ' .
119-
sprintf(
120-
$this->languageService->sL('LLL:EXT:backend/Resources/Private/Language/locallang_login.xlf:free.software'),
121-
'<a href="' . htmlspecialchars(static::URL_LICENSE) . '" target="_blank" rel="noreferrer">',
122-
'</a> '
123-
)
114+
$warrantyNote
124115
. $this->languageService->sL('LLL:EXT:backend/Resources/Private/Language/locallang_login.xlf:keep.notice');
125116
}
126117
}

0 commit comments

Comments
 (0)