Temporal Graph only working on english

10 views
Skip to first unread message

Juan López

unread,
Apr 6, 2020, 12:03:05 PM4/6/20
to VIVO Tech
Hello everyone, I hope you guys are doing well and taking care of yourself at home!

I have a question for you guys... it seems that the Temporal Graph on organizations is only working when the selected language is english ... but when I select Spanish, the graph doesn't show anything:

Anotación 2020-04-06 105812.jpg


the message says something like this: "Data for "mi Universidad" is being updated. The visualization will be loaded once we finished calculating, or you can search or navigate for other data on VIVO and come back later"

¿Any idea how can I make this graph work in splanish? 

Regards,

Juan López.

Brian Lowe

unread,
Apr 6, 2020, 12:51:13 PM4/6/20
to vivo...@googlegroups.com

Hi Juan,

 

There seem to be a few places where the visualizations have issues with a multingual environment.  I looked into this problem recently too.  Take a look at the files

 

webapp/src/main/webapp/template/freemarker/visualization/entitycomparison/entityComparisonOnGrantsStandalone.ftl and

webapp/src/main/webapp/template/freemarker/visualization/entitycomparison/entityComparisonOnPublicationsStandalone.ftl

 

Near the top of each of these files is an initial assignment of currentParameter to hard-coded English-language values „grant” and „publication”.  I believe the least-invasive fix to get the temporal graph to render was to replace these values with „${i18n.grant}” and „${i18n.publication}” respectively.

 

(This would likely still fail if the translation for one of these nouns happened to involve more than one word.  It looks like the real fix should involve separating the internal parameter names from the internationalized labels for human display.)

 

If those two changes don’t jump-start it to life, let me know as there may be something else I’m forgetting.  I did get it working with English/Spanish/Portuguese.

 

Brian

 

 

From: vivo...@googlegroups.com <vivo...@googlegroups.com> On Behalf Of Juan López
Sent: Monday, April 6, 2020 7:03 PM
To: VIVO Tech <vivo...@googlegroups.com>
Subject: [vivo-tech] Temporal Graph only working on english

 

Hello everyone, I hope you guys are doing well and taking care of yourself at home!

 

I have a question for you guys... it seems that the Temporal Graph on organizations is only working when the selected language is english ... but when I select Spanish, the graph doesn't show anything:

 

 

the message says something like this: "Data for "mi Universidad" is being updated. The visualization will be loaded once we finished calculating, or you can search or navigate for other data on VIVO and come back later"

 

¿Any idea how can I make this graph work in splanish? 

 

Regards,

 

Juan López.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/vivo-tech/febd2212-c37d-44b5-9706-fa1d564a272d%40googlegroups.com.

Andrew Woods

unread,
Apr 7, 2020, 10:18:32 AM4/7/20
to vivo...@googlegroups.com
Hello Brian,

In the context of the current internationalization sprint, could you potentially provide a pull-request to the core code base with one of your incremental solutions?

Thanks,
Andrew

________________________________________
From: vivo...@googlegroups.com <vivo...@googlegroups.com> on behalf of Brian Lowe <br...@ontocale.com>
Sent: Monday, April 6, 2020 12:51 PM
To: vivo...@googlegroups.com
Subject: RE: [vivo-tech] Temporal Graph only working on english

Hi Juan,

There seem to be a few places where the visualizations have issues with a multingual environment. I looked into this problem recently too. Take a look at the files

webapp/src/main/webapp/template/freemarker/visualization/entitycomparison/entityComparisonOnGrantsStandalone.ftl and
webapp/src/main/webapp/template/freemarker/visualization/entitycomparison/entityComparisonOnPublicationsStandalone.ftl

Near the top of each of these files is an initial assignment of currentParameter to hard-coded English-language values „grant” and „publication”. I believe the least-invasive fix to get the temporal graph to render was to replace these values with „${i18n.grant}” and „${i18n.publication}” respectively.

(This would likely still fail if the translation for one of these nouns happened to involve more than one word. It looks like the real fix should involve separating the internal parameter names from the internationalized labels for human display.)

If those two changes don’t jump-start it to life, let me know as there may be something else I’m forgetting. I did get it working with English/Spanish/Portuguese.

Brian


From: vivo...@googlegroups.com <vivo...@googlegroups.com> On Behalf Of Juan López
Sent: Monday, April 6, 2020 7:03 PM
To: VIVO Tech <vivo...@googlegroups.com>
Subject: [vivo-tech] Temporal Graph only working on english

Hello everyone, I hope you guys are doing well and taking care of yourself at home!

I have a question for you guys... it seems that the Temporal Graph on organizations is only working when the selected language is english ... but when I select Spanish, the graph doesn't show anything:


[cid:image0...@01D60C4C.B647B990]


the message says something like this: "Data for "mi Universidad" is being updated. The visualization will be loaded once we finished calculating, or you can search or navigate for other data on VIVO and come back later"

¿Any idea how can I make this graph work in splanish?

Regards,

Juan López.
--
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<mailto:vivo-tech+...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/vivo-tech/febd2212-c37d-44b5-9706-fa1d564a272d%40googlegroups.com<https://groups.google.com/d/msgid/vivo-tech/febd2212-c37d-44b5-9706-fa1d564a272d%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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<mailto:vivo-tech+...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/vivo-tech/VI1P194MB0302627972D025E1E602309CD2C20%40VI1P194MB0302.EURP194.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/vivo-tech/VI1P194MB0302627972D025E1E602309CD2C20%40VI1P194MB0302.EURP194.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages