Qual: Translate French comments to English ("niveau") (#37041)

Translate French comments to English (comments with "niveau")
This commit is contained in:
MDW 2026-01-31 20:28:26 +01:00 committed by GitHub
parent 1ac1cbf8de
commit e444abc3d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 38 additions and 35 deletions

View file

@ -3,7 +3,7 @@
* Copyright (C) 2007-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2009-2011 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2016 Meziane Sof <virtualsof@yahoo.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024-2026 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
@ -513,7 +513,7 @@ if ($action == 'create') {
print ', <span class="opacitymedium">'.$langs->trans("Example").': fk_mainmenu=abc&fk_leftmenu=def</span>';
print '</td></tr>';
// Niveau
// Level
//print '<tr><td>'.$langs->trans('Level').'</td><td>'.$menu->level.'</td><td>'.$langs->trans('DetailLevel').'</td></tr>';
// Title

View file

@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2024 Anthony Damhet <a.damhet@progiseize.fr>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2026 MDW <mdeweerd@users.noreply.github.com>
*
* 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) {

View file

@ -3,7 +3,7 @@
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024-2026 MDW <mdeweerd@users.noreply.github.com>
*
* 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;
}

View file

@ -8,7 +8,7 @@
* Copyright (C) 2013 Cedric Gross <c.gross@kreiz-it.fr>
* Copyright (C) 2015 Bahfir Abbes <bafbes@gmail.com>
* Copyright (C) 2017 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024-2026 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
*
* 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;

View file

@ -1,7 +1,7 @@
<?php
/* Copyright (C) 2014-2015 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2015-2025 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024-2026 MDW <mdeweerd@users.noreply.github.com>
*
* 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;

View file

@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2014-2015 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2014-2025 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2026 MDW <mdeweerd@users.noreply.github.com>
*
* 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;

View file

@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2014-2015 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2015-2025 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2026 MDW <mdeweerd@users.noreply.github.com>
*
* 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;