Skip to content
Ondřej Košarko edited this page Apr 14, 2016 · 9 revisions

The following sections describe steps that need to be taken in order to provide the repository in a different language. Basically the changes that were done in #459 and 0e1454 minus the work in *.java and *.xsl files which internationalized missed strings.

To jump start the translations it's worth checking whether upstream dspace was translated into the target language. See dspace-xmlui-lang project and/or DSpace I18n support page.

Configuration

Start witch setting supported.locales in local.properties, eg. supported.locales = en, cs.

Translating UI

Most of the UI strings are located in messages.xml file, you'll need to provide your own translation of this file, name it messages_LOC.xml where LOC is the supported locale you've added in the previous step. You can start by copying messages.template into dspace/modules/xmlui/src/main/webapp/i18n

The rest of the UI strings are in javascript files, currently each of the files carries its dictionary. Search for i18n.load and provide your own translation either replace the old ones or add a new i18n.load("LOC"... call the files can be overlaid.

./dspace-xmlui/src/main/webapp/themes/UFAL/lib/js/dragndrop.js
./dspace-xmlui/src/main/webapp/themes/UFAL/lib/js/fileupload.js
./dspace-xmlui/src/main/webapp/themes/UFAL/lib/bootstrap/js/ufal.min.js

If you have changed input-forms.xml you'll need to add message keys into them and put the values into messages.xml and messages_LOC.xml. If there are many changes you might try using this gist that will replace the values in input-forms file you supply and writes a "messages" file, you can then paste the result into your messages.

Translating static content

statickych strankach e.g., deposit (edited)

Flags

kde su napr. vlajocky

vlajecky jsou momentalne zadratovany v lindat-common https://github.com/ufal/lindat-dspace/pull/459/files#diff-5ef3950b78d9022fd7a023e84d598a62R432, ale vlajecky jsou to nejmensi.

Deposition license

ako aktualne pouzivame deposition license

[2:11] kde je schovana?

[2:11] a co alternative_..

https://github.com/ufal/lindat-dspace/pull/491 licence je popsana tady, odkud se bere alternativni je nastavitelny, muze to byt v gitignore. a jinak messages a podobny by klidne mohli udelat pr a muze to byt v lindat branch

Issues

Clone this wiki locally