custom/localized version for language keys

45 views
Skip to first unread message

Marie-Hélène Vézina - UdeM

unread,
Mar 28, 2022, 9:55:21 AM3/28/22
to DSpace Technical Support
Context : DSpace 7.2

I'm sorry if this has been discussed before.

What is the best approach to producing localized/custom versions of languages keys ((1) additional keys (only for local purposes, not for developments submitted back to the main code) and (2) changes to the content of existing keys in the language files
(e.g. original : "home.top-level-communities.head": "Communities in DSpace"
versus
local : "home.top-level-communities.head": "Communities in UofM Institutional Repository")

while ensuring easy updating when the time comes (i.e. new Dspace releases)?


It would be desirable to have a way to install a local file that would contain the additional keys as well as the localized keys so that these forms would add to or override the original forms (found in en.json5, fr.json5, etc.).

If it's already the case could someone explain how this can be done properly? I haven't seen anything adressing this issue on the https://wiki.lyrasis.org/pages/viewpage.action?pageId=117735441  page.

Thank you,

Marie-Hélène Vézina (she/her)

Bibliothécaire · Projets numériques | Librarian · Digital Initiatives

Bibliothèques | soutien à la réussite, à la recherche et à l'enseignement

Libraries | Teaching, Learning and Research Support

Université de Montréal

Tim Donohue

unread,
Mar 28, 2022, 10:51:22 AM3/28/22
to DSpace Technical Support
Hi  Marie-Hélène,

It's possible to manage your local language (i18n) keys as part of your theme by using the process documented in this area of the documentation: https://wiki.lyrasis.org/display/DSDOC7x/User+Interface+Customization#UserInterfaceCustomization-CustomizeUIlabelsusingInternationalization(i18n)files

Or, alternatively, you can modify the json5 files in place, if you are using GitHub or similar to manage your code....but this would then rely on GitHub's ability to merge together updates in each upgrade with your localized changes.

Hopefully that helps, but let us know on this list if you have more questions.

Tim

Marie-Hélène Vézina - UdeM

unread,
Mar 29, 2022, 4:01:53 PM3/29/22
to DSpace Technical Support
Reply all
Reply to author
Forward
0 new messages