Difference between revisions of "SUNScholar/Language"

From Libopedia
Jump to navigation Jump to search
m
m
Line 3: Line 3:
 
</center>
 
</center>
  
;Default Language
+
===Default Language===
 
The default language for all services is defined in the "build.properties" and "dspace.cfg" files.
 
The default language for all services is defined in the "build.properties" and "dspace.cfg" files.
 
  https://github.com/DSpace/DSpace/blob/master/build.properties#L40
 
  https://github.com/DSpace/DSpace/blob/master/build.properties#L40
 
  https://github.com/DSpace/DSpace/blob/master/dspace/config/dspace.cfg#L49
 
  https://github.com/DSpace/DSpace/blob/master/dspace/config/dspace.cfg#L49
  
;Web UI Locale
+
===Web UI Locale===
 
Look for the following in the '''dspace.cfg''' file and configure accordingly ''(define supported locales FIRST, then define the default locale)''.  
 
Look for the following in the '''dspace.cfg''' file and configure accordingly ''(define supported locales FIRST, then define the default locale)''.  
 
  webui.supported.locales = en, en_ZA, de
 
  webui.supported.locales = en, en_ZA, de
Line 16: Line 16:
 
  /home/dspace/<u>[[SUNScholar/Install_DSpace/S03#Step_3.2|source]]</u>/dspace/modules/xmlui/src/main/webapp/i18n/  
 
  /home/dspace/<u>[[SUNScholar/Install_DSpace/S03#Step_3.2|source]]</u>/dspace/modules/xmlui/src/main/webapp/i18n/  
  
;Language customisation
+
===Language customisation===
 
[[SUNScholar/XMLUI_Theme/Language|Click here]] to modify the language files used by the XMLUI interface.
 
[[SUNScholar/XMLUI_Theme/Language|Click here]] to modify the language files used by the XMLUI interface.
  
;References
+
===References===
 
*https://wiki.duraspace.org/display/DSDOC4x/Localization+L10n
 
*https://wiki.duraspace.org/display/DSDOC4x/Localization+L10n
 
*https://wiki.duraspace.org/display/DSDOC4x/Localization+L10n#LocalizationL10n-Enablingadditionallocales
 
*https://wiki.duraspace.org/display/DSDOC4x/Localization+L10n#LocalizationL10n-Enablingadditionallocales

Revision as of 10:06, 31 July 2014

Back to Customisation

Default Language

The default language for all services is defined in the "build.properties" and "dspace.cfg" files.

https://github.com/DSpace/DSpace/blob/master/build.properties#L40
https://github.com/DSpace/DSpace/blob/master/dspace/config/dspace.cfg#L49

Web UI Locale

Look for the following in the dspace.cfg file and configure accordingly (define supported locales FIRST, then define the default locale).

webui.supported.locales = en, en_ZA, de
default.locale = en_ZA

Now, check to see if an appropriate language file exists in one the following folders, if using the XMLUI;

/home/dspace/source/dspace-xmlui/src/main/webapp/i18n/
/home/dspace/source/dspace/modules/xmlui/src/main/webapp/i18n/ 

Language customisation

Click here to modify the language files used by the XMLUI interface.

References