-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multilingual support #307
Comments
Possible difficulties
|
INRAE DipSO requirements (Sophie Aubin and Sonia Bravo)Voici nos retours concernant le multilinguisme:
Comme sur Skosmos, faire apparaître l’autre libellé pref en mettant entre parenthèse fr/en. Si pas de label, alors afficher la fin de l’URI (mais normalement ça n’arrive pas en SKOS)
La fiche concept n’affiche pas les termes dans les autres langues que celle sélectionnée Vous pourriez ajouter un bloc « Labels » dans la seconde section, au-dessus de narrower (on veut voir ces termes dans d’autres langues assez rapidement, sans scroller trop) On affiche toujours en 1er la langue d’affichage sélectionnée, si "EN" Idéalement, il faudra le même comportement pour les définitions (et autres notes). Afficher la def dans chaque langue en précisant la langue + affichage de la définition de la langue d’affichage en 1er. |
Hello @saubin78 . Ok pour ces 3 points principaux.
|
Pour la traduction des propriétés, bon point. Nous travaillons aussi a l'internationalization du portail (en Francais d'abord).
|
Deployed in production in ontoportal-lirmm/bioportal_web_ui#240 |
References
Goal
Make Ontoportal/Agroportal UI and API multilingual, where a user can decide on the language to display or show them all.
Our plan
Phase 1: Read one language
Most of the work is done here
Currently, we filter data fetched from the triple store by only one language, English only for Bioportal and English or French for Agroportal.
This behavior is settled by a constant (:EN) in Bioportal and an Array of languages in Agroportal.
This first step is to do is to add the possibility of taking a request parameter
?lang
for language to showPhase 2: Read multiple lang (JSON-LD compliant)
Currently, we don't use the
lang
attribute of literals, i.e in source data, we haveskos:prefLabel "test"@en
but we show only "test" if we want to show multiple languages the language information needs to be used and be complainant with what JSON-LD specifyThe plan would is to be fully compliant JSON-LD and show the following in our API endpoints
Phase 3: write multiple languages
For a given metadata attribute (e.g description), how do we write in multiple languages (e.g have an English and French description)?
The text was updated successfully, but these errors were encountered: