From ccfb689054178654e2ddd347b777a09ea1147c68 Mon Sep 17 00:00:00 2001 From: Yoan Mollard Date: Thu, 16 Mar 2023 02:23:39 +0100 Subject: [PATCH] Make the "public" setting clearer in the UI --- htdocs/langs/en_US/members.lang | 2 +- htdocs/public/members/new.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/langs/en_US/members.lang b/htdocs/langs/en_US/members.lang index 78cc1d43820..1d6704b2858 100644 --- a/htdocs/langs/en_US/members.lang +++ b/htdocs/langs/en_US/members.lang @@ -201,7 +201,7 @@ LastMemberDate=Latest membership date LatestSubscriptionDate=Latest contribution date MemberNature=Nature of the member MembersNature=Nature of the members -Public=Information is public +Public=%s can publish my membership in the public register NewMemberbyWeb=New member added. Awaiting approval NewMemberForm=New member form SubscriptionsStatistics=Contributions statistics diff --git a/htdocs/public/members/new.php b/htdocs/public/members/new.php index ce6eb58d02e..2655af04012 100644 --- a/htdocs/public/members/new.php +++ b/htdocs/public/members/new.php @@ -692,7 +692,9 @@ if (!empty($conf->global->MEMBER_SKIP_TABLE) || !empty($conf->global->MEMBER_NEW print ''.$langs->trans("URLPhoto").''."\n"; // Public - print ''.$langs->trans("Public").''."\n"; + $linkofpubliclist = DOL_MAIN_URL_ROOT.'/public/members/public_list.php'.((isModEnabled('multicompany')) ? '?entity='.$conf->entity : ''); + $publiclabel = $langs->trans("Public", $conf->global->MAIN_INFO_SOCIETE_NOM, $linkofpubliclist); + print ''.$publiclabel.''."\n"; // Other attributes $parameters['tpl_context']='public'; // define template context to public