[Ala-portal] Internacionalization (i18n) of the Hubs module

Nick.Dosremedios at csiro.au Nick.Dosremedios at csiro.au
Fri Mar 21 00:08:53 CET 2014

Hi Suelane,

The tag file in /webapp/WEB-INF/tags/occurrenceTableRow.tag has some code to handle i18n codes. For the fieldName to internationalised, you need to add an extra param of fieldNameIsMsgCode="true”.  E.g.

<alatag:occurrenceTableRow annotate="false" section="dataset" fieldCode="dataProvider" fieldNameIsMsgCode="true" fieldName="record.dataProvider.label">

See if that works for you.


Nick dos Remedios
Atlas of Living Australia

From: "Suelane G. Fontes" <suelane at uol.com.br<mailto:suelane at uol.com.br>>
Date: Friday, 21 March 2014 3:05 am
To: "ala-portal at lists.gbif.org<mailto:ala-portal at lists.gbif.org>" <ala-portal at lists.gbif.org<mailto:ala-portal at lists.gbif.org>>
Subject: [Ala-portal] Internacionalization (i18n) of the Hubs module

I am doing the internacionalization (i18n) of the Hubs module (recordCoreDiv.jsp file) and I am not getting success in the FieldName property update in block command ‘<alatag:occurrenceTableRow’, as showing below:

<alatag:occurrenceTableRow annotate="false" section="dataset" fieldCode="dataProvider" fieldName="Data Provider">
                        <c:when test="${record.processed.attribution.dataProviderUid != null && not empty record.processed.attribution.dataProviderUid}">
                            <c:set target="${fieldsMap}" property="dataProviderUid" value="true" />
                            <c:set target="${fieldsMap}" property="dataProviderName" value="true" />
                            <a href="${collectionsWebappContext}/public/show/${record.processed.attribution.dataProviderUid}">
                            <c:set target="${fieldsMap}" property="dataProviderName" value="true" />

I would like to update fieldName property with data key located at the messages_pt_BR.properties file.

<fmt:message key="subtitDetHub18"/>

I tried to do it and an error has occurred. Is there other way to do it?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gbif.org/pipermail/ala-portal/attachments/20140320/c5b1e3ec/attachment.html 

More information about the Ala-portal mailing list