chenejac / VIVOTestMigrationJIRANotClosed

0 stars 0 forks source link

VIVO-1792: i18n : In the "Add credential" form, the dropdown menu content displays in english. #83

Open chenejac opened 4 years ago

chenejac commented 4 years ago

Nicolas B Dickn (Migrated from VIVO-1792) said:

In the french version of People > [some individual] > background > credentials > add :

  1. the dropdown menu content displays in english.

  2. In the first input field placeholder:

      "élément existant credential"

       should translate to

       "élément diplôme existant"

 

chenejac commented 3 years ago

Nicolas B Dickn said:

Problem seems to be in /vivo-project/api/src/main/java/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/PersonHasIssuedCredentialGenerator.java :

private FieldOptions getCredentialTypeFieldOptions(VitroRequest vreq) throws Exception {
 return new ConstantFieldOptions(
 "http://vivoweb.org/ontology/core#Certificate", "Certificate",
 "http://vivoweb.org/ontology/core#Credential", "Credential",
 "http://vivoweb.org/ontology/core#License", "License");
 }