How to add language to my DSpace?

I want to add “Arabic” to my DSpace.

I am setting up this file:

[dspace]/config/dspace.cfg 

with this line:

 webui.supported.locales = en, de, ar 

Then I create Dspace and restart Tomcat.

But I can not find this file:

  "Messages.properties" at [dspace-src]/dspace/modules/jspui/src/main/resources/Messages.properties 

and how German can appear on my DSpace wherever I can find

 "Messages_de.properties" at [dspace-src]/dspace/modules/jspui/src/main/resources/Messages_de.properties 

Do I have other weird problems setting up my DSpace with Arabic?

+4
source share
2 answers

I did not see a copy of the Arabic translation of all the "messages" for DSpace, but someone may have started it, or you can create it yourself. If you need to start from Arabic from scratch, you can copy

[dspace-source]/dspace-api/src/main/resources/Messages.properties

to

[dspace-source]/dspace/modules/src/main/resource/Messages_ar.properties

Then you will need to enter the keys / values.

The reason German works is because DSpace extracts language files from the Internet through Maven.

Look at the SVN repo for all languages ​​(Arabic not available): SVN Link

If you need further assistance, it is best to consult the dspace-tech mailing list. Probably someone out there solved this problem. And may have an Arabic message file.

+7
source

For the deployed language files of web applications, there is the dspace-api-lang-1.xxxjar file (this is actually an archived folder, and xxx depends on the version you are working with). You can find it in the [your JSPUI web folder] / WEB-INF / lib folder .

You can, in fact, extract the required localization file into the [your JSPUI web address] / META-INF folder and edit it if you need.

If you want to work with these translations during development, just copy this file from the deployed webapp (or to the "target" subfolder after building the project) to [dspace-src] / dspace / modules / jspui / src / main / resources /, and you can edit it in an IDE or text editor (or something else ...).

+1
source

Source: https://habr.com/ru/post/1399624/


All Articles