Translation of empty search result message

28 views
Skip to first unread message

Remie Janssen

unread,
Jul 16, 2025, 9:58:28 AMJul 16
to Dataverse Users Community
Hello!

We have our dataverse instance set up to use two languages for the frontend. This mostly works well, but I noticed the message for empty search results in the "My data" page is not translated (https://www.mydataverseinstance.com/dataverseuser.xhtml?selectTab=dataRelatedToMe).

The translation is present in the `Bundle_nl.properties` file, but does not seem to be used to set the message in the front-end. I suspect this is because the message is directly taken from the API response for retrieving the search results, and the API doesn't know about the language setting.

Is there maybe a dataverse setting that we have missed that fixes this issue?

Kind regards,
Remie Janssen

Screenshot from 2025-07-16 10-13-42.png

Philip Durbin

unread,
Jul 16, 2025, 10:35:04 AMJul 16
to dataverse...@googlegroups.com
Hi Remie,

I replied at #troubleshooting > Translation of "Sorry, no results were found" message @ 💬 as well but it's probably a bug in the code*. It's calling

getStringFromBundle(String key)

instead of

getStringFromBundle(String key, Locale locale)

I'd ask you to test the new React frontend at https://beta.dataverse.org/spa/ but it's not set up for multiple languages yet. Please feel free to open an issue at https://github.com/IQSS/dataverse/issues about this.

Thanks!

Phil


--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dataverse-community/f46fe70f-9944-4ec4-877b-0da6b3adac0dn%40googlegroups.com.


--

Philip Durbin

unread,
Jul 17, 2025, 5:00:06 PMJul 17
to dataverse...@googlegroups.com
Thanks for opening https://github.com/IQSS/dataverse/issues/11644 about this!
Reply all
Reply to author
Forward
0 new messages