Howto: Create a Multi-Language Repository

By default, all the 'phrases' that EPrints displays to users are in the English language. However, adding support for other languages is straightforward. The examples page lists existing multi-language EPrints repositories.

Follow these steps to add support for other languages:

1. Install Language Files

The EPrints community has already translated the default EPrints phrases into several languages.

Language-specific phrases are grouped into several different files:

System phrases
generic system phrases (e.g. error messages)
Archive phrases
phrases specific to an archive
Citations
citation style for each type of deposit
Page template
the 'wrapper' used for every page EPrints displays
Static pages
e.g. 'home' page, 'about' page, 'help' page
Subjects
the subject tree

Download the required files (or create your own translations), and install them into the archive configuration directory.

Note: if you have customised your repository's metadata, you may need to edit the files to suit.

2. Configure Language Support

Specify the following in the primary archive configuration file:

3. Generate Multi-Language Pages

Generate multi-language versions of the static, views, and abstracts pages.

The pages displayed will now be chosen in accordance with the language settings of visitor's browser.

4. Enable Language Switching (Optional)

Add a Change Language button to each template page to allow visitors to switch between displayed languages.

5. Multi-Language Data Entry (Optional)

Add the multilang property to each field that should accept multi-language data entry.