[ https://jira.duraspace.org/browse/DS-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=27693#comment-27693 ]
Onivaldo Rosa Junior commented on DS-1159: ------------------------------------------ Still not fix :( Fix in cited files: change all value="Add" to value="{concat('xmlui.dri2xhtml.forms_',@n,'_add')}" i18n:attr="value" change all value="Remove selected to value="{concat('xmlui.dri2xhtml.forms_',@n,'_remove_selected')}" i18n:attr="value @n is for customization by field like: "Add team" => "Adicionar equipe" nstead of just "Add" => "Adicionar" > Hardcoded button display text in several XMLUI themes (Reference, Mirage, > etc) makes i18n difficult > --------------------------------------------------------------------------------------------------- > > Key: DS-1159 > URL: https://jira.duraspace.org/browse/DS-1159 > Project: DSpace > Issue Type: Bug > Components: XMLUI > Affects Versions: 1.8.2 > Reporter: Tim Donohue > > This was initially reported by Christian Völker on the dspace-tech listserv. > There are several XMLUI themes that have hardcoded button "values" (display > text) which cannot be easily translated via i18n. > These include: > * dri2xhtml: themes/dri2xhtml/structural.xsl (Several "Add" and "Remove > selected" buttons hardcoded) > * dri2xhtml-alt: themes/dri2xhtml-alt/core/forms.xsl (Several "Add" and > "Remove selected" buttons hardcoded) > * Mirage: themes/Mirage/lib/xsl/core/forms.xsl (Several "Add" and "Remove > selected" buttons hardcoded) > In each of these themes, there are lines like: > <input type="submit" value="Add" .. > > Instead, they should use i18n, similar to: > <input type="submit" i18n:attr="value" value="xmlui.general.addbutton" ... > > (As a reference, see the <xsl:template match="dri:options"> in dri2xhtml > structural.xsl, which shows how to use "i18n:attr" properly) -- 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 ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Dspace-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel