From a2ec7bc0d2d1236ae4613878fd0fa43bc30abb42 Mon Sep 17 00:00:00 2001 From: MDW Date: Tue, 1 Oct 2024 21:11:51 +0200 Subject: [PATCH] Qual: Add codespell entries to catch some css typos # Qual: Add codespell entries to catch some css typos Added some codespell entries based on the observed typos in css tags --- dev/tools/codespell/codespell-dict.txt | 18 +++++++++++++++++- dev/tools/codespell/codespell-ignore.txt | 4 ++++ htdocs/accountancy/admin/categories.php | 3 ++- htdocs/accountancy/admin/journals_list.php | 2 +- htdocs/adherents/cartes/carte.php | 3 ++- htdocs/compta/prelevement/create.php | 12 ++++++------ htdocs/compta/prelevement/rejets.php | 3 ++- htdocs/compta/tva/payments.php | 2 +- htdocs/core/class/html.form.class.php | 2 +- htdocs/expensereport/card.php | 2 +- htdocs/expensereport/list.php | 2 +- htdocs/holiday/list.php | 3 ++- htdocs/imports/import.php | 8 ++++---- htdocs/margin/customerMargins.php | 3 ++- htdocs/product/stock/index.php | 3 ++- htdocs/product/stock/movement_card.php | 2 +- htdocs/product/stock/stockatdate.php | 3 ++- htdocs/projet/tasks/task.php | 2 +- 18 files changed, 52 insertions(+), 25 deletions(-) diff --git a/dev/tools/codespell/codespell-dict.txt b/dev/tools/codespell/codespell-dict.txt index 776e9c5413a01..d383feecddf48 100644 --- a/dev/tools/codespell/codespell-dict.txt +++ b/dev/tools/codespell/codespell-dict.txt @@ -19,12 +19,28 @@ dollibarr->dolibarr extrafeild->extrafield thoose->those # fiche->card -nempty->an empty, empty, not empty, +maringbottomonly->marginbottomonly +maxwidthonsmartpone->maxwidthonsmartphone +maxwidthonspartphone->maxwidthonsmartphone mot de passe->password +nempty->an empty, empty, not empty, +nocellnopadding->nocellnopadd +nodrap->nodrag, nodrop, not de passe->password nothtml->nohtml +notoptoleftroright->notoptoleftnoright +nowraponalls->nowraponall +oddevene->oddeven +oddseven->oddeven +opacitymediuem->opacitymedium +pictofiwedwidth->pictofixedwidth +pictofixedwith->pictofixedwidth shippin->shipping tableau de bord->state board tagret->target +tdoverflowmax100aaa->tdoverflowmax100 +tdoverlowmax200->tdoverflowmax200 thridparty->thirdparty +with100->width100 +with75->width75 wysiwig->wysiwyg diff --git a/dev/tools/codespell/codespell-ignore.txt b/dev/tools/codespell/codespell-ignore.txt index e0450f0c643b0..85595e74857a6 100644 --- a/dev/tools/codespell/codespell-ignore.txt +++ b/dev/tools/codespell/codespell-ignore.txt @@ -86,6 +86,10 @@ espace methode datee +# Translation keys +addin +amountin + # other blacklists confirmactionxxx diff --git a/htdocs/accountancy/admin/categories.php b/htdocs/accountancy/admin/categories.php index 749082f7c3e25..eb792e16238ac 100644 --- a/htdocs/accountancy/admin/categories.php +++ b/htdocs/accountancy/admin/categories.php @@ -3,6 +3,7 @@ * Copyright (C) 2017-2024 Alexandre Spangaro * Copyright (C) 2022 Laurent Destailleur * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024 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 @@ -164,7 +165,7 @@ } if (is_array($accountingcategory->lines_cptbk) && count($accountingcategory->lines_cptbk) > 0) { - print img_picto($langs->trans("AccountingAccount"), 'accounting_account', 'class="pictofixedwith"'); + print img_picto($langs->trans("AccountingAccount"), 'accounting_account', 'class="pictofixedwidth"'); print $form->multiselectarray('cpt_bk', $arraykeyvalue, GETPOST('cpt_bk', 'array'), 0, 0, '', 0, "80%", '', '', $langs->transnoentitiesnoconv("AddAccountFromBookKeepingWithNoCategories")); print ' '; } diff --git a/htdocs/accountancy/admin/journals_list.php b/htdocs/accountancy/admin/journals_list.php index f5bfce73aff4f..0f7c57339f54c 100644 --- a/htdocs/accountancy/admin/journals_list.php +++ b/htdocs/accountancy/admin/journals_list.php @@ -438,7 +438,7 @@ print ''; // Line to enter new values - print ''; + print ''; $obj = new stdClass(); // If data was already input, we define them in obj to populate input fields. diff --git a/htdocs/adherents/cartes/carte.php b/htdocs/adherents/cartes/carte.php index fe33407cf21f3..93201fcf2fc5c 100644 --- a/htdocs/adherents/cartes/carte.php +++ b/htdocs/adherents/cartes/carte.php @@ -3,6 +3,7 @@ * Copyright (C) 2003 Jean-Louis Bergamo * Copyright (C) 2006-2013 Laurent Destailleur * Copyright (C) 2024 Alexandre Spangaro + * Copyright (C) 2024 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 @@ -311,7 +312,7 @@ } asort($arrayoflabels); print $form->selectarray('model', $arrayoflabels, (GETPOST('model') ? GETPOST('model') : getDolGlobalString('ADHERENT_CARD_TYPE')), 1, 0, 0, '', 0, 0, 0, '', '', 1); -print '
'.$langs->trans("Login").': '; +print '
'.$langs->trans("Login").': '; print '
'; print ''; diff --git a/htdocs/compta/prelevement/create.php b/htdocs/compta/prelevement/create.php index 2c93b7020f0b3..6b0078bef26bd 100644 --- a/htdocs/compta/prelevement/create.php +++ b/htdocs/compta/prelevement/create.php @@ -328,14 +328,14 @@ print ''; print ''; } - print ''; + print ''; } else { $title = $langs->trans("CreateAll"); if ($type == 'bank-transfer') { $title = $langs->trans("CreateFileForPaymentByBankTransfer"); } print ''."\n"; - print ''."\n"; + print ''."\n"; } } else { if ($mysoc->isInEEC()) { @@ -343,18 +343,18 @@ if ($type == 'bank-transfer') { $title = $langs->trans("CreateSepaFileForPaymentByBankTransfer"); } - print ''.$title."\n"; + print ''.$title."\n"; if ($type != 'bank-transfer') { $title = $langs->trans("CreateForSepaRCUR"); - print ''.$title."\n"; + print ''.$title."\n"; } } else { $title = $langs->trans("CreateAll"); if ($type == 'bank-transfer') { $title = $langs->trans("CreateFileForPaymentByBankTransfer"); } - print ''.$title."\n"; + print ''.$title."\n"; } } } else { @@ -364,7 +364,7 @@ $titlefortab = $langs->transnoentitiesnoconv("PaymentByBankTransfers"); $title = $langs->trans("CreateFileForPaymentByBankTransfer"); } - print ''; + print ''; print $title; print "\n"; } diff --git a/htdocs/compta/prelevement/rejets.php b/htdocs/compta/prelevement/rejets.php index 1b6d440c62d23..88e9275956f9e 100644 --- a/htdocs/compta/prelevement/rejets.php +++ b/htdocs/compta/prelevement/rejets.php @@ -3,6 +3,7 @@ * Copyright (C) 2005-2009 Regis Houssin * Copyright (C) 2010-2013 Juanjo Menent * Copyright (C) 2005-2012 Laurent Destailleur + * Copyright (C) 2024 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 @@ -172,7 +173,7 @@ $thirdpartystatic->id = $obj->socid; $thirdpartystatic->name = $obj->name; - print ''.$thirdpartystatic->getNomUrl(1)."\n"; + print ''.$thirdpartystatic->getNomUrl(1)."\n"; } print ''.$rej->motifs[$obj->motif].''; diff --git a/htdocs/compta/tva/payments.php b/htdocs/compta/tva/payments.php index c403c4e9364c0..138f27a909dce 100644 --- a/htdocs/compta/tva/payments.php +++ b/htdocs/compta/tva/payments.php @@ -243,7 +243,7 @@ // Date payment $datep = $db->jdate($obj->datep); - print '' . dol_print_date($datep, 'day') . ''; + print '' . dol_print_date($datep, 'day') . ''; // Type payment $labelpaymenttype = ''; diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index a7c4484da8511..5c2129f02453d 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5808,7 +5808,7 @@ function(data) { $("body").html(data); jQuery("html,body,#id-container").removeC $formconfirm .= "\n\n"; if (empty($disableformtag)) { - $formconfirm .= '
' . "\n"; + $formconfirm .= '' . "\n"; } $formconfirm .= '' . "\n"; diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index 6cbb5f422f730..84575129068a5 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -1975,7 +1975,7 @@ $paymentexpensereportstatic->type_code = $objp->payment_code; $paymentexpensereportstatic->type_label = $objp->payment_type; - print ''; + print ''; print ''; print $paymentexpensereportstatic->getNomUrl(1); print ''; diff --git a/htdocs/expensereport/list.php b/htdocs/expensereport/list.php index 52bdd47471be6..ed9112c669cc1 100644 --- a/htdocs/expensereport/list.php +++ b/htdocs/expensereport/list.php @@ -606,7 +606,7 @@ // User if (!empty($arrayfields['user']['checked'])) { if ($user->hasRight('expensereport', 'readall') || $user->hasRight('expensereport', 'lire_tous')) { - print ''; + print ''; print $form->select_dolusers($search_user, 'search_user', 1, '', 0, '', '', 0, 0, 0, '', 0, '', 'maxwidth200'); print ''; } else { diff --git a/htdocs/holiday/list.php b/htdocs/holiday/list.php index 637368a42dfa7..80afa2b6dc129 100644 --- a/htdocs/holiday/list.php +++ b/htdocs/holiday/list.php @@ -6,6 +6,7 @@ * Copyright (C) 2019-2024 Frédéric France * Copyright (C) 2024 Benjamin Falière * Copyright (C) 2024 Alexandre Spangaro + * Copyright (C) 2024 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 @@ -815,7 +816,7 @@ // If we ask a dedicated card and not allow to see it, we force on user. if ($id && !$user->hasRight('holiday', 'readall') && !in_array($id, $childids)) { $langs->load("errors"); - print ''.$langs->trans("NotEnoughPermissions").''; + print ''.$langs->trans("NotEnoughPermissions").''; $result = 0; } elseif ($num > 0 && !empty($mysoc->country_id)) { // Lines diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php index 5f6caa42dbb24..ef9bdf9a17c28 100644 --- a/htdocs/imports/import.php +++ b/htdocs/imports/import.php @@ -2415,7 +2415,7 @@ function show_elem($fieldssource, $pos, $key) if (($pos && $pos > count($fieldssource)) && (!isset($fieldssource[$pos]["imported"]))) { // No fields /* print ''; - print ''; + print ''; print ''; print ''; print $langs->trans("NoFields"); @@ -2424,7 +2424,7 @@ function show_elem($fieldssource, $pos, $key) */ } elseif ($key == 'none') { // Empty line print ''; - print ''; + print ''; print ' '; print ''; print ''; @@ -2434,10 +2434,10 @@ function show_elem($fieldssource, $pos, $key) } else { // Print field of source file print ''; - print ''; + print ''; // The image must have the class 'boxhandle' because it's value used in DOM draggable objects to define the area used to catch the full object //print img_picto($langs->trans("MoveField", $pos), 'grip_title', 'class="boxhandle" style="cursor:move;"'); - print img_picto($langs->trans("Column").' '.num2Alpha($pos - 1), 'file', 'class="pictofixedwith"'); + print img_picto($langs->trans("Column").' '.num2Alpha($pos - 1), 'file', 'class="pictofixedwidth"'); print ''; if (isset($fieldssource[$pos]['imported']) && $fieldssource[$pos]['imported'] == false) { print ''; diff --git a/htdocs/margin/customerMargins.php b/htdocs/margin/customerMargins.php index 30e4346f94975..fe2854b6feec9 100644 --- a/htdocs/margin/customerMargins.php +++ b/htdocs/margin/customerMargins.php @@ -1,6 +1,7 @@ * Copyright (C) 2014 Ferran Marcet + * Copyright (C) 2024 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 @@ -153,7 +154,7 @@ } print ''.$langs->trans('ProductOrService').''; -print ''; +print ''; print img_picto('', 'product').$form->multiselectarray('products', $TProducts, $TSelectedProducts, 0, 0, 'minwidth500'); print ''; diff --git a/htdocs/product/stock/index.php b/htdocs/product/stock/index.php index 1c40346aa7688..ef400c8a2fabd 100644 --- a/htdocs/product/stock/index.php +++ b/htdocs/product/stock/index.php @@ -4,6 +4,7 @@ * Copyright (C) 2005-2009 Regis Houssin * Copyright (C) 2019 Nicolas ZABOURI * Copyright (C) 2020 Tobias Sekan + * Copyright (C) 2024 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 @@ -68,7 +69,7 @@ print ''; print ""; print ''; - print ''; print "
'.$langs->trans("Search").'
'; + print '
'; print $langs->trans("Warehouse").':

