I don't recall details, but I remember that it's difficult to use
i18n in variables. So that may be the problem. Alternatively it may
be an issue that you're using it in an attribute; I think there was
a way to specify which attribute of an element to translate but I
don't recall how to do it. Maybe you'll need to addÂ
i18n:attr="action" to your form element.
Note, I'm a bit surprised to see the translation appearing in the
action -- normally the i18n mechanism is for things that are visible
to the user!
cheers,
Andrea
On 10/19/2016 11:41 AM, Gary Browne
wrote:
Hi all,
DSpace 5.5
XMLUI
Tomcat 7
Apache 2.2
PostGreSQL 9.2
I'm new to the XMLUI. I want to use a new message key in a
template. I have put the following in
[dspace]/webapps/xmlui/i18n/messages.xml:
<message key="xmlui.new.key">NewValue</message>
I have then added the following to
[dspace]/webapps/xmlui/themes/MyTheme/lib/xsl/core/page-structure.xsl:
<xsl:variable name="myVar"><i18n:text>xmlui.new.key</i18n:text></xsl:variable>
.
.
<form ... action="{$myVar}/subdir" ...>
but in the HTML output I just get:
<form ... action="" ...>
(NB: [dspace] is the dspace runtime directory - I'm just
trying this stuff live so I don't have to go through the
recompile while I'm developing this small piece of
functionality)
What am I doing wrong?
Thanks,
Gary
--
You received this message because you are subscribed to the Google
Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
Dr Andrea Schweer
Lead Software Developer, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
+64-7-837 9120
--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
|