From bb18b994b3a4150205c1d3c4de8ffc662fbf7299 Mon Sep 17 00:00:00 2001
From: bricebou <bricebou@momh.fr>
Date: Thu, 20 Feb 2025 06:46:10 +0100
Subject: [PATCH] chore: migration des fichiers de langue vers leur nouvelle
 syntaxe

Fix: #4685
---
 CHANGELOG.md        | 1 +
 lang/odtspip_fr.php | 5 ++---
 paquet.xml          | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4e9d67c..a283349 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,7 @@
 
 ### Added
 
+- #4685 Migration des fichiers de langue vers leur nouvelle syntaxe
 - #4680 Prise en compte de la légende et de la description des propriétés d'accessibilité d'une image lors de son import
 - #4675 Prise en compte des styles "Block Quotation" et "Quote"
 
diff --git a/lang/odtspip_fr.php b/lang/odtspip_fr.php
index 3478845..d84cc0a 100644
--- a/lang/odtspip_fr.php
+++ b/lang/odtspip_fr.php
@@ -12,7 +12,7 @@
  *
  */
 
-$GLOBALS[$GLOBALS['idx_lang']] = array(
+return [
 	// A
 	'attacher_fichier_odt' => 'Attacher le fichier ODT à l’article ?',
 	'attacher_fichier_source' => 'Attacher le fichier à l’article ?',
@@ -72,5 +72,4 @@ $GLOBALS[$GLOBALS['idx_lang']] = array(
 
 	// T
 	'titre_page_configurer' => 'Configuration du plugin odt2spip',
-);
-?>
\ No newline at end of file
+];
diff --git a/paquet.xml b/paquet.xml
index e065f45..36084e8 100644
--- a/paquet.xml
+++ b/paquet.xml
@@ -4,7 +4,7 @@
 	version="4.2.0"
 	schema="201406091738"
 	etat="stable"
-	compatibilite="[3.2.0;4.*]"
+	compatibilite="[4.2.0;4.*]"
 	logo="prive/themes/spip/images/odt2spip-64.png"
 	documentation="https://contrib.spip.net/3001"
 >
-- 
GitLab