From ccc1bf34263c29a713f0201b94b63e862df6d848 Mon Sep 17 00:00:00 2001
From: Andreas Kienast <a.fernandez@scripting-base.de>
Date: Fri, 12 Apr 2024 11:18:03 +0100
Subject: [PATCH] [BUGFIX] Add missing `resname` attribute to dashboard xlf
 files

Resolves: #103615
Releases: main, 12.4, 11.5
Change-Id: I11f609625051f7dc6418596229bed49f282bc842
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83758
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
---
 .../Resources/Private/Language/locallang.xlf  | 128 +++++++++---------
 .../Private/Language/locallang_mod.xlf        |   6 +-
 .../Private/Language/locallang_tca.xlf        |   6 +-
 3 files changed, 70 insertions(+), 70 deletions(-)

diff --git a/typo3/sysext/dashboard/Resources/Private/Language/locallang.xlf b/typo3/sysext/dashboard/Resources/Private/Language/locallang.xlf
index 83b1e99a0c37..4a50e4aa8960 100644
--- a/typo3/sysext/dashboard/Resources/Private/Language/locallang.xlf
+++ b/typo3/sysext/dashboard/Resources/Private/Language/locallang.xlf
@@ -3,135 +3,135 @@
 	<file source-language="en" datatype="plaintext" original="messages" date="2018-11-27T22:26:21Z" product-name="dashboard">
 		<header/>
 		<body>
-			<trans-unit id="close" xml:space="preserve">
+			<trans-unit id="close" resname="close" xml:space="preserve">
 				<source>Close</source>
 			</trans-unit>
-			<trans-unit id="title" xml:space="preserve">
+			<trans-unit id="title" resname="title" xml:space="preserve">
 				<source>Dashboard</source>
 			</trans-unit>
-			<trans-unit id="widget.add" xml:space="preserve">
+			<trans-unit id="widget.add" resnamr="widget.add" xml:space="preserve">
 				<source>Add widget</source>
 			</trans-unit>
-			<trans-unit id="widget.add.button.close" xml:space="preserve">
+			<trans-unit id="widget.add.button.close" resname="widget.add.button.close" xml:space="preserve">
 				<source>Close</source>
 			</trans-unit>
-			<trans-unit id="widget.add.button.ok" xml:space="preserve">
+			<trans-unit id="widget.add.button.ok" resname="widget.add.button.ok" xml:space="preserve">
 				<source>Add widget</source>
 			</trans-unit>
-			<trans-unit id="widget.remove.button.close" xml:space="preserve">
+			<trans-unit id="widget.remove.button.close" resname="widget.remove.button.close" xml:space="preserve">
 				<source>Close</source>
 			</trans-unit>
-			<trans-unit id="widget.remove.button.ok" xml:space="preserve">
+			<trans-unit id="widget.remove.button.ok" resname="widget.remove.button.ok" xml:space="preserve">
 				<source>Remove</source>
 			</trans-unit>
-			<trans-unit id="widget.remove.confirm.title" xml:space="preserve">
+			<trans-unit id="widget.remove.confirm.title" resname="widget.remove.confirm.title" xml:space="preserve">
 				<source>Remove widget</source>
 			</trans-unit>
-			<trans-unit id="widget.remove.confirm.message" xml:space="preserve">
+			<trans-unit id="widget.remove.confirm.message" resname="widget.remove.confirm.message" xml:space="preserve">
 				<source>Are you sure you want to remove this widget?</source>
 			</trans-unit>
-			<trans-unit id="widget.error" xml:space="preserve">
+			<trans-unit id="widget.error" resname="widget.error" xml:space="preserve">
 				<source>An error occurred while retrieving information for this widget. Please try again, and if the problem persists, contact your administrator.</source>
 			</trans-unit>
-			<trans-unit id="dashboard.default" xml:space="preserve">
+			<trans-unit id="dashboard.default" resname="dashboard.default" xml:space="preserve">
 				<source>My dashboard</source>
 			</trans-unit>
-			<trans-unit id="dashboard.default.description" xml:space="preserve">
+			<trans-unit id="dashboard.default.description" resname="dashboard.default.description" xml:space="preserve">
 				<source>Create a new dashboard with some general TYPO3 widgets on it</source>
 			</trans-unit>
-			<trans-unit id="dashboard.empty" xml:space="preserve">
+			<trans-unit id="dashboard.empty" resname="dashboard.empty" xml:space="preserve">
 				<source>Empty dashboard</source>
 			</trans-unit>
-			<trans-unit id="dashboard.empty.description" xml:space="preserve">
+			<trans-unit id="dashboard.empty.description" resname="dashboard.empty.description" xml:space="preserve">
 				<source>Your dashboard will be created without any widget on it.</source>
 			</trans-unit>
-			<trans-unit id="dashboard.add" xml:space="preserve">
+			<trans-unit id="dashboard.add" resname="dashboard.add" xml:space="preserve">
 				<source>Add dashboard</source>
 			</trans-unit>
-			<trans-unit id="dashboard.add.button.close" xml:space="preserve">
+			<trans-unit id="dashboard.add.button.close" resname="dashboard.add.button.close" xml:space="preserve">
 				<source>Close</source>
 			</trans-unit>
-			<trans-unit id="dashboard.add.button.ok" xml:space="preserve">
+			<trans-unit id="dashboard.add.button.ok" resname="dashboard.add.button.ok" xml:space="preserve">
 				<source>Add Dashboard</source>
 			</trans-unit>
-			<trans-unit id="dashboard.configure" xml:space="preserve">
+			<trans-unit id="dashboard.configure" resname="dashboard.configure" xml:space="preserve">
 				<source>Configure dashboard</source>
 			</trans-unit>
-			<trans-unit id="dashboard.configure.button.close" xml:space="preserve">
+			<trans-unit id="dashboard.configure.button.close" resname="dashboard.configure.button.close" xml:space="preserve">
 				<source>Close</source>
 			</trans-unit>
-			<trans-unit id="dashboard.configure.button.ok" xml:space="preserve">
+			<trans-unit id="dashboard.configure.button.ok" resname="dashboard.configure.button.ok" xml:space="preserve">
 				<source>Save Dashboard</source>
 			</trans-unit>
-			<trans-unit id="dashboard.delete" xml:space="preserve">
+			<trans-unit id="dashboard.delete" resname="dashboard.delete" xml:space="preserve">
 				<source>Delete dashboard</source>
 			</trans-unit>
-			<trans-unit id="dashboard.delete.sure" xml:space="preserve">
+			<trans-unit id="dashboard.delete.sure" resname="dashboard.delete.sure" xml:space="preserve">
 				<source>Are you sure you want to delete this dashboard?</source>
 			</trans-unit>
-			<trans-unit id="dashboard.delete.ok" xml:space="preserve">
+			<trans-unit id="dashboard.delete.ok" resname="dashboard.delete.ok" xml:space="preserve">
 				<source>Yes, delete it</source>
 			</trans-unit>
-			<trans-unit id="dashboard.delete.cancel" xml:space="preserve">
+			<trans-unit id="dashboard.delete.cancel" resname="dashboard.delete.cancel" xml:space="preserve">
 				<source>Cancel</source>
 			</trans-unit>
-			<trans-unit id="dashboard.title" xml:space="preserve">
+			<trans-unit id="dashboard.title" resname="dashboard.title" xml:space="preserve">
 				<source>Title of dashboard</source>
 			</trans-unit>
 
-			<trans-unit id="widgets.documentation.gettingStarted.title" xml:space="preserve">
+			<trans-unit id="widgets.documentation.gettingStarted.title" resname="widgets.documentation.gettingStarted.title" xml:space="preserve">
 				<source>Getting Started with TYPO3</source>
  			</trans-unit>
-			<trans-unit id="widgets.documentation.gettingStarted.description" xml:space="preserve">
+			<trans-unit id="widgets.documentation.gettingStarted.description" resname="widgets.documentation.gettingStarted.description" xml:space="preserve">
 				<source>Add a shortcut to the TYPO3 Getting Started Tutorial.</source>
  			</trans-unit>
-			<trans-unit id="widgets.documentation.gettingStarted.text" xml:space="preserve">
+			<trans-unit id="widgets.documentation.gettingStarted.text" resname="widgets.documentation.gettingStarted.text" xml:space="preserve">
 				<source>New to TYPO3? In our Getting Started Tutorial you will learn the basics how to use TYPO3.</source>
  			</trans-unit>
-			<trans-unit id="widgets.documentation.gettingStarted.content.label" xml:space="preserve">
+			<trans-unit id="widgets.documentation.gettingStarted.content.label" resname="widgets.documentation.gettingStarted.text" xml:space="preserve">
 				<source>Getting Started Tutorial</source>
  			</trans-unit>
 
