Skip to content

Commit

Permalink
Qual: Add codespell entries to catch some css typos
Browse files Browse the repository at this point in the history
# Qual: Add codespell entries to catch some css typos

Added some codespell entries based on the observed typos in css
tags
  • Loading branch information
mdeweerd committed Oct 1, 2024
1 parent 6b2fa56 commit 54cbcc5
Show file tree
Hide file tree
Showing 21 changed files with 58 additions and 28 deletions.
20 changes: 19 additions & 1 deletion dev/tools/codespell/codespell-dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,30 @@ dollibarr->dolibarr
extrafeild->extrafield
thoose->those
# fiche->card
nempty->an empty, empty, not empty,
maringbottomonly->marginbottomonly
maxwidthonsmartpone->maxwidthonsmartphone
maxwidthonspartphone->maxwidthonsmartphone
minwith100->minwidth100
minwith200->minwidth200
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
4 changes: 4 additions & 0 deletions dev/tools/codespell/codespell-ignore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ espace
methode
datee

# Translation keys
addin
amountin

# other
blacklists
confirmactionxxx
3 changes: 2 additions & 1 deletion htdocs/accountancy/admin/categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright (C) 2017-2024 Alexandre Spangaro <[email protected]>
* Copyright (C) 2022 Laurent Destailleur <[email protected]>
* Copyright (C) 2024 Frédéric France <[email protected]>
* Copyright (C) 2024 MDW <[email protected]>
*
* 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
Expand Down Expand Up @@ -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 '<input type="submit" class="button button-add small" id="" class="action-delete" value="'.$langs->trans("Add").'"> ';
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/accountancy/admin/journals_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@
print '</tr>';

// Line to enter new values
print '<tr class="oddeven nodrag nodrap nohover">';
print '<tr class="oddeven nodrag nodrop nohover">';

$obj = new stdClass();
// If data was already input, we define them in obj to populate input fields.
Expand Down
3 changes: 2 additions & 1 deletion htdocs/adherents/cartes/carte.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright (C) 2003 Jean-Louis Bergamo <[email protected]>
* Copyright (C) 2006-2013 Laurent Destailleur <[email protected]>
* Copyright (C) 2024 Alexandre Spangaro <[email protected]>
* Copyright (C) 2024 MDW <[email protected]>
*
* 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
Expand Down Expand Up @@ -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 '<br>'.$langs->trans("Login").': <input class="with100" type="text" name="foruserlogin" value="'.GETPOST('foruserlogin').'">';
print '<br>'.$langs->trans("Login").': <input class="width100" type="text" name="foruserlogin" value="'.GETPOST('foruserlogin').'">';
print '<br><input type="submit" class="button small" value="'.$langs->trans("BuildDoc").'">';
print '</form>';

