How to add corresponding name to a language tag?

9 views
Skip to first unread message

kba...@whoi.edu

unread,
Sep 28, 2018, 7:42:16 AM9/28/18
to VIVO Tech
Hello,

I've been seeing an error in the log file that states "[ViewLabelsServlet] This language tag en-US does not have corresponding name in the system and was not processed"
Does anyone know how to add a corresponding name to a language tag? I would assume there is a settings file that controls it.

Thank you,

Kirill.

Gross, Benjamin

unread,
Sep 28, 2018, 9:04:40 AM9/28/18
to vivo...@googlegroups.com
Hi Kirill,
Does this affect the function of the application at all, or does it just add the error to the log? I was able to reproduce the error by going to localhost/viewLabels?subjectUri=https://theuri for a person with en-US tags on a stock VIVO but the label still shows up normally on the profile page.

I'm guessing VIVO is looking for the en-US locale, but VIVO was built without including the vivo-languages dependency. Naively, I suspect you could just enable en_US in runtime.properties (https://github.com/vivo-project/VIVO/blob/develop/home/src/main/resources/config/example.runtime.properties#L205) and rename the included language files to have the en_US tag.

VIVO/webapp/src/main/webapp/i18n/vivo_all.properties -> vivo_all_en_US.properties
VIVO/webapp/src/main/webapp/themes/wilma/i18n/all.properties -> all_en_US.properties
Vitro/webapp/src/main/webapp/i18n/all.properties -> all_en_US.properties

Conversely, you could rebuild with vivo-languages by uncommenting these dependencies: https://github.com/vivo-project/VIVO/search?l=Maven+POM&q=languages

Benjamin

_____________________________
Benjamin Gross
Science and Academic Research | Clarivate Analytics

--
You received this message because you are subscribed to the Google Groups "VIVO Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vivo-tech+...@googlegroups.com.
To post to this group, send email to vivo...@googlegroups.com.
Visit this group at https://groups.google.com/group/vivo-tech.
To view this discussion on the web visit https://groups.google.com/d/msgid/vivo-tech/cdf3f1b4-083f-4edd-b11f-8c2f98b8355a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kba...@whoi.edu

unread,
Sep 28, 2018, 9:42:33 AM9/28/18
to VIVO Tech
Thank you Benjamin,

It does not seem to affect anything. The installation is running as it should. I'm going to try the runtime.properties rout. 

Thank you,

Kirill.
Reply all
Reply to author
Forward
0 new messages