diff --git a/htdocs/compta/tva/payments.php b/htdocs/compta/tva/payments.php index bb3bf856571..ed77045ef8a 100644 --- a/htdocs/compta/tva/payments.php +++ b/htdocs/compta/tva/payments.php @@ -6,7 +6,7 @@ * Copyright (C) 2011-2014 Juanjo Menent * Copyright (C) 2015 Jean-François Ferry * Copyright (C) 2021 Gauthier VERDOL - * 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 @@ -132,8 +132,8 @@ $sql .= " WHERE ptva.fk_tva = tva.rowid"; $sql .= " AND tva.entity = " . $conf->entity; if ($year > 0) { $sql .= " AND ("; - // Si period renseignee on l'utilise comme critere de date, sinon on prend date echeance, - // ceci afin d'etre compatible avec les cas ou la periode n'etait pas obligatoire + // If the date range is provided, use it as a lookup condition. Otherwise we use the due date. + // This ensures compatibilituy for the cases where the period is not mandatory $sql .= " (tva.datev IS NOT NULL AND tva.datev between '" . $db->idate(dol_get_first_day($year)) . "' AND '" . $db->idate(dol_get_last_day($year)) . "')"; $sql .= " OR (tva.datev IS NULL AND tva.datev between '" . $db->idate(dol_get_first_day($year)) . "' AND '" . $db->idate(dol_get_last_day($year)) . "')"; $sql .= ")"; diff --git a/htdocs/core/db/sqlite3.class.php b/htdocs/core/db/sqlite3.class.php index 8d41424dd1f..335c8f5e736 100644 --- a/htdocs/core/db/sqlite3.class.php +++ b/htdocs/core/db/sqlite3.class.php @@ -5,7 +5,7 @@ * Copyright (C) 2006 Andre Cianfarani * Copyright (C) 2005-2009 Regis Houssin * Copyright (C) 2015 Raphaël Doursenaud - * Copyright (C) 2024-2025 MDW + * Copyright (C) 2024-2026 MDW * Copyright (C) 2024-2025 Frédéric France * * This program is free software; you can redistribute it and/or modify @@ -429,25 +429,25 @@ class DoliDBSqlite3 extends DoliDB $descTable = $this->db->querySingle("SELECT sql FROM sqlite_master WHERE name='".$this->escape($tablename)."'"); - // 1- Renommer la table avec un nom temporaire + // 1- Rename the table to a temporary name $this->query("ALTER TABLE ".$tablename." RENAME TO tmp_".$tablename); - // 2- Recréer la table avec la contrainte ajoutée + // 2- Recreate the table with the new constraint - // on bricole la requete pour ajouter la contrainte + // Adjust the SQL request to add the constraint $descTable = substr($descTable, 0, strlen($descTable) - 1); $descTable .= ", CONSTRAINT ".$constraintname." FOREIGN KEY (".$localfields.") REFERENCES ".$foreignTable."(".$foreignFields.")"; - // fermeture de l'instruction + // Add closing parenthesis for SQL query $descTable .= ')'; - // Création proprement dite de la table + // Perform query to create the table $this->query($descTable); - // 3- Transférer les données + // 3- Copy the data from the temporary table (before adding constraint) $this->query("INSERT INTO ".$tablename." SELECT * FROM tmp_".$tablename); - // 4- Supprimer la table temporaire + // 4- Delete the original (now temporary) table $this->query("DROP TABLE tmp_".$tablename); // dummy statement @@ -571,7 +571,7 @@ class DoliDBSqlite3 extends DoliDB } return $resultset->fetchArray(SQLITE3_NUM); } else { - // si le curseur est un boolean on retourne la valeur 0 + // If the cursor is a boolean, return 0 return 0; } } @@ -753,7 +753,7 @@ class DoliDBSqlite3 extends DoliDB /** * Get last ID after an insert INSERT * - * @param string $tab Table name concerned by insert. Ne sert pas sous MySql mais requis pour compatibilite avec Postgresql + * @param string $tab Table name concerned by insert. Not used for mysql, but required for Postgresql * @param string $fieldid Field name * @return int Id of row */ diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php index f181218e143..bf8e82adc10 100644 --- a/htdocs/core/lib/company.lib.php +++ b/htdocs/core/lib/company.lib.php @@ -11,7 +11,7 @@ * Copyright (C) 2015 Raphaël Doursenaud * Copyright (C) 2017 Rui Strecht * Copyright (C) 2018-2024 Ferran Marcet - * 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 @@ -1982,7 +1982,7 @@ function show_actions_done($conf, $langs, $db, $filterobj, $objcon = null, $nopr } elseif (is_object($filterobj) && get_class($filterobj) == 'Contrat') { $sql .= ", " . MAIN_DB_PREFIX . "contrat as o"; } elseif (is_object($filterobj) && get_class($filterobj) == 'Expedition') { - $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "expedition as s ON a.fk_element = s.rowid AND a.elementtype = 'shipping'"; // Jointure sur la table des expéditions avec condition ON + $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "expedition as s ON a.fk_element = s.rowid AND a.elementtype = 'shipping'"; // JOIN on the shipping tame using the 'ON' constraint } elseif (is_object($filterobj) && get_class($filterobj) == 'Propal') { $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "propal as o ON a.fk_element = o.rowid AND a.elementtype = 'propal'"; } elseif ( diff --git a/htdocs/public/ticket/create_ticket.php b/htdocs/public/ticket/create_ticket.php index 4fb3a019bc8..7a5f8936d56 100644 --- a/htdocs/public/ticket/create_ticket.php +++ b/htdocs/public/ticket/create_ticket.php @@ -2,7 +2,7 @@ /* Copyright (C) 2013-2016 Jean-François FERRY * Copyright (C) 2016 Christophe Battarel * Copyright (C) 2023 Laurent Destailleur - * Copyright (C) 2024-2025 MDW + * Copyright (C) 2024-2026 MDW * Copyright (C) 2024-2025 Frédéric France * * This program is free software; you can redistribute it and/or modify @@ -207,8 +207,8 @@ if (empty($reshook)) { // Search company saved with email $searched_companies = $object->searchSocidByEmail($origin_email, 0); - // Chercher un contact existent avec cette address email - // Le premier contact trouvé est utilisé pour déterminer le contact suivi + // Look for an existing contact with this email address + // The first contact found is used to dtermine the tracking contact $contacts = $object->searchContactByEmail($origin_email); if (!is_array($contacts)) { $contacts = array(); diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index acd6bac9181..22a816460cf 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -2526,19 +2526,19 @@ td.showDragHandle { /* ============================================================================== */ -/* Styles de positionnement des zones */ +/* Zone positioning styles */ /* ============================================================================== */ #id-container { width: 100%; - display: table; /* DOL_XXX Empeche fonctionnement correct du scroll horizontal sur tableau, avec datatable ou CSS */ + display: table; /* DOL_XXX Prevents the correct operation of the horizontal scroll on a table, with datatable or CSS */ /* table-layout: fixed; */ } #id-right, #id-left { - display: table-cell; /* DOL_XXX Empeche fonctionnement correct du scroll horizontal sur tableau, avec datatable ou CSS */ + display: table-cell; /* DOL_XXX Prevents the correct operation of the horizontal scroll on a table, with datatable or CSS */ float: none; vertical-align: top; } @@ -2728,7 +2728,7 @@ div.vmenu, td.vmenu { .user-header { height: auto !important; color: var(--colortextbackhmenu); } #id-container { - display: table; /* DOL_XXX Empeche fonctionnement correct du scroll horizontal sur tableau, avec datatable ou CSS */ + display: table; /* DOL_XXX Prevents the correct operation of the horizontal scroll on a table, with datatable or CSS */ table-layout: fixed; width: 100%; }