[
https://jira.duraspace.org/browse/DS-842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=27904#comment-27904
]
Elidoc S&S commented on DS-842:
-------------------------------
Hello Χρίστο and everybody,
We applied this patch in DSpace version 3.1, and with a few minor adjustments
it worked for the greek language!
As Christos and Keiji stated earlier, the directories of the files that need to
be changed are a bit different. Nevertheless, we added the code mentioned in
the initial patch. Please, find a list of the changed files at the end of this
message.
First of all, what we did for the supporedLocale attribute to appear in DRI and
for the language selector to appear in the heading is to clear Tomcat's cache,
in order to force Tomcat to load the new webapps.
To do that, after you have run -mvn package and -ant update, stop Tomcat and
delete the contents inside your CATALINA_HOME folder (in our case a localhost
folder). Once you restart Tomcat, this folder is recreated containing your new
webapps with your just-compiled configuration.
The other thing that we had to change for the language selector to work was to
add a slash in the code that creates the language-change link.
To be more precise, in the file page-structure.xsl line 405 (after inserting
the patch's code) should be:
<xsl:value-of select="concat($context-path,'/?locale-attribute=')"/>
List of changed files:
For the i18nBasicsForXMLUI.patch you need to change the files:
[dspace-src]/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/ViewArtifacts/Navigation.java
[dspace-src]/dspace-xmlui/src/main/java/org/dspace/app/xmlui/cocoon/DSpaceLocaleAction.java
[dspace-src]/dspace/config/dspace.cfg
[dspace-src]/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/eperson/EditProfile.java
For the MirageLanguageSelection.patch you need to change the files:
[dspace-src]/dspace-xmlui/src/main/webapp/themes/Mirage/lib/css/style.css
[dspace-src]/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/core/page-structure.xsl
Hope this works for you too. If it does would you consider adding this feature
to the next DSpace release? It seems that a lot of us need to have multilingual
repositories.
Kiriaki Roditi,
Elidoc Systems & Services, Greece
> Language switch for xmlui and some basic i18n stuff
> ---------------------------------------------------
>
> Key: DS-842
> URL: https://jira.duraspace.org/browse/DS-842
> Project: DSpace
> Issue Type: Improvement
> Components: XMLUI
> Reporter: Claudia Jürgen
> Assignee: Andrea Schweer
> Labels: has-patch
> Fix For: 4.0
>
> Attachments: i18nBasicsForXmlui.patch, MirageLanguageSelection.patch
>
>
> This patch enables the active language selection and adds some basic i18n
> support to prepare for further i18n related changes like i18n dependant input
> forms.
> It changes
> [dspace-src]dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/DSpaceLocaleAction.java
> and stores the active locale in the session and context.
> It adds the information about the supported locales and the current locales
> to the page metadata via
> [dspace-src]/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/Navigation.java
> It drops the dspace.cfg parameter xmlui.supported.locales which is used in
> the xmlui-webapp and xmlui-api in favor of the
> webui.supported.locales, which is used in the dspace-api, jspui-webapp and
> jspui-api. So we got one parameter for the general api and both ui's
> Furthermore it contains an patch for the Mirage theme adding a language
> selection to the header.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel