SUNScholar/Language

Back to Customisation

Introduction
Internationalization localization, requires that the language and locale be configured.

Step 1 - Default Language
Edit the following file: nano $HOME//build.properties Go to line 50 and define a language according to: http://www.loc.gov/standards/iso639-2/langhome.html See example below. default.language = en_ZA
 * 1) Default language for metadata values

Step 2 - Default Locale
Edit the following file: nano $HOME//dspace/config/dspace.cfg Go to line 1402 or search for default.locale and define locale according to: http://www.loc.gov/standards/iso639-2/langhome.html

See example below. default.locale = en_ZA
 * 1) i18n -  Locales / Language ####
 * 2) Default Locale
 * 3) A Locale in the form country or country_language or country_language_variant
 * 4) if no default locale is defined the server default locale will be used.

Step 3 - Supported Locales
Edit the following file: nano $HOME//dspace/config/dspace.cfg Go to line 1402 or search for webui.supported.locales and modify accordingly.

See example below. webui.supported.locales = en, de, fr, uk, es, bg, ca, el, et, gl, it, ja, pl, ru, tr For each "webui.supported.locales" a language file must exist, see below for the XMLUI language files customisation.
 * 1) All the Locales, that are supported by this instance of DSpace
 * 2) A comma-separated list of Locales. All types of Locales country, country_language, country_language_variant
 * 3) Note that the appropriate file are present, especially that all the Messages_x.properties are there
 * 4) may be used, e. g: webui.supported.locales = en, de

Step 4 - XMLUI Language files customisation
Click here to modify the language files used by the XMLUI interface.

Language Metadata Export Fix
Type the following when connected to the PostgreSQL database; UPDATE metadatavalue SET text_lang=NULL WHERE text_lang='';

Standards
For international language standards, see the following:
 * Locale
 * ISO 639.2
 * UTF-8

For other metadata standards used see: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Metadata