From e444abc3d149f181ca54050c609ed8cdff5a8745 Mon Sep 17 00:00:00 2001 From: MDW Date: Sat, 31 Jan 2026 20:28:26 +0100 Subject: [PATCH] Qual: Translate French comments to English ("niveau") (#37041) Translate French comments to English (comments with "niveau") --- htdocs/admin/menus/edit.php | 4 ++-- .../admin/tools/ui/class/documentation.class.php | 3 ++- htdocs/core/class/CSMSFile.class.php | 4 ++-- htdocs/core/modules/modAgenda.class.php | 16 ++++++++-------- htdocs/core/modules/modOauth.class.php | 16 ++++++++-------- htdocs/core/modules/modPrinting.class.php | 15 ++++++++------- htdocs/core/modules/modReceiptPrinter.class.php | 15 ++++++++------- 7 files changed, 38 insertions(+), 35 deletions(-) diff --git a/htdocs/admin/menus/edit.php b/htdocs/admin/menus/edit.php index c2c2924c830..ae19c20f4cd 100644 --- a/htdocs/admin/menus/edit.php +++ b/htdocs/admin/menus/edit.php @@ -3,7 +3,7 @@ * Copyright (C) 2007-2012 Laurent Destailleur * Copyright (C) 2009-2011 Regis Houssin * Copyright (C) 2016 Meziane Sof - * Copyright (C) 2024 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 @@ -513,7 +513,7 @@ if ($action == 'create') { print ', '.$langs->trans("Example").': fk_mainmenu=abc&fk_leftmenu=def'; print ''; - // Niveau + // Level //print ''.$langs->trans('Level').''.$menu->level.''.$langs->trans('DetailLevel').''; // Title diff --git a/htdocs/admin/tools/ui/class/documentation.class.php b/htdocs/admin/tools/ui/class/documentation.class.php index 341ee034f84..cc145d3c5db 100644 --- a/htdocs/admin/tools/ui/class/documentation.class.php +++ b/htdocs/admin/tools/ui/class/documentation.class.php @@ -1,6 +1,7 @@ * Copyright (C) 2024 Frédéric France + * Copyright (C) 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 @@ -441,7 +442,7 @@ class Documentation $i = 0; $menu_entry = []; if (!empty($this->view)) { - // On se place au bon niveau + // Set the correct menu depth (level) foreach ($this->view as $view) { $i++; if ($i == 1) { diff --git a/htdocs/core/class/CSMSFile.class.php b/htdocs/core/class/CSMSFile.class.php index cf03bf06c78..372a8dba58f 100644 --- a/htdocs/core/class/CSMSFile.class.php +++ b/htdocs/core/class/CSMSFile.class.php @@ -3,7 +3,7 @@ * Copyright (C) 2003 Jean-Louis Bergamo * Copyright (C) 2004-2012 Laurent Destailleur * Copyright (C) 2005-2009 Regis Houssin - * Copyright (C) 2024 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 @@ -246,7 +246,7 @@ class CSMSFile dol_syslog("CSMSFile::sendfile: ".$this->error, LOG_WARNING); } - error_reporting($errorlevel); // Reactive niveau erreur origine + error_reporting($errorlevel); // Restore original error reporting level return $res; } diff --git a/htdocs/core/modules/modAgenda.class.php b/htdocs/core/modules/modAgenda.class.php index c0cf8d95946..0c33af61b37 100644 --- a/htdocs/core/modules/modAgenda.class.php +++ b/htdocs/core/modules/modAgenda.class.php @@ -8,7 +8,7 @@ * Copyright (C) 2013 Cedric Gross * Copyright (C) 2015 Bahfir Abbes * Copyright (C) 2017 Juanjo Menent - * Copyright (C) 2024 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 @@ -126,18 +126,18 @@ class modAgenda extends DolibarrModules 1 => array('label' => 'SendSmsReminders', 'jobtype' => 'method', 'class' => 'comm/action/class/actioncomm.class.php', 'objectname' => 'ActionComm', 'method' => 'sendSmsReminder', 'parameters' => '', 'comment' => 'SendSmsReminder', 'frequency' => 5, 'unitfrequency' => 60, 'priority' => 10, 'status' => 1, 'test' => 'isModEnabled("agenda")', 'datestart' => $datestart), ); - // Permissions + // Rights //------------ $this->rights = array(); $this->rights_class = 'agenda'; $r = 0; - // $this->rights[$r][0] Id permission (unique tous modules confondus) - // $this->rights[$r][1] Libelle par default si traduction de cle "PermissionXXX" non trouvee (XXX = Id permission) - // $this->rights[$r][2] Non utilise - // $this->rights[$r][3] 1=Permis par default, 0=Non permis par default - // $this->rights[$r][4] Niveau 1 pour nommer permission dans code - // $this->rights[$r][5] Niveau 2 pour nommer permission dans code + // $this->rights[$r][0] Id for right (unique across all modules) + // $this->rights[$r][1] Default label if the translation key "PermissionXXX" is not found (XXX = Id for right) + // $this->rights[$r][2] Not used + // $this->rights[$r][3] 1=Authorised by default, 0=Denied by default + // $this->rights[$r][4] Level 1 to name right in the code + // $this->rights[$r][5] Level 2 to name right in the code // $r++; $this->rights[$r][0] = 2401; diff --git a/htdocs/core/modules/modOauth.class.php b/htdocs/core/modules/modOauth.class.php index 78a4098f4e5..738e8cf042c 100644 --- a/htdocs/core/modules/modOauth.class.php +++ b/htdocs/core/modules/modOauth.class.php @@ -1,7 +1,7 @@ * Copyright (C) 2015-2025 Frédéric France - * Copyright (C) 2024 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 @@ -82,17 +82,17 @@ class modOauth extends DolibarrModules // Boxes $this->boxes = array(); - // Permissions + // Rights $this->rights = array(); $this->rights_class = 'oauth'; $r = 0; - // $this->rights[$r][0] Id permission (unique tous modules confondus) - // $this->rights[$r][1] Libelle par default si traduction de cle "PermissionXXX" non trouvee (XXX = Id permission) - // $this->rights[$r][2] Non utilise - // $this->rights[$r][3] 1=Permis par default, 0=Non permis par default - // $this->rights[$r][4] Niveau 1 pour nommer permission dans code - // $this->rights[$r][5] Niveau 2 pour nommer permission dans code + // $this->rights[$r][0] Id for right (unique across all modules) + // $this->rights[$r][1] Default label if the translation key "PermissionXXX" is not found (XXX = Id for right) + // $this->rights[$r][2] Not used + // $this->rights[$r][3] 1=Authorised by default, 0=Denied by default + // $this->rights[$r][4] Level 1 to name right in the code + // $this->rights[$r][5] Level 2 to name right in the code /*$r++; $this->rights[$r][0] = 66000; diff --git a/htdocs/core/modules/modPrinting.class.php b/htdocs/core/modules/modPrinting.class.php index 84f55d40afd..862c7868462 100644 --- a/htdocs/core/modules/modPrinting.class.php +++ b/htdocs/core/modules/modPrinting.class.php @@ -1,6 +1,7 @@ * Copyright (C) 2014-2025 Frédéric France + * Copyright (C) 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 @@ -80,17 +81,17 @@ class modPrinting extends DolibarrModules // Boxes $this->boxes = array(); - // Permissions + // Rights $this->rights = array(); $this->rights_class = 'printing'; $r = 0; - // $this->rights[$r][0] Id permission (unique tous modules confondus) - // $this->rights[$r][1] Libelle par default si traduction de cle "PermissionXXX" non trouvee (XXX = Id permission) - // $this->rights[$r][2] Non utilise - // $this->rights[$r][3] 1=Permis par default, 0=Non permis par default - // $this->rights[$r][4] Niveau 1 pour nommer permission dans code - // $this->rights[$r][5] Niveau 2 pour nommer permission dans code + // $this->rights[$r][0] Id for right (unique across all modules) + // $this->rights[$r][1] Default label if the translation key "PermissionXXX" is not found (XXX = Id for right) + // $this->rights[$r][2] Not used + // $this->rights[$r][3] 1=Authorised by default, 0=Denied by default + // $this->rights[$r][4] Level 1 to name right in the code + // $this->rights[$r][5] Level 2 to name right in the code $r++; $this->rights[$r][0] = 64001; diff --git a/htdocs/core/modules/modReceiptPrinter.class.php b/htdocs/core/modules/modReceiptPrinter.class.php index dff81ef3556..8b725844ff4 100644 --- a/htdocs/core/modules/modReceiptPrinter.class.php +++ b/htdocs/core/modules/modReceiptPrinter.class.php @@ -1,6 +1,7 @@ * Copyright (C) 2015-2025 Frédéric France + * Copyright (C) 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 @@ -81,17 +82,17 @@ class modReceiptPrinter extends DolibarrModules // Boxes $this->boxes = array(); - // Permissions + // Rights $this->rights = array(); $this->rights_class = 'receiptprinter'; $r = 0; - // $this->rights[$r][0] Id permission (unique tous modules confondus) - // $this->rights[$r][1] Libelle par default si traduction de cle "PermissionXXX" non trouvee (XXX = Id permission) - // $this->rights[$r][2] Non utilise - // $this->rights[$r][3] 1=Permis par default, 0=Non permis par default - // $this->rights[$r][4] Niveau 1 pour nommer permission dans code - // $this->rights[$r][5] Niveau 2 pour nommer permission dans code + // $this->rights[$r][0] Id for right (unique across all modules) + // $this->rights[$r][1] Default label if the translation key "PermissionXXX" is not found (XXX = Id for right) + // $this->rights[$r][2] Not used + // $this->rights[$r][3] 1=Authorised by default, 0=Denied by default + // $this->rights[$r][4] Level 1 to name right in the code + // $this->rights[$r][5] Level 2 to name right in the code $r++; $this->rights[$r][0] = 67001;