add another language to dspace

to add another language to dspace follow these steps :

if you using JSPUI

webui.supported.locales = ar, en

and you can set the default language 

default.locale = ar

now add you language  messages file to you dspace in the path

dspace-source/dspace-api/src/main/resources/

before start instalation and name the file like this

Messages_ar.properties

 =================================================

if you are using XMLUI 

add you language to dspace.cfg file 

xmlui.supported.locales = ar, en

and your langauge file 

messages_ar.xml

to the path 

dspace\webapps\xmlui\i18n

 

and now you add language switch html code to your theme file in the theme folder 

dspace\webapps\xmlui\themes

for example : if you use mirage theme add it in the file 

dspace\webapps\xmlui\themes\Mirage\lib\xsl\core\page-structure.xsl

any where you want 

like this

 <div style=”margin-right:300px;direction:rtl”> language :: <a href=”/xmlui?locale-attribute=ar”> Arabic</a> | <a href=”/xmlui?locale-attribute=en”> English </a> </div>

Advertisements

17 thoughts on “add another language to dspace

  1. In xmlui
    where to add xmlui.supported.locales = ar, en in whic dspace.cfg??

  2. Is there any updates regard RTL in XMLui Mirage2

  3. yes i have RTL Mirage2 , you only need to change the css file for RTL

    • One more question please, is there any language switcher for changing the language and direction or loading RTL CSS

  4. you can check the locale variable in page-structure.xsl

  5. hi, i need change the language of my Mirage Interface in Dspace. I’m working the 3.2 version .. Make the adjusts but send error in div or a, say that is a non correct language programing. I write from Argentina and i need three languages changes .. Spanish, Portugues and English. thank you so much…

  6. you can only change the text in messages.xml file in i18n folder
    be sure that the file encode in UTF8

  7. Thank you so much amdmaher make the prove in my house .. i’ve DSpace 4.2 and it’s all ok. I will make the prove in the 3.2 DSpace installation! 😉

  8. Hi all,
    I want to set default language to Vietnamese by change some values in dspace.cfg as follow:

    default.locale = vi
    webui.supported.locales = vi, en

    Then i restart tomcat7 service (i install dspace in Ubuntu 14.04), but it still in English by default.

    Any helps?

    Thanks!

  9. Can we do it for Some Indian Languages like Hindi , Bangla, Telugu, etc. If so , is there any procedure for JSPUI and XMLUI

  10. yes , the localization can applied for any languages

  11. Thanks for the reply.

    But we are not able to find any tutorials for the localization and we did some configuration just like the above arabic language like renamed Messages_hi.properties ( HI –> Hindi from Indian Langauges ) .We are getting as some encoded text but not Hindi ..

    Requesting to help with the above.

  12. i think all the languages are the same

  13. I am trying to put image upload in addition to the fields in item creation in jspui of dspace6.0.This is for input box , onebox I am trying to find it for image upload in inputforms.xml

  14. i want to add urdu language in dspace 4.0 but not getting message_ur.properties file , what to do , please help

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s