Skip to content

Commit b12fd9d

Browse files
508 compliance for taxa/taxonomy/taxonomyloader.php (#654)
* added Doctype and lang, added labels,created new classes and renamed existing for textfields * improve code readability of html label sections and add aria-labels * add spacing to the concat syntax * added js script to dynamically change the labels * changed the unit name 1 to genus name * internationalized text, fixed js script, added spaces to ternary operators * change lets to consts and fix one TVP issue --------- Co-authored-by: Mark <[email protected]>
1 parent 1ae79a2 commit b12fd9d

9 files changed

+395
-248
lines changed

content/lang/taxa/taxonomy/taxoneditor.en.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
$LANG['HIERARCHY'] = 'Hierarchy';
2121
$LANG['CHILDREN_TAXA'] = 'Children Taxa';
2222
$LANG['DELETE'] = 'Delete';
23-
$LANG['UNITNAME1'] = 'UnitName1';
24-
$LANG['UNITNAME2'] = 'UnitName2';
25-
$LANG['UNITNAME3'] = 'UnitName3';
23+
$LANG['UNITNAME1'] = 'UnitName';
24+
$LANG['UNITNAME2'] = 'Specific Epithet';
25+
$LANG['UNITNAME3'] = 'Infraspecific Epithet';
2626
$LANG['AUTHOR'] = 'Author';
2727
$LANG['KINGDOM'] = 'Kingdom';
2828
$LANG['RANK_NAME'] = 'Rank Name';
@@ -64,6 +64,6 @@
6464
$LANG['QUERY_HIERARCHY'] = 'Quick Query Taxonomic Hierarchy';
6565
$LANG['EMPTY'] = 'Empty';
6666
$LANG['NOT_AUTH'] = 'You are not authorized to access this page';
67-
67+
$LANG['GENUS_NAME'] = 'Genus Name';
6868

6969
?>

content/lang/taxa/taxonomy/taxoneditor.es.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
$LANG['CHILDREN_TAXA'] = 'Taxa inferiores';
2222
$LANG['DELETE'] = 'Eliminar';
2323
$LANG['UNITNAME1'] = 'NombreUnitario1';
24-
$LANG['UNITNAME2'] = 'NombreUnitario2';
25-
$LANG['UNITNAME3'] = 'NombreUnitario3';
24+
$LANG['UNITNAME2'] = 'Epíteto específico';
25+
$LANG['UNITNAME3'] = 'Epíteto infraespecífico';
2626
$LANG['AUTHOR'] = 'Autor';
2727
$LANG['KINGDOM'] = 'Reino';
2828
$LANG['RANK_NAME'] = 'Rango del Nombre';
@@ -64,6 +64,6 @@
6464
$LANG['QUERY_HIERARCHY'] = 'Búsqueda Rápida de Jerarquía Taxonómica';
6565
$LANG['EMPTY'] = 'Vacío';
6666
$LANG['NOT_AUTH'] = 'No está autorizado para acceder a esta página';
67-
67+
$LANG['GENUS_NAME'] = 'Nombre del Género';
6868

6969
?>

content/lang/taxa/taxonomy/taxonomyloader.en.php

+5
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,10 @@
1818
$LANG['ACCEPT_STATUS'] = 'Acceptance Status';
1919
$LANG['UNACCEPT_REASON'] = 'Unacceptability Reason';
2020
$LANG['SUBMIT_NEW_NAME'] = 'Submit New Name';
21+
$LANG['GENUS_OR_BASE'] = 'Genus or Base Name';
22+
$LANG['EPITHET'] = 'Epithet';
23+
$LANG['SPECIF_EPITHET_FIELD'] = 'Specific Epithet Field';
24+
$LANG['INFRA_EPITHET_FIELD'] = 'Infraspecific Epithet Field';
25+
$LANG['RANK_FIELD'] = 'Rank Field';
2126

2227
?>

content/lang/taxa/taxonomy/taxonomyloader.es.php

+4
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@
1818
$LANG['ACCEPT_STATUS'] = 'Estado de Aceptación';
1919
$LANG['UNACCEPT_REASON'] = 'Razón de No Ser Aceptado';
2020
$LANG['SUBMIT_NEW_NAME'] = 'Enviar Nuevo Nombre';
21+
$LANG['GENUS_NAME'] = 'Género o Nombre Base';
22+
$LANG['EPITHET'] = 'Epíteto';
23+
$LANG['INFRA_EPITHET_FIELD'] = 'Campo de epíteto infraespecífico';
24+
$LANG['RANK_FIELD'] = 'Campo de clasificación';
2125

2226
?>

css/v202209/symbiota/main.css

+15-3
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ hr {
490490
.no-margin-left {
491491
margin-left: 0;
492492
}
493-
.taxon-search-bar {
493+
.search-bar {
494494
width: 25rem;
495495
}
496496

@@ -531,8 +531,16 @@ hr {
531531
clear: both;
532532
}
533533

534-
.taxon-search-bar {
535-
width: 25rem;
534+
.search-bar-long {
535+
width: 35rem;
536+
}
537+
538+
.search-bar-short {
539+
width: 15rem;
540+
}
541+
542+
.search-bar-extraShort {
543+
width: 5rem;
536544
}
537545

538546
.fieldset-size {
@@ -889,6 +897,10 @@ hr {
889897
margin-left: 3rem;
890898
}
891899

900+
.left-column {
901+
float: left;
902+
width: 170px;
903+
}
892904
.nativity-div {
893905
margin-top: 1em;
894906
font-size: 125%;

0 commit comments

Comments
 (0)