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.

Regards

Nick
-- 
Nick dos Remedios
Atlas of Living Australia
http://www.ala.org.au/

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

Hello,

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:choose>

                        <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}">

                                    ${record.processed.attribution.dataProviderName}

                            </a>

                        </c:when>

                        <c:otherwise>

                            <c:set target="${fieldsMap}" property="dataProviderName" value="true" />

                            ${record.processed.attribution.dataProviderName}

                        </c:otherwise>

                    </c:choose>

                </alatag:occurrenceTableRow>

 

 

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?

 

Thanks!