From 669b398a06852fb2a6c28257a6216582fb4b95dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 28 Jun 2026 13:05:13 +0200 Subject: [PATCH] FIX: Translate French code comments to English in scripts/user --- scripts/user/migrate_picture_path.php | 4 ++-- scripts/user/sync_groups_ldap2dolibarr.php | 12 ++++++------ scripts/user/sync_users_ldap2dolibarr.php | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/scripts/user/migrate_picture_path.php b/scripts/user/migrate_picture_path.php index 54ba0ccf8b3..5c72162d2b4 100755 --- a/scripts/user/migrate_picture_path.php +++ b/scripts/user/migrate_picture_path.php @@ -3,7 +3,7 @@ /* * Copyright (C) 2007-2016 Laurent Destailleur * Copyright (C) 2015 Jean Heimburger - * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024-2026 Frédéric France * Copyright (C) 2025 MDW * * This program is free software; you can redistribute it and/or modify @@ -114,7 +114,7 @@ function migrate_user_filespath($u) { global $conf; - // Les fichiers implodets des users sont toujours sur l'entité 1 + // User files are always stored on entity 1 $dir = $conf->user->dir_output; $origin = $dir.'/'.get_exdir($u->id, 2, 0, 0, $u, 'user'); $destin = $dir.'/'.$u->id; diff --git a/scripts/user/sync_groups_ldap2dolibarr.php b/scripts/user/sync_groups_ldap2dolibarr.php index d81f27179af..37d3d13113c 100755 --- a/scripts/user/sync_groups_ldap2dolibarr.php +++ b/scripts/user/sync_groups_ldap2dolibarr.php @@ -4,7 +4,7 @@ * Copyright (C) 2005 Rodolphe Quiedeville * Copyright (C) 2006-2012 Laurent Destailleur * Copyright (C) 2013 Maxime Kohlhaas - * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024-2026 Frédéric France * Copyright (C) 2025 MDW * * This program is free software; you can redistribute it and/or modify @@ -198,11 +198,11 @@ if ($result >= 0) { if ($tmpkey === 'count') { // @phpstan-ignore-line continue; } - if (empty($userList[$userdn])) { // Récupération de l'utilisateur - // Schéma rfc2307: les membres sont listés dans l'attribut memberUid sous form de login uniquement + if (empty($userList[$userdn])) { // Fetch the user + // rfc2307 schema: members are listed in the memberUid attribute as login names only if (getDolGlobalString('LDAP_GROUP_FIELD_GROUPMEMBERS') === 'memberUid') { $userKey = array($userdn); - } else { // Pour les autres schémas, les membres sont listés sous forme de DN completes + } else { // For other schemas, members are listed as full DNs $userFilter = explode(',', $userdn); $userKey = $ldap->getAttributeValues('('.$userFilter[0].')', getDolGlobalString('LDAP_KEY_USERS')); } @@ -213,9 +213,9 @@ if ($result >= 0) { $fuser = new User($db); if (getDolGlobalString('LDAP_KEY_USERS') == getDolGlobalString('LDAP_FIELD_SID')) { - $fuser->fetch(0, '', $userKey[0]); // Chargement du user concerné par le SID + $fuser->fetch(0, '', $userKey[0]); // Load the user matched by SID } elseif (getDolGlobalString('LDAP_KEY_USERS') == getDolGlobalString('LDAP_FIELD_LOGIN')) { - $fuser->fetch(0, $userKey[0]); // Chargement du user concerné par le login + $fuser->fetch(0, $userKey[0]); // Load the user matched by login } $userList[$userdn] = $fuser; diff --git a/scripts/user/sync_users_ldap2dolibarr.php b/scripts/user/sync_users_ldap2dolibarr.php index 451c7b1d86c..1576d9b94c9 100755 --- a/scripts/user/sync_users_ldap2dolibarr.php +++ b/scripts/user/sync_users_ldap2dolibarr.php @@ -3,7 +3,7 @@ /** * Copyright (C) 2005 Rodolphe Quiedeville * Copyright (C) 2006-2012 Laurent Destailleur - * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024-2026 Frédéric France * Copyright (C) 2025 MDW * * This program is free software; you can redistribute it and/or modify @@ -204,9 +204,9 @@ if ($result >= 0) { $fuser = new User($db); if (getDolGlobalString('LDAP_KEY_USERS') == getDolGlobalString('LDAP_FIELD_SID')) { - $fuser->fetch(0, '', $ldapuser[getDolGlobalString('LDAP_KEY_USERS')]); // Chargement du user concerné par le SID + $fuser->fetch(0, '', $ldapuser[getDolGlobalString('LDAP_KEY_USERS')]); // Load the user matched by SID } elseif (getDolGlobalString('LDAP_KEY_USERS') == getDolGlobalString('LDAP_FIELD_LOGIN')) { - $fuser->fetch(0, $ldapuser[getDolGlobalString('LDAP_KEY_USERS')]); // Chargement du user concerné par le login + $fuser->fetch(0, $ldapuser[getDolGlobalString('LDAP_KEY_USERS')]); // Load the user matched by login } // Propriete membre