-			<trans-unit id="widgets.documentation.typoscriptReference.title" xml:space="preserve">
+			<trans-unit id="widgets.documentation.typoscriptReference.title" resname="widgets.documentation.typoscriptReference.title" xml:space="preserve">
 				<source>TypoScript Template Reference</source>
  			</trans-unit>
-			<trans-unit id="widgets.documentation.typoscriptReference.description" xml:space="preserve">
+			<trans-unit id="widgets.documentation.typoscriptReference.description" resname="widgets.documentation.typoscriptReference.description" xml:space="preserve">
 				<source>Add a shortcut to the TYPO3 TypoScript Template Reference.</source>
  			</trans-unit>
-			<trans-unit id="widgets.documentation.typoscriptReference.text" xml:space="preserve">
+			<trans-unit id="widgets.documentation.typoscriptReference.text" resname="widgets.documentation.typoscriptReference.text" xml:space="preserve">
 				<source>This document is a reference, used to lookup TypoScript templating.</source>
  			</trans-unit>
-			<trans-unit id="widgets.documentation.typoscriptReference.content.label" xml:space="preserve">
+			<trans-unit id="widgets.documentation.typoscriptReference.content.label" resname="widgets.documentation.typoscriptReference.content.label" xml:space="preserve">
 				<source>TypoScript Template Reference</source>
  			</trans-unit>
 
-			<trans-unit id="widgets.documentation.TSconfigReference.title" xml:space="preserve">
+			<trans-unit id="widgets.documentation.TSconfigReference.title" resname="widgets.documentation.TSconfigReference.title" xml:space="preserve">
 				<source>TSconfig Reference</source>
  			</trans-unit>
-			<trans-unit id="widgets.documentation.TSconfigReference.description" xml:space="preserve">
+			<trans-unit id="widgets.documentation.TSconfigReference.description" resname="widgets.documentation.TSconfigReference.description" xml:space="preserve">
 				<source>Add a shortcut to the TYPO3 TSconfig Reference.</source>
  			</trans-unit>
-			<trans-unit id="widgets.documentation.TSconfigReference.text" xml:space="preserve">
+			<trans-unit id="widgets.documentation.TSconfigReference.text" resname="widgets.documentation.TSconfigReference.text" xml:space="preserve">
 				<source>This document describes TSconfig and its options.</source>
  			</trans-unit>
-			<trans-unit id="widgets.documentation.TSconfigReference.content.label" xml:space="preserve">
+			<trans-unit id="widgets.documentation.TSconfigReference.content.label" resname="widgets.documentation.TSconfigReference.content.label" xml:space="preserve">
 				<source>TSconfig Reference</source>
  			</trans-unit>
 
-			<trans-unit id="widgets.t3news.title" xml:space="preserve">
+			<trans-unit id="widgets.t3news.title" resname="widgets.t3news.title" xml:space="preserve">
 				<source>TYPO3 news</source>
 			</trans-unit>
-			<trans-unit id="widgets.t3news.description" xml:space="preserve">
+			<trans-unit id="widgets.t3news.description" resname="widgets.t3news.description" xml:space="preserve">
 				<source>Add a list of news items from the TYPO3 project</source>
 			</trans-unit>
-			<trans-unit id="widgets.t3news.moreItems" xml:space="preserve">
+			<trans-unit id="widgets.t3news.moreItems" resname="widgets.t3news.moreItems" xml:space="preserve">
 				<source>More TYPO3 news</source>
 			</trans-unit>
 
-			<trans-unit id="widgets.t3information.title" xml:space="preserve">
+			<trans-unit id="widgets.t3information.title" resname="widgets.t3information.title" xml:space="preserve">
 				<source>About TYPO3</source>
 			</trans-unit>
-			<trans-unit id="widgets.t3information.description" xml:space="preserve">
+			<trans-unit id="widgets.t3information.description" resname="widgets.t3information.description" xml:space="preserve">
 				<source>Some general information about TYPO3 and the version used</source>
 			</trans-unit>
 			<trans-unit id="widgets.t3information.text" resname="widgets.t3information.text">
@@ -141,75 +141,75 @@
 				<source>TYPO3 CMS logo</source>
 			</trans-unit>
 
