ncbo / bioportal_web_ui

A Rails application for biological ontologies
http://bioportal.bioontology.org/
Other
22 stars 2 forks source link

Add UI support for multi-lingual ontology feature #318

Open mdorf opened 5 months ago

mdorf commented 5 months ago

Add the minimal UI features to support the multi-lingual functionality provided by the backend API, per bmir-radx/radx-project#69.

mdorf commented 5 months ago

@syphax-bouazzouni, I am working on some of the existing multi-language UI functionality from ontoportal-lirmm/bioportal_web_ui. The initial results look good, except for this strange error. I wonder if you've seen it on your end:

https://github.com/ontoportal-lirmm/bioportal_web_ui/blob/master/app/helpers/internationalisation_helper.rb#L6 https://github.com/ontoportal-lirmm/bioportal_web_ui/blob/master/app/helpers/ontologies_helper.rb#L503

[4] pry(InternationalisationHelper)> args
=> ["ontologies.edit_natural_languages", {:acronym=>"BMO"}]
[5] pry(InternationalisationHelper)> I18n.t(*args)
ArgumentError: wrong number of arguments (given 2, expected 0..1)
from /Users/mdorf/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/i18n-1.14.5/lib/i18n.rb:210:in `translate'
alexskr commented 5 months ago

Minimal features:

done: