ontoportal-lirmm / goo

Graph Oriented Objects (GOO) for Ruby. A RDF/SPARQL based ORM.
http://ncbo.github.io/goo/
Other
0 stars 4 forks source link

Feature: Support multi lingual - add show_language argument to the attributes getters #39

Closed haddadzineddine closed 1 year ago

syphax-bouazzouni commented 1 year ago

Follow up of https://github.com/ontoportal-lirmm/goo/pull/38 This PR, do two things:

  1. Remove the variable @attributes_to_translate, which was limiting the multilingual feature only to prefLabel, label, definition, and synonyms. Now all the attributes of the typed string will be translated into all languages. (https://github.com/ontoportal-lirmm/goo/pull/39/commits/5b7c78f67449512c511e8a4b752ca2ee724d6786)
  2. Add to the getters of all the attributes, an option to show multiple languages or not, by default, we show only one remaining we the previous behavior and don't break the extent code.(https://github.com/ontoportal-lirmm/goo/pull/39/commits/8af1d47029e203cf006025ca54180cfd6fa53956)