-			<trans-unit id="widgets.sysLogErrors.title" xml:space="preserve">
+			<trans-unit id="widgets.sysLogErrors.title" resname="widgets.sysLogErrors.title" xml:space="preserve">
 				<source>Number of errors in system log</source>
 			</trans-unit>
-			<trans-unit id="widgets.sysLogErrors.description" xml:space="preserve">
+			<trans-unit id="widgets.sysLogErrors.description" resname="widgets.sysLogErrors.description" xml:space="preserve">
 				<source>Shows the number of errors in the sys log of the last month, grouped by date</source>
 			</trans-unit>
-			<trans-unit id="widgets.sysLogErrors.buttonText" xml:space="preserve">
+			<trans-unit id="widgets.sysLogErrors.buttonText" resname="widgets.sysLogErrors.buttonText" xml:space="preserve">
 				<source>Show all errors in log</source>
 			</trans-unit>
-			<trans-unit id="widgets.sysLogErrors.chart.dataSet.0" xml:space="preserve">
+			<trans-unit id="widgets.sysLogErrors.chart.dataSet.0" resname="widgets.sysLogErrors.chart.dataSet.0" xml:space="preserve">
 				<source>Number of errors</source>
 			</trans-unit>
 
-			<trans-unit id="widgets.typeOfUsers.title" xml:space="preserve">
+			<trans-unit id="widgets.typeOfUsers.title" resname="widgets.typeOfUsers.title" xml:space="preserve">
 				<source>Type of backend users</source>
 			</trans-unit>
-			<trans-unit id="widgets.typeOfUsers.description" xml:space="preserve">
+			<trans-unit id="widgets.typeOfUsers.description" resname="widgets.typeOfUsers.description" xml:space="preserve">
 				<source>Shows the amount of normal- and admin-users</source>
 			</trans-unit>
-			<trans-unit id="widgets.typeOfUsers.normalUsers" xml:space="preserve">
+			<trans-unit id="widgets.typeOfUsers.normalUsers" resname="widgets.typeOfUsers.normalUsers" xml:space="preserve">
 				<source>Normal users</source>
 			</trans-unit>
-			<trans-unit id="widgets.typeOfUsers.adminUsers" xml:space="preserve">
+			<trans-unit id="widgets.typeOfUsers.adminUsers" resname="widgets.typeOfUsers.adminUsers" xml:space="preserve">
 				<source>Admin users</source>
 			</trans-unit>
 
-			<trans-unit id="widgets.failedLogins.title" xml:space="preserve">
+			<trans-unit id="widgets.failedLogins.title" resname="widgets.failedLogins.title" xml:space="preserve">
 				<source>Failed backend logins</source>
 			</trans-unit>
-			<trans-unit id="widgets.failedLogins.subtitle" xml:space="preserve">
+			<trans-unit id="widgets.failedLogins.subtitle" resname="widgets.failedLogins.subtitle" xml:space="preserve">
 				<source>In last 24 hours</source>
 			</trans-unit>
-			<trans-unit id="widgets.failedLogins.description" xml:space="preserve">
+			<trans-unit id="widgets.failedLogins.description" resname="widgets.failedLogins.description" xml:space="preserve">
 				<source>Information about the number of failed logins during the last 24 hours.</source>
 			</trans-unit>
 
-			<trans-unit id="widgets.t3securityAdvisories.title" xml:space="preserve">
+			<trans-unit id="widgets.t3securityAdvisories.title" resname="widgets.t3securityAdvisories.title" xml:space="preserve">
 				<source>TYPO3 security advisories</source>
 			</trans-unit>
-			<trans-unit id="widgets.t3securityAdvisories.description" xml:space="preserve">
+			<trans-unit id="widgets.t3securityAdvisories.description" resname="widgets.t3securityAdvisories.description" xml:space="preserve">
 				<source>Add a list of security advisories from the TYPO3 project</source>
 			</trans-unit>
-			<trans-unit id="widgets.t3securityAdvisories.moreItems" xml:space="preserve">
+			<trans-unit id="widgets.t3securityAdvisories.moreItems" resname="widgets.t3securityAdvisories.moreItems" xml:space="preserve">
 				<source>More TYPO3 security advisories</source>
 			</trans-unit>
 
-			<trans-unit id="widget_group.general" xml:space="preserve">
+			<trans-unit id="widget_group.general" resname="widget_group.general" xml:space="preserve">
 				<source>General</source>
  			</trans-unit>
-			<trans-unit id="widget_group.typo3" xml:space="preserve">
+			<trans-unit id="widget_group.typo3" resname="widget_group.typo3" xml:space="preserve">
 				<source>TYPO3 community</source>
  			</trans-unit>
-			<trans-unit id="widget_group.news" xml:space="preserve">
+			<trans-unit id="widget_group.news" resname="widget_group.news" xml:space="preserve">
 				<source>News</source>
  			</trans-unit>
-			<trans-unit id="widget_group.documentation" xml:space="preserve">
+			<trans-unit id="widget_group.documentation" resname="widget_group.documentation" xml:space="preserve">
 				<source>Documentation</source>
  			</trans-unit>
-			<trans-unit id="widget_group.system" xml:space="preserve">
+			<trans-unit id="widget_group.system" resname="widget_group.system" xml:space="preserve">
 				<source>System Information</source>
  			</trans-unit>
 
-			<trans-unit id="dashboard.empty.content.title" xml:space="preserve">
+			<trans-unit id="dashboard.empty.content.title" resname="dashboard.empty.content.title" xml:space="preserve">
 				<source>No widgets</source>
  			</trans-unit>
-			<trans-unit id="dashboard.empty.content.description" xml:space="preserve">
+			<trans-unit id="dashboard.empty.content.description" resname="dashboard.empty.content.description" xml:space="preserve">
 				<source>There are no widgets on this dashboard yet. You can add widgets now by clicking on the button below.</source>
  			</trans-unit>
-			<trans-unit id="dashboard.empty.content.button" xml:space="preserve">
+			<trans-unit id="dashboard.empty.content.button" resname="dashboard.empty.content.button" xml:space="preserve">
 				<source>Add a widget</source>
  			</trans-unit>
 		</body>
diff --git a/typo3/sysext/dashboard/Resources/Private/Language/locallang_mod.xlf b/typo3/sysext/dashboard/Resources/Private/Language/locallang_mod.xlf
index 786f3e7b70d9..dac60134af2a 100644
--- a/typo3/sysext/dashboard/Resources/Private/Language/locallang_mod.xlf
+++ b/typo3/sysext/dashboard/Resources/Private/Language/locallang_mod.xlf
@@ -3,13 +3,13 @@
 	<file source-language="en" datatype="plaintext" original="messages" date="2019-11-16T20:46:32Z" product-name="cms">
 		<header/>
 		<body>
-			<trans-unit id="mlang_labels_tablabel">
+			<trans-unit id="mlang_labels_tablabel" resname="mlang_labels_tablabel">
 				<source>Dashboard</source>
 			</trans-unit>
-			<trans-unit id="mlang_labels_tabdescr">
+			<trans-unit id="mlang_labels_tabdescr" resname="mlang_labels_tabdescr">
 				<source>A dashboard that can show widgets of all kind of extensions</source>
 			</trans-unit>
-			<trans-unit id="mlang_tabs_tab">
+			<trans-unit id="mlang_tabs_tab" resname="mlang_tabs_tab">
 				<source>Dashboard</source>
 			</trans-unit>
 		</body>
diff --git a/typo3/sysext/dashboard/Resources/Private/Language/locallang_tca.xlf b/typo3/sysext/dashboard/Resources/Private/Language/locallang_tca.xlf
index 120227ffb90f..43a05971a41d 100644
--- a/typo3/sysext/dashboard/Resources/Private/Language/locallang_tca.xlf
+++ b/typo3/sysext/dashboard/Resources/Private/Language/locallang_tca.xlf
@@ -3,13 +3,13 @@
 	<file source-language="en" datatype="plaintext" original="messages" date="2018-11-27T22:26:21Z" product-name="dashboard">
 		<header/>
 		<body>
-			<trans-unit id="be_dashboard" xml:space="preserve">
+			<trans-unit id="be_dashboard" resname="be_dashboard" xml:space="preserve">
 				<source>Dashboard</source>
 			</trans-unit>
-			<trans-unit id="identifier" xml:space="preserve">
+			<trans-unit id="identifier" resname="identifier" xml:space="preserve">
 				<source>Identifier</source>
 			</trans-unit>
-			<trans-unit id="title" xml:space="preserve">
+			<trans-unit id="title" resname="title" xml:space="preserve">
 				<source>Title</source>
 			</trans-unit>
 		</body>
-- 
GitLab