From 3fef69e9bf6d4d2e8447174c668aa831dae28f8a Mon Sep 17 00:00:00 2001 From: MDW Date: Fri, 30 Jan 2026 00:37:23 +0100 Subject: [PATCH] Qual: Update french comments with 'nombre' (#37032) Update french comments with 'nombre' in their phrasing Co-authored-by: Laurent Destailleur --- htdocs/adherents/list.php | 4 ++-- htdocs/admin/external_rss.php | 4 ++-- .../deplacement/class/deplacementstats.class.php | 8 ++++---- htdocs/core/class/stats.class.php | 3 +-- htdocs/core/modules/mailings/modules_mailings.php | 12 ++++++------ htdocs/fichinter/card-rec.php | 2 +- htdocs/opensurvey/wizard/choix_autre.php | 4 ++-- htdocs/opensurvey/wizard/choix_date.php | 2 +- htdocs/ticket/class/ticketstats.class.php | 6 +++--- 9 files changed, 22 insertions(+), 23 deletions(-) diff --git a/htdocs/adherents/list.php b/htdocs/adherents/list.php index d396f734ff4..3f1437ad3db 100644 --- a/htdocs/adherents/list.php +++ b/htdocs/adherents/list.php @@ -6,7 +6,7 @@ * Copyright (C) 2014-2016 Juanjo Menent * Copyright (C) 2018-2024 Alexandre Spangaro * Copyright (C) 2021-2025 Frédéric France - * Copyright (C) 2024-2025 MDW + * Copyright (C) 2024-2026 MDW * Copyright (C) 2024 Benjamin Falière * Copyright (C) 2024 Alexandre Spangaro * @@ -503,7 +503,7 @@ if ($search_filter == 'outofdate') { $sql .= " AND (datefin < '".$db->idate($now)."')"; } if ($search_status != '') { - // Peut valoir un nombre ou liste de nombre separates par virgules + // Can be a number or comma separated list of numbers $sql .= " AND d.statut in (".$db->sanitize($db->escape($search_status)).")"; } if ($search_morphy != '' && $search_morphy != '-1') { diff --git a/htdocs/admin/external_rss.php b/htdocs/admin/external_rss.php index 271198e9268..17e8602a06a 100644 --- a/htdocs/admin/external_rss.php +++ b/htdocs/admin/external_rss.php @@ -7,7 +7,7 @@ * Copyright (C) 2005-2011 Regis Houssin * Copyright (C) 2011 Juanjo Menent * Copyright (C) 2020 Tobias Sekan - * Copyright (C) 2024-2025 MDW + * Copyright (C) 2024-2026 MDW * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify @@ -61,7 +61,7 @@ if (!$user->admin) { */ $error = 0; -// positionne la variable pour le nombre de rss externes +// Set the variable for the number of external RSS $sql = "SELECT ".$db->decrypt('name')." as name FROM ".MAIN_DB_PREFIX."const"; $sql .= " WHERE ".$db->decrypt('name')." LIKE 'EXTERNAL_RSS_URLRSS_%'"; //print $sql; diff --git a/htdocs/compta/deplacement/class/deplacementstats.class.php b/htdocs/compta/deplacement/class/deplacementstats.class.php index da2f0545ddc..1ce0d699643 100644 --- a/htdocs/compta/deplacement/class/deplacementstats.class.php +++ b/htdocs/compta/deplacement/class/deplacementstats.class.php @@ -2,7 +2,7 @@ /* Copyright (C) 2003 Rodolphe Quiedeville * Copyright (c) 2005-2008 Laurent Destailleur * Copyright (C) 2005-2009 Regis Houssin - * Copyright (C) 2024-2025 MDW + * Copyright (C) 2024-2026 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -92,9 +92,9 @@ class DeplacementStats extends Stats /** - * Renvoie le nombre de facture par annee + * Return the number of invoices per year * - * @return array Array of nb each year + * @return array Array of nb each year */ public function getNbByYear() { @@ -108,7 +108,7 @@ class DeplacementStats extends Stats /** - * Renvoie le nombre de facture par mois pour une annee donnee + * Return the number of invoices for the given year * * @param int $year Year to scan * @param int $format 0=Label of abscissa is a translated text, 1=Label of abscissa is month number, 2=Label of abscissa is first letter of month diff --git a/htdocs/core/class/stats.class.php b/htdocs/core/class/stats.class.php index df830b8c3c9..c80433f1b4a 100644 --- a/htdocs/core/class/stats.class.php +++ b/htdocs/core/class/stats.class.php @@ -3,7 +3,7 @@ * Copyright (c) 2008-2013 Laurent Destailleur * Copyright (C) 2012 Regis Houssin * Copyright (C) 2012 Marcos García - * Copyright (C) 2024 MDW + * Copyright (C) 2024-2026 MDW * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify @@ -483,7 +483,6 @@ abstract class Stats // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore /** - * Renvoie le nombre de documents par mois pour une annee donnee * Return number of documents per month for a given year * * @param int $year Year diff --git a/htdocs/core/modules/mailings/modules_mailings.php b/htdocs/core/modules/mailings/modules_mailings.php index 2a888c09f51..fb32eb418f0 100644 --- a/htdocs/core/modules/mailings/modules_mailings.php +++ b/htdocs/core/modules/mailings/modules_mailings.php @@ -2,7 +2,7 @@ /* Copyright (C) 2003-2004 Rodolphe Quiedeville * Copyright (C) 2004-2008 Laurent Destailleur * Copyright (C) 2004 Eric Seigne - * Copyright (C) 2024-2025 MDW + * Copyright (C) 2024-2026 MDW * Copyright (C) 2025 Frédéric France * * This program is free software; you can redistribute it and/or modify @@ -128,7 +128,7 @@ class MailingTargets // This can't be abstract as it is used for some method } /** - * Retourne nombre de destinataires + * Return the number of recipients * * @param string $sql Sql request to count * @return int|string Nb of recipient, or <0 if error, or '' if NA @@ -161,15 +161,15 @@ class MailingTargets // This can't be abstract as it is used for some method // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** - * Met a jour nombre de destinataires + * Update the number of recipients * - * @param int $mailing_id Id of emailing - * @return int Return integer < 0 si erreur, nb destinataires si ok + * @param int $mailing_id Id of emailing + * @return int Return integer < 0 if error, otherwise number of recipients */ public function update_nb($mailing_id) { // phpcs:enable - // Mise a jour nombre de destinataire dans table des mailings + // Update the number of recipients in the mailing table $sql = "SELECT COUNT(*) nb FROM ".$this->db->prefix()."mailing_cibles"; $sql .= " WHERE fk_mailing = ".((int) $mailing_id); $result = $this->db->query($sql); diff --git a/htdocs/fichinter/card-rec.php b/htdocs/fichinter/card-rec.php index 9040988fd5b..9c89c7762de 100644 --- a/htdocs/fichinter/card-rec.php +++ b/htdocs/fichinter/card-rec.php @@ -221,7 +221,7 @@ if ($action == 'add' && $permissiontoadd) { $newinter->note_private = $object->note_private; $newinter->note_public = $object->note_public; - // on créer un nouvelle intervention + // Create a new intervention $extrafields->fetch_name_optionals_label($newinter->table_element); $array_options = $extrafields->getOptionalsFromPost($newinter->table_element); diff --git a/htdocs/opensurvey/wizard/choix_autre.php b/htdocs/opensurvey/wizard/choix_autre.php index b0d10aed8cc..98d54b76355 100644 --- a/htdocs/opensurvey/wizard/choix_autre.php +++ b/htdocs/opensurvey/wizard/choix_autre.php @@ -1,7 +1,7 @@ * Copyright (C) 2014 Marcos García - * Copyright (C) 2024 MDW + * Copyright (C) 2024-2026 MDW * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify @@ -62,7 +62,7 @@ if (isset($_SESSION["nbrecases"])) { $_SESSION["typecolonne".$i] = $arrayoftypecolumn[$i]; } } -} else { //nombre de cases par défaut +} else { // Number of cases by default $_SESSION["nbrecases"] = 5; } diff --git a/htdocs/opensurvey/wizard/choix_date.php b/htdocs/opensurvey/wizard/choix_date.php index 57c452c9721..abf80a14bc6 100644 --- a/htdocs/opensurvey/wizard/choix_date.php +++ b/htdocs/opensurvey/wizard/choix_date.php @@ -226,7 +226,7 @@ $arrayofjs = array(); $arrayofcss = array('/opensurvey/css/style.css'); llxHeader('', $langs->trans("OpenSurvey"), "", '', 0, 0, $arrayofjs, $arrayofcss); -//nombre de cases par défaut +// Number of cases by default if (!isset($_SESSION["nbrecaseshoraires"])) { $_SESSION["nbrecaseshoraires"] = 5; } elseif ((GETPOST('ajoutcases') || GETPOST("ajoutcases_y")) && $_SESSION["nbrecaseshoraires"] == 5) { diff --git a/htdocs/ticket/class/ticketstats.class.php b/htdocs/ticket/class/ticketstats.class.php index e3d09a07a32..202b86ed58f 100644 --- a/htdocs/ticket/class/ticketstats.class.php +++ b/htdocs/ticket/class/ticketstats.class.php @@ -1,6 +1,6 @@ - * Copyright (C) 2024-2025 MDW + * Copyright (C) 2024-2026 MDW * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify @@ -79,9 +79,9 @@ class TicketStats extends Stats } /** - * Renvoie le nombre de tickets par annee + * Return the number of tickets per year * - * @return array Array of values + * @return array Array of values */ public function getNbByYear() {