Expand Down
12 changes: 6 additions & 6 deletions htdocs/compta/prelevement/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,33 +328,33 @@
print '<option value="RCUR"'.($format == 'RCUR' ? ' selected="selected"' : '').'>'.$langs->trans('SEPARCUR').'</option>';
print '</select>';
}
print '<input type="submit" class="butAction margintoponly maringbottomonly" value="'.$title.'"/>';
print '<input type="submit" class="butAction margintoponly marginbottomonly" value="'.$title.'"/>';
} else {
$title = $langs->trans("CreateAll");
if ($type == 'bank-transfer') {
$title = $langs->trans("CreateFileForPaymentByBankTransfer");
}
print '<input type="hidden" name="format" value="ALL">'."\n";
print '<input type="submit" class="butAction margintoponly maringbottomonly" value="'.$title.'">'."\n";
print '<input type="submit" class="butAction margintoponly marginbottomonly" value="'.$title.'">'."\n";
}
} else {
if ($mysoc->isInEEC()) {
$title = $langs->trans("CreateForSepaFRST");
if ($type == 'bank-transfer') {
$title = $langs->trans("CreateSepaFileForPaymentByBankTransfer");
}
print '<a class="butActionRefused classfortooltip margintoponly maringbottomonly" href="#" title="'.$langs->trans("AmountMustBePositive").'">'.$title."</a>\n";
print '<a class="butActionRefused classfortooltip margintoponly marginbottomonly" href="#" title="'.$langs->trans("AmountMustBePositive").'">'.$title."</a>\n";

if ($type != 'bank-transfer') {
$title = $langs->trans("CreateForSepaRCUR");
print '<a class="butActionRefused classfortooltip margintoponly maringbottomonly" href="#" title="'.$langs->trans("AmountMustBePositive").'">'.$title."</a>\n";
print '<a class="butActionRefused classfortooltip margintoponly marginbottomonly" href="#" title="'.$langs->trans("AmountMustBePositive").'">'.$title."</a>\n";
}
} else {
$title = $langs->trans("CreateAll");
if ($type == 'bank-transfer') {
$title = $langs->trans("CreateFileForPaymentByBankTransfer");
}
print '<a class="butActionRefused classfortooltip margintoponly maringbottomonly" href="#">'.$title."</a>\n";
print '<a class="butActionRefused classfortooltip margintoponly marginbottomonly" href="#">'.$title."</a>\n";
}
}
} else {
Expand All @@ -364,7 +364,7 @@
$titlefortab = $langs->transnoentitiesnoconv("PaymentByBankTransfers");
$title = $langs->trans("CreateFileForPaymentByBankTransfer");
}
print '<a class="butActionRefused classfortooltip margintoponly maringbottomonly" href="#" title="'.dol_escape_htmltag($langs->transnoentitiesnoconv("NoInvoiceToWithdraw", $titlefortab, $titlefortab)).'">';
print '<a class="butActionRefused classfortooltip margintoponly marginbottomonly" href="#" title="'.dol_escape_htmltag($langs->transnoentitiesnoconv("NoInvoiceToWithdraw", $titlefortab, $titlefortab)).'">';
print $title;
print "</a>\n";
}
Expand Down
3 changes: 2 additions & 1 deletion htdocs/compta/prelevement/rejets.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright (C) 2005-2009 Regis Houssin <[email protected]>
* Copyright (C) 2010-2013 Juanjo Menent <[email protected]>
* Copyright (C) 2005-2012 Laurent Destailleur <[email protected]>
* Copyright (C) 2024 MDW <[email protected]>
*
* 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
Expand Down Expand Up @@ -172,7 +173,7 @@
$thirdpartystatic->id = $obj->socid;
$thirdpartystatic->name = $obj->name;

print '<td class="tdoverlowmax200"><a href="'.DOL_URL_ROOT.'/comm/card.php?socid='.$obj->socid.'">'.$thirdpartystatic->getNomUrl(1)."</a></td>\n";
print '<td class="tdoverflowmax200"><a href="'.DOL_URL_ROOT.'/comm/card.php?socid='.$obj->socid.'">'.$thirdpartystatic->getNomUrl(1)."</a></td>\n";
}

print '<td>'.$rej->motifs[$obj->motif].'</td>';
Expand Down
2 changes: 1 addition & 1 deletion htdocs/compta/tva/payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@

// Date payment
$datep = $db->jdate($obj->datep);
print '<td class="center nowraponalls">' . dol_print_date($datep, 'day') . '</td>';
print '<td class="center nowraponall">' . dol_print_date($datep, 'day') . '</td>';

