From d5fdb227dd16a0d99a193489c71b9008944e489c Mon Sep 17 00:00:00 2001 From: stephan Date: Fri, 19 Jun 2026 12:43:54 -0400 Subject: [PATCH] Update mobile registration menu labels and enhance SQL entries for V2 This commit modifies the mobile registration menu labels to reflect the new versioning, changing the text to "Gestion des inscriptions V2" in French and "Registration management V2" in English. Additionally, it introduces a new function, `fxInscrMobilePromoteurMenuLabel`, to standardize the label retrieval process. The icon for the mobile registration link is also updated to improve visual consistency across the interface. --- inc_tableau_promoteur.php | 2 +- php/inc_fx_compte.php | 4 ++-- php/inc_fx_inscriptions_mobile.php | 5 +++++ sql/MSIN-inscriptions-mobile-menu-v2-i18n.sql | 7 +++++++ sql/MSIN-inscriptions-mobile-phase1.sql | 4 ++-- 5 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 sql/MSIN-inscriptions-mobile-menu-v2-i18n.sql diff --git a/inc_tableau_promoteur.php b/inc_tableau_promoteur.php index 46e0cb7..0bf01f7 100644 --- a/inc_tableau_promoteur.php +++ b/inc_tableau_promoteur.php @@ -264,7 +264,7 @@ if ($intEveId != 0) { diff --git a/php/inc_fx_compte.php b/php/inc_fx_compte.php index 6bdb2b9..fa29651 100644 --- a/php/inc_fx_compte.php +++ b/php/inc_fx_compte.php @@ -1510,10 +1510,10 @@ function fxShowMenuCompte($arrCompteClient, $strLangue) if (count($arrMobileEveIds) === 1) { $strMobileUrl .= '?promoteur_eve_id=' . urlencode(base64_encode($arrMobileEveIds[0])); } - $strMobileLabel = fxInscrMobileT('tableau_promoteur_menu_inscriptions_mobile'); + $strMobileLabel = fxInscrMobilePromoteurMenuLabel(); $strRetour .= ' '; diff --git a/php/inc_fx_inscriptions_mobile.php b/php/inc_fx_inscriptions_mobile.php index b92cd43..7e2bc4d 100644 --- a/php/inc_fx_inscriptions_mobile.php +++ b/php/inc_fx_inscriptions_mobile.php @@ -233,6 +233,11 @@ function fxInscrMobileRenderLoginPage($strLangue) { echo ''; } +/** Libellé menu promoteur V2 (même texte que l'ancien + suffixe V2). */ +function fxInscrMobilePromoteurMenuLabel() { + return afficheTexte('tableau_promoteur_menueinscription', 0) . ' V2'; +} + function fxInscrMobileListBackLabel($strLangue) { if (fxInscrMobileIsEntry()) { return ($strLangue === 'fr') ? 'Événements' : 'Events'; diff --git a/sql/MSIN-inscriptions-mobile-menu-v2-i18n.sql b/sql/MSIN-inscriptions-mobile-menu-v2-i18n.sql new file mode 100644 index 0000000..7956632 --- /dev/null +++ b/sql/MSIN-inscriptions-mobile-menu-v2-i18n.sql @@ -0,0 +1,7 @@ +-- Menu promoteur — libellé inscriptions mobile V2 (aligné sur l'ancien menu) + +UPDATE info SET info_texte = 'Gestion des inscriptions V2' +WHERE info_clef = 'tableau_promoteur_menu_inscriptions_mobile' AND info_langue = 'fr' AND info_prg = 'compte.php'; + +UPDATE info SET info_texte = 'Registration management V2' +WHERE info_clef = 'tableau_promoteur_menu_inscriptions_mobile' AND info_langue = 'en' AND info_prg = 'compte.php'; diff --git a/sql/MSIN-inscriptions-mobile-phase1.sql b/sql/MSIN-inscriptions-mobile-phase1.sql index 69f0049..c936a42 100644 --- a/sql/MSIN-inscriptions-mobile-phase1.sql +++ b/sql/MSIN-inscriptions-mobile-phase1.sql @@ -24,8 +24,8 @@ DELETE FROM info WHERE info_clef IN ( ) AND info_prg = 'compte.php'; INSERT INTO info (info_clef, info_langue, info_texte, info_aide, info_prg, info_description, info_trie, info_actif, info_option1, info_option2, info_option3, info_creation) VALUES -('tableau_promoteur_menu_inscriptions_mobile', 'fr', 'Inscriptions (mobile)', '', 'compte.php', '', 0, 1, '', '', '', NOW()), -('tableau_promoteur_menu_inscriptions_mobile', 'en', 'Registrations (mobile)', '', 'compte.php', '', 0, 1, '', '', '', NOW()), +('tableau_promoteur_menu_inscriptions_mobile', 'fr', 'Gestion des inscriptions V2', '', 'compte.php', '', 0, 1, '', '', '', NOW()), +('tableau_promoteur_menu_inscriptions_mobile', 'en', 'Registration management V2', '', 'compte.php', '', 0, 1, '', '', '', NOW()), ('inscr_mobile_title', 'fr', 'Liste des inscriptions', '', 'compte.php', '', 0, 1, '', '', '', NOW()), ('inscr_mobile_title', 'en', 'Registration list', '', 'compte.php', '', 0, 1, '', '', '', NOW()), ('inscr_mobile_filters', 'fr', 'Filtres', '', 'compte.php', '', 0, 1, '', '', '', NOW()),