Skip to content

Commit

Permalink
add multilingual support in annotator title and select ontologies
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammedBkf committed Sep 19, 2024
1 parent 1ac4633 commit de3d49e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/views/annotator/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.annotator-page-subcontainer
.annotator-page-title
.text
= @page_name
= t('annotator.title')
.line
.annotator-page-decription
= t('annotator.description')
Expand All @@ -27,7 +27,7 @@
= render(ChipsComponent.new(name: 'exclude_synonyms', label: t('annotator.exclude_synonyms'), checked: params[:exclude_synonyms]))

.select-ontologies
= ontologies_selector(id:'annotator_page_ontologies', label: 'Select ontologies' ,name: 'ontologies[]', selected: params[:ontologies]&.split(','))
= ontologies_selector(id:'annotator_page_ontologies', label: t('annotator.select_ontologies') ,name: 'ontologies[]', selected: params[:ontologies]&.split(','))
= show_advanced_options_button(text: t('show_advanced_options'), init: @advanced_options_open)
= hide_advanced_options_button(text: t('hide_advanced_options'), init: @advanced_options_open)
.more-advanced-options{'data-reveal-component-target': 'item', class: "#{@advanced_options_open ? '' : 'd-none'}"}
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ en:
and fungi, in an attempt to replace existing methods of chemical control and avoid extensive use of fungicides, which often lead to resistance in plant pathogens.
In agriculture, plant growth-promoting and biocontrol microorganisms have emerged as safe alternatives to chemical pesticides. Streptomyces spp. and their
metabolites may have great potential as excellent agents for controlling various fungal and bacterial phytopathogens.
select_ontologies: Select ontologies
concepts:
error_valid_concept: "Error: You must provide a valid concept id"
missing_roots: Missing roots
Expand Down
2 changes: 1 addition & 1 deletion config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ fr:
et aériennes, dans le but de remplacer les méthodes actuelles de contrôle chimique et d'éviter l'utilisation extensive de fongicides, qui conduisent souvent à une résistance chez les pathogènes des plantes.
En agriculture, les microorganismes promoteurs de croissance des plantes et de biocontrôle ont émergé comme des alternatives sûres aux pesticides chimiques. Les espèces de Streptomyces et leurs
métabolites peuvent avoir un grand potentiel en tant qu'agents excellents pour contrôler divers phytopathogènes fongiques et bactériens.

select_ontologies: Sélectionner des ontologies
concepts:
error_valid_concept: "Erreur : Vous devez fournir un identifiant de concept valide"
missing_roots: Racines manquantes
Expand Down

0 comments on commit de3d49e

Please sign in to comment.