// Type payment
$labelpaymenttype = '';
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/class/html.form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -5808,7 +5808,7 @@ function(data) { $("body").html(data); jQuery("html,body,#id-container").removeC
$formconfirm .= "\n<!-- begin formconfirm page=" . dol_escape_htmltag($page) . " -->\n";

if (empty($disableformtag)) {
$formconfirm .= '<form method="POST" action="' . $page . '" class="notoptoleftroright">' . "\n";
$formconfirm .= '<form method="POST" action="' . $page . '" class="notoptoleftnoright">' . "\n";
}

$formconfirm .= '<input type="hidden" name="action" value="' . $action . '">' . "\n";
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/class/html.formfile.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,7 @@ public function list_of_documents($filearray, $object, $modulepart, $param = '',


// File name
print '<td class="minwith200 tdoverflowmax500" title="'.dolPrintHTMLForAttribute($file['name']).'">';
print '<td class="minwidth200 tdoverflowmax500" title="'.dolPrintHTMLForAttribute($file['name']).'">';

// Show file name with link to download
//print "XX".$file['name']; //$file['name'] must be utf8
Expand Down
2 changes: 1 addition & 1 deletion htdocs/expensereport/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -1975,7 +1975,7 @@
$paymentexpensereportstatic->type_code = $objp->payment_code;
$paymentexpensereportstatic->type_label = $objp->payment_type;

print '<tr class="oddseven">';
print '<tr class="oddeven">';
print '<td>';
print $paymentexpensereportstatic->getNomUrl(1);
print '</td>';
Expand Down
2 changes: 1 addition & 1 deletion htdocs/expensereport/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@
// User
if (!empty($arrayfields['user']['checked'])) {
if ($user->hasRight('expensereport', 'readall') || $user->hasRight('expensereport', 'lire_tous')) {
print '<td class="liste_titre maxwidthonspartphone" align="left">';
print '<td class="liste_titre maxwidthonsmartphone" align="left">';
print $form->select_dolusers($search_user, 'search_user', 1, '', 0, '', '', 0, 0, 0, '', 0, '', 'maxwidth200');
print '</td>';
} else {
Expand Down
3 changes: 2 additions & 1 deletion htdocs/holiday/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Copyright (C) 2019-2024 Frédéric France <[email protected]>
* Copyright (C) 2024 Benjamin Falière <[email protected]>
* Copyright (C) 2024 Alexandre Spangaro <[email protected]>
* Copyright (C) 2024 MDW <[email protected]>
*
* 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
Expand Down Expand Up @@ -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 '<tr class="oddeven opacitymediuem"><td colspan="10">'.$langs->trans("NotEnoughPermissions").'</td></tr>';
print '<tr class="oddeven opacitymedium"><td colspan="10">'.$langs->trans("NotEnoughPermissions").'</td></tr>';
$result = 0;
} elseif ($num > 0 && !empty($mysoc->country_id)) {
// Lines
Expand Down
8 changes: 4 additions & 4 deletions htdocs/imports/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -2415,7 +2415,7 @@ function show_elem($fieldssource, $pos, $key)
if (($pos && $pos > count($fieldssource)) && (!isset($fieldssource[$pos]["imported"]))) { // No fields
/*
print '<tr style="height:'.$height.'" class="trimport oddevenimport">';
print '<td class="nocellnopadding" width="16" style="font-weight: normal">';
print '<td class="nocellnopadd" width="16" style="font-weight: normal">';
print '</td>';
print '<td style="font-weight: normal">';
print $langs->trans("NoFields");
Expand All @@ -2424,7 +2424,7 @@ function show_elem($fieldssource, $pos, $key)
*/
} elseif ($key == 'none') { // Empty line
print '<tr style="height:'.$height.'" class="trimport oddevenimport">';
print '<td class="nocellnopadding" width="16" style="font-weight: normal">';
print '<td class="nocellnopadd" width="16" style="font-weight: normal">';
print '&nbsp;';
print '</td>';
print '<td style="font-weight: normal">';
Expand All @@ -2434,10 +2434,10 @@ function show_elem($fieldssource, $pos, $key)
} else {
// Print field of source file
print '<tr style="height:'.$height.'" class="trimport oddevenimport">';
print '<td class="nocellnopadding" width="16" style="font-weight: normal">';
print '<td class="nocellnopadd" width="16" style="font-weight: normal">';
// 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 '</td>';
if (isset($fieldssource[$pos]['imported']) && $fieldssource[$pos]['imported'] == false) {
print '<td class="nowraponall boxtdunused" style="font-weight: normal">';
Expand Down
3 changes: 2 additions & 1 deletion htdocs/margin/customerMargins.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2012-2013 Christophe Battarel <[email protected]>
* Copyright (C) 2014 Ferran Marcet <[email protected]>
* Copyright (C) 2024 MDW <[email protected]>
*
* 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
Expand Down Expand Up @@ -153,7 +154,7 @@
}

print '<tr><td class="titlefield">'.$langs->trans('ProductOrService').'</td>';
print '<td class="maxwidthonsmartpone" colspan="4">';
print '<td class="maxwidthonsmartphone" colspan="4">';
print img_picto('', 'product').$form->multiselectarray('products', $TProducts, $TSelectedProducts, 0, 0, 'minwidth500');
print '</td></tr>';

Expand Down
3 changes: 2 additions & 1 deletion htdocs/opensurvey/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* Copyright (C) 2013-2015 Laurent Destailleur <[email protected]>
* Copyright (C) 2014 Marcos García <[email protected]>
* Copyright (C) 2018-2024 Frédéric France <[email protected]>
* Copyright (C) 2024 MDW <[email protected]>
*
* 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
Expand Down Expand Up @@ -323,7 +324,7 @@
print $userstatic->getLoginUrl(-1);
} else {
if ($action == 'edit') {
print '<input type="text" name="nouvelleadresse" class="minwith200" value="'.$object->mail_admin.'">';
print '<input type="text" name="nouvelleadresse" class="minwidth200" value="'.$object->mail_admin.'">';
} else {
print dol_print_email($object->mail_admin, 0, 0, 1, 0, 1, 1);
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/opensurvey/results.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@
if (!$object->fk_user_creat) {
print '<tr><td>'.$langs->trans("EMail").'</td><td>';
if ($action == 'edit') {
print '<input type="text" name="nouvelleadresse" class="minwith200" value="'.$object->mail_admin.'">';
print '<input type="text" name="nouvelleadresse" class="minwidth200" value="'.$object->mail_admin.'">';
} else {
print dol_print_email($object->mail_admin, 0, 0, 1, 0, 1, 1);
}
Expand Down
3 changes: 2 additions & 1 deletion htdocs/product/stock/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Copyright (C) 2005-2009 Regis Houssin <[email protected]>
* Copyright (C) 2019 Nicolas ZABOURI <[email protected]>
* Copyright (C) 2020 Tobias Sekan <[email protected]>
* Copyright (C) 2024 MDW <[email protected]>
*
* 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
Expand Down Expand Up @@ -68,7 +69,7 @@
print '<table class="noborder nohover centpercent">';
print "<tr class=\"liste_titre\">";
print '<td colspan="3">'.$langs->trans("Search").'</td></tr>';
print '<tr class="oddevene"><td>';
print '<tr class="oddeven"><td>';
print $langs->trans("Warehouse").':</td><td><input class="flat" type="text" size="18" name="sall"></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
print "</table></div></form><br>";
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/product/stock/movement_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@
}
if (!empty($arrayfields['m.label']['checked'])) {
// Label of movement
print '<td class="tdoverflowmax100aaa">'.$objp->label.'</td>';
print '<td class="tdoverflowmax100">'.$objp->label.'</td>';
}
if (!empty($arrayfields['m.type_mouvement']['checked'])) {
// Type of movement
Expand Down
3 changes: 2 additions & 1 deletion htdocs/product/stock/stockatdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Copyright (C) 2016 Juanjo Menent <[email protected]>
* Copyright (C) 2016 ATM Consulting <[email protected]>
* Copyright (C) 2019-2024 Frédéric France <[email protected]>
* Copyright (C) 2024 MDW <[email protected]>
*
* 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
Expand Down Expand Up @@ -410,7 +411,7 @@
print '<span class="fieldrequired">'.$langs->trans('Date').'</span> '.$form->selectDate(($date ? $date : -1), 'date');

print ' <span class="clearbothonsmartphone marginleftonly paddingleftonly marginrightonly paddingrightonly">&nbsp;</span> ';
print img_picto('', 'product', 'class="pictofiwedwidth"').' ';
print img_picto('', 'product', 'class="pictofixedwidth"').' ';
print '</span> ';
print $form->select_produits($productid, 'productid', '', 0, 0, -1, 2, '', 0, array(), 0, $langs->trans('Product'), 0, 'maxwidth300', 0, '', null, 1);

Expand Down
2 changes: 1 addition & 1 deletion htdocs/projet/tasks/task.php
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@


print '<tr><td>'.$langs->trans("Budget").'</td>';
print '<td><input class="with75" type="text" name="budget_amount" value="'.dol_escape_htmltag(GETPOSTISSET('budget_amount') ? GETPOST('budget_amount') : price2num($object->budget_amount)).'"></td>';
print '<td><input class="width75" type="text" name="budget_amount" value="'.dol_escape_htmltag(GETPOSTISSET('budget_amount') ? GETPOST('budget_amount') : price2num($object->budget_amount)).'"></td>';
print '</tr>';

// Other options
Expand Down

0 comments on commit 54cbcc5

Please sign in to comment.