Skip to content
Graham Triggs edited this page Nov 13, 2018 · 8 revisions

VIVO German Language Files

This repository - along with https://github.com/VIVO-DE/Vitro-languages - contain the German translations of VIVO.

Repository Structure

The file structure of the repository is intended to mirror that of the the Vitro/VIVO projects, so that it produces artifacts that can be combined during the packaging phases of the Vitro/VIVO builds.

Whilst there may be delays in implementing translations, it should be assumed that the develop branches track what is required for the current develop branches of Vitro/VIVO. As releases of Vitro/VIVO occur, maintenance branches will be made that reflect the maintenance branches in the Vitro/VIVO projects. Fixes to translations relating to a released version should occur in the maintenance branch(es), and merged to the develop branch.

Installation

Using a Custom Vitro/VIVO Installer

To install a language pack, you need to make modifications to the installer projects. For this, you should be using a custom installer. If you are using a Vitro/VIVO release package, that does not contain an API directory, then this is effectively a custom installer.

However if you are using Vitro/VIVO cloned from GitHub, and it contains an "installer" subdirectory, then if you haven't already done so, you should copy this installer directory to another location, outside of your Vitro / VIVO directories, and use this as your custom installer. You can set the vitro-installer-dir / vivo-installer-dir property in a settings.xml file to have your Vitro/VIVO build use your custom installer to deploy your customised application (as per the VIVO documentation).

Cloning the VIVO-DE language repositories

Note: If you are installing Vitro, then you just need the Vitro-languages repository. For VIVO, you will require BOTH the Vitro-languages and VIVO-languages repositories.

To clone the repositories, use the following commands:

git clone https://github.com/VIVO-DE/Vitro-languages Vitro-languages git clone https://github.com/VIVO-DE/VIVO-languages VIVO-languages

You may clone these repositories anywhere you like, however, I would recommend that you place them outside of your custom installer, and outside of any Vitro/VIVO source directories. For projects that use the full Vitro / VIVO source code, my directory layout is usually as follows:

project/ Vitro/ VIVO/ Vitro-languages/ VIVO-languages/ custom-installer/ custom-settings.xml

(In a configuration like this, I would install VIVO by going into the VIVO directory, and running "mvn clean install -s ../customer-settings.xml - this will then use my settings in custom-settings.xml to compile Vitro and VIVO from source, and use the custom installer, along with the language packs, to deploy the application.)

The following instructions will assume that you are using a similar layout, however, if you are using a different directory structure, then you will need to adjust the paths accordingly.

Adding Languages to the Installer

In using the German language repositories, you will need to make the following adjustments:

  1. Add the language repository(ies) as modules to the installer project.
  2. Add the home language artefacts as a dependency to the installer's home module.
  3. Add he webapp language artefacts as a dependency and overlay to the installer's webapp module.

Adding Repositories as Modules

Clone this wiki locally