"; } diff --git a/htdocs/product/stock/movement_card.php b/htdocs/product/stock/movement_card.php index cf5b3dcc01473..4b9367c8d2e01 100644 --- a/htdocs/product/stock/movement_card.php +++ b/htdocs/product/stock/movement_card.php @@ -1081,7 +1081,7 @@ } if (!empty($arrayfields['m.label']['checked'])) { // Label of movement - print ''.$objp->label.''; + print ''.$objp->label.''; } if (!empty($arrayfields['m.type_mouvement']['checked'])) { // Type of movement diff --git a/htdocs/product/stock/stockatdate.php b/htdocs/product/stock/stockatdate.php index ac09f9770e364..900b1d475c2f4 100644 --- a/htdocs/product/stock/stockatdate.php +++ b/htdocs/product/stock/stockatdate.php @@ -5,6 +5,7 @@ * Copyright (C) 2016 Juanjo Menent * Copyright (C) 2016 ATM Consulting * Copyright (C) 2019-2024 Frédéric France + * Copyright (C) 2024 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 @@ -410,7 +411,7 @@ print ''.$langs->trans('Date').' '.$form->selectDate(($date ? $date : -1), 'date'); print '   '; - print img_picto('', 'product', 'class="pictofiwedwidth"').' '; + print img_picto('', 'product', 'class="pictofixedwidth"').' '; print ' '; print $form->select_produits($productid, 'productid', '', 0, 0, -1, 2, '', 0, array(), 0, $langs->trans('Product'), 0, 'maxwidth300', 0, '', null, 1); diff --git a/htdocs/projet/tasks/task.php b/htdocs/projet/tasks/task.php index 49919a44b230f..fb8ab16804370 100644 --- a/htdocs/projet/tasks/task.php +++ b/htdocs/projet/tasks/task.php @@ -531,7 +531,7 @@ print ''.$langs->trans("Budget").''; - print ''; + print ''; print ''; // Other options