From 58ddb40d67cc02444184bede2362c0bee48b63c3 Mon Sep 17 00:00:00 2001 From: "Laurent Destailleur (aka Eldy)" Date: Sun, 1 Dec 2024 21:28:07 +0100 Subject: [PATCH] Trans --- htdocs/langs/en_US/opensurvey.lang | 1 + htdocs/opensurvey/card.php | 20 ++++++++++---------- htdocs/opensurvey/results.php | 2 +- htdocs/public/opensurvey/studs.php | 2 +- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/htdocs/langs/en_US/opensurvey.lang b/htdocs/langs/en_US/opensurvey.lang index 6f8bd25a966..93bc67ea34a 100644 --- a/htdocs/langs/en_US/opensurvey.lang +++ b/htdocs/langs/en_US/opensurvey.lang @@ -62,3 +62,4 @@ EmailSomeoneVoted=%s has filled a line.\nYou can find your poll at the link: \n% ShowSurvey=Show survey UserMustBeSameThanUserUsedToVote=You must have voted and use the same user name that the one used to vote, to post a comment ListOfOpenSurveys=List of open surveys +AddTheVote=Click to add the vote diff --git a/htdocs/opensurvey/card.php b/htdocs/opensurvey/card.php index a792c21b204..e4d3dd86271 100644 --- a/htdocs/opensurvey/card.php +++ b/htdocs/opensurvey/card.php @@ -261,16 +261,6 @@ if ($action == 'edit') { } print ''; -// Description -print ''.$langs->trans("Description").''; -if ($action == 'edit') { - $doleditor = new DolEditor('nouveauxcommentaires', $object->description, '', 120, 'dolibarr_notes', 'In', true, 1, 1, ROWS_7, '90%'); - $doleditor->Create(0, ''); -} else { - print(dol_textishtml($object->description) ? $object->description : dol_nl2br($object->description, 1, true)); -} -print ''; - // Receive an email with each vote print ''.$langs->trans('ToReceiveEMailForEachVote').''; if ($action == 'edit') { @@ -305,6 +295,16 @@ if ($action == 'edit') { } print ''; +// Description +print ''.$langs->trans("Description").''; +if ($action == 'edit') { + $doleditor = new DolEditor('nouveauxcommentaires', $object->description, '', 120, 'dolibarr_notes', 'In', true, 1, 1, ROWS_7, '90%'); + $doleditor->Create(0, ''); +} else { + print(dol_textishtml($object->description) ? $object->description : dol_nl2br($object->description, 1, true)); +} +print ''; + print ''; print ''; diff --git a/htdocs/opensurvey/results.php b/htdocs/opensurvey/results.php index bb50018291b..92cb723a104 100644 --- a/htdocs/opensurvey/results.php +++ b/htdocs/opensurvey/results.php @@ -1053,7 +1053,7 @@ if (empty($testligneamodifier)) { } // Affichage du bouton de formulaire pour inscrire un nouvel utilisateur dans la base - print ''."\n"; + print ''."\n"; print ''."\n"; } diff --git a/htdocs/public/opensurvey/studs.php b/htdocs/public/opensurvey/studs.php index ad5339deb41..37051fda92d 100644 --- a/htdocs/public/opensurvey/studs.php +++ b/htdocs/public/opensurvey/studs.php @@ -720,7 +720,7 @@ if ($ligneamodifier < 0 && (!isset($_SESSION['nom']))) { } // Show button to add a new line into database - print ''."\n"; + print ''."\n"; print ''."\n"; }