FIX: Translate French code comments to English in accountancy, admin and ai modules
This commit is contained in:
parent
54a5899a7f
commit
fc3956242c
5 changed files with 21 additions and 20 deletions
|
|
@ -9,7 +9,7 @@
|
|||
* Copyright (C) 2022 Lionel Vessiller <lvessiller@open-dsi.fr>
|
||||
* Copyright (C) 2013-2017 Olivier Geffroy <jeff@jeffinfo.com>
|
||||
* Copyright (C) 2017 Elarifr. Ari Elbaz <github@accedinfo.com>
|
||||
* Copyright (C) 2017-2024 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2017-2026 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2017 André Schild <a.schild@aarboard.ch>
|
||||
* Copyright (C) 2020 Guillaume Alexandre <guillaume@tag-info.fr>
|
||||
* Copyright (C) 2022 Joachim Kueter <jkueter@gmx.de>
|
||||
|
|
@ -2242,7 +2242,7 @@ class AccountancyExport
|
|||
foreach ($objectLines as $line) {
|
||||
// TYPE C
|
||||
if ($last_codeinvoice != $line->doc_ref) {
|
||||
//recherche societe en fonction de son code client
|
||||
//search company by customer code
|
||||
$sql = "SELECT code_client, fk_forme_juridique, nom, address, zip, town, fk_pays, phone, siret FROM ".MAIN_DB_PREFIX."societe";
|
||||
$sql .= " WHERE code_client = '".$this->db->escape($line->thirdparty_code)."'";
|
||||
$resql = $this->db->query($sql);
|
||||
|
|
@ -2662,22 +2662,22 @@ class AccountancyExport
|
|||
} else {
|
||||
$tab[] = substr(length_accountg($line->numero_compte), 0, 15);
|
||||
}
|
||||
//Libellé Auto
|
||||
//Auto label
|
||||
$tab[] = "";
|
||||
//print '"'.dol_trunc(str_replace('"', '', $line->label_operation),40,'right','UTF-8',1).'"';
|
||||
//Libellé manual
|
||||
//Manual label
|
||||
$tab[] = dol_trunc(str_replace('"', '', $invoice_ref . (!empty($company_name) ? ' - ' : '') . $company_name), 40, 'right', 'UTF-8', 1);
|
||||
//Numéro de pièce
|
||||
//Document number
|
||||
$tab[] = dol_trunc(str_replace('"', '', (string) $line->piece_num), 10, 'right', 'UTF-8', 1);
|
||||
//Devise
|
||||
//Currency
|
||||
$tab[] = 'EUR';
|
||||
//Amount
|
||||
$tab[] = price2num(abs($line->debit - $line->credit));
|
||||
//Sens
|
||||
//Direction
|
||||
$tab[] = $line->sens;
|
||||
//Code lettrage
|
||||
//Matching code
|
||||
$tab[] = "";
|
||||
//Date Echéance
|
||||
//Due date
|
||||
$tab[] = $date_echeance;
|
||||
|
||||
$output = implode($separator, $tab).$end_line;
|
||||
|
|
@ -2768,10 +2768,10 @@ class AccountancyExport
|
|||
// Convert the UTF-8 string in latin9
|
||||
$tab[] = mb_convert_encoding(str_replace(' - Compte auxiliaire', '', $line->label_operation), "Windows-1252", 'UTF-8');
|
||||
|
||||
//Calcul de la longueur des numéros de comptes
|
||||
//Calculate account number length
|
||||
$taille_numero = strlen(length_accountg($line->numero_compte));
|
||||
|
||||
//Création du numéro de client et fournisseur générique
|
||||
//Build generic customer and supplier account number
|
||||
$numero_cpt_client = '411';
|
||||
$numero_cpt_fourn = '401';
|
||||
for ($i = 1; $i <= ($taille_numero - 3); $i++) {
|
||||
|
|
@ -2779,7 +2779,7 @@ class AccountancyExport
|
|||
$numero_cpt_fourn .= '0';
|
||||
}
|
||||
|
||||
//Création des comptes auxiliaire des clients et fournisseur
|
||||
//Build auxiliary accounts for customers and suppliers
|
||||
if (length_accountg($line->numero_compte) == $numero_cpt_client || length_accountg($line->numero_compte) == $numero_cpt_fourn) {
|
||||
$tab[] = rtrim(length_accounta($line->subledger_account), "0");
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* Copyright (C) 2009-2012 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2013 Juanjo Menent <jmenent@2byte.es>
|
||||
* Copyright (C) 2016 Jonathan TISSEAU <jonathan.tisseau@86dev.fr>
|
||||
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2024-2026 Frédéric France <frederic.france@free.fr>
|
||||
*
|
||||
* 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
|
||||
|
|
@ -74,7 +74,7 @@ if (preg_match('/^mac/i', PHP_OS)) {
|
|||
}
|
||||
|
||||
|
||||
//$wikihelp = 'EN:Setup_EMails|FR:Paramétrage_EMails|ES:Configuración_EMails';
|
||||
//$wikihelp = 'EN:Setup_EMails|FR:Parametrage_EMails|ES:Configuracion_EMails';
|
||||
$wikihelp = '';
|
||||
llxHeader('', $langs->trans("Setup"), $wikihelp, '', 0, 0, '', '', '', 'mod-admin page-mails_ingoing');
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
|
||||
* Copyright (C) 2015 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
||||
* Copyright (C) 2018 Nicolas ZABOURI <info@inovea-conseil.com>
|
||||
* Copyright (C) 2021-2025 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2021-2026 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
* Copyright (C) 2026 Charlene Benke <charlene@patas-monkey.com>
|
||||
*
|
||||
|
|
@ -1663,7 +1663,7 @@ if ($mode == 'deploy') {
|
|||
});
|
||||
});
|
||||
</script>'."\n";
|
||||
// MAX_FILE_SIZE doit précéder le champ input de type file
|
||||
// MAX_FILE_SIZE must come before the file input field
|
||||
print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (C) 2012 J. Fernando Lagrange <fernando@demo-tic.org>
|
||||
* Copyright (C) 2015 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
||||
* Copyright (C) 2023 Eric Seigne <eric.seigne@cap-rel.fr>
|
||||
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2024-2026 Frédéric France <frederic.france@free.fr>
|
||||
*
|
||||
* 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
|
||||
|
|
@ -118,7 +118,7 @@ if (empty($instructions)) {
|
|||
print dolPrintHTML($generatedContent); // Note that common HTML tags are NOT escaped (but a sanitization is done)
|
||||
} else {
|
||||
// We must not use dolPrintText because dolPrintText format data including accent in htmlentities for a HTML output. We need a non formatted output.
|
||||
//print dol_string_onlythesehtmltags('"Ça va" est une expression française et ceci une balise <a> html', 1, 1, 1);
|
||||
//print dol_string_onlythesehtmltags('"How are you" is a French expression and this is an HTML <a> tag', 1, 1, 1);
|
||||
print dol_string_onlythesehtmltags($generatedContent, 1, 1, 1);
|
||||
//print dol_string_nohtmltag($generatedContent);
|
||||
}
|
||||
|
|
@ -134,7 +134,7 @@ if (empty($instructions)) {
|
|||
print dolPrintHTML($generatedContent);
|
||||
} else {
|
||||
// We must not use dolPrintText because dolPrintText format data including accent in htmlentities for a HTML output. We need a non formatted output.
|
||||
//print dol_string_onlythesehtmltags('"Ça va" est une expression française et ceci une balise <a> html', 1, 1, 1);
|
||||
//print dol_string_onlythesehtmltags('"How are you" is a French expression and this is an HTML <a> tag', 1, 1, 1);
|
||||
print dol_string_onlythesehtmltags($generatedContent, 1, 1, 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
/* Copyright (C) 2026 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2026 Nick Fragoulis
|
||||
* Copyright (C) 2026 Frédéric France <frederic.france@free.fr>
|
||||
*
|
||||
* 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
|
||||
|
|
@ -659,7 +660,7 @@ class ToolProducts extends McpTool
|
|||
*
|
||||
* @param float $virtual_stock Current virtual stock (Physical + Incoming - Outgoing).
|
||||
* @param float $min_stock_alert Minimum stock alert level (Seuil alerte).
|
||||
* @param float $desired_stock Desired stock level (Stock désiré).
|
||||
* @param float $desired_stock Desired stock level.
|
||||
* @param float $dailyBurnRate Estimated daily consumption rate.
|
||||
*
|
||||
* @return array{action: string, urgency: string, suggested_qty: int, reason: string}
|
||||
|
|
|
|||
Loading…
Reference in a new issue