switch between two language in xmlui

16 views
Skip to first unread message

zahra shahsavan

unread,
Sep 3, 2019, 10:51:25 AM9/3/19
to DSpace Community
hello
im using dspace 6 and i want to have two language - persian & english -on xmlui
it is working fine.
but there is no way to switch manually between two language
how can i fix it?
thanks

Tim Donohue

unread,
Sep 4, 2019, 11:54:14 AM9/4/19
to zahra shahsavan, DSpace Community
Hello,

It sounds like you may have forgotten to set the "webui.supported.locales" setting in your local.cfg (or dspace.cfg).  There are two main language settings for the UI, and they are located here: https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace/config/dspace.cfg#L1236-L1245

The "default.locale" is the default language you want all users to use.  But the "webui.supported.locales" is the list of all locales that you are making available from the UI.

After setting "webui.supported.locales" (and restarting Tomcat), you should see the various language options listed in the upper right of the XMLUI.  How they are displayed may depend on the theme you are using. But, on our demo site (running Mirage 2), they are displayed as a dropdown (next to the "Login" link): http://demo.dspace.org/xmlui/

If you run into more issues, let us know on this list.

Tim

From: dspace-c...@googlegroups.com <dspace-c...@googlegroups.com> on behalf of zahra shahsavan <zahra.sha...@gmail.com>
Sent: Saturday, August 31, 2019 2:31 AM
To: DSpace Community <dspace-c...@googlegroups.com>
Subject: [dspace-community] switch between two language in xmlui
 
--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-communi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-community/2a0d8976-310a-40a2-a2eb-d42f49fe5cc8%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages