Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments

Translation of Text in (custom) panelContainer.jsp not working


Level 3

We've created a custom accordion panel with "Add" "Remove" buttons. Now we need to translate these to french.

AEM 6.2 SP1.

Why doesn't i18n.get("Add") give french back? Is this the right api?

We are using ManualTranslation, and http://localhost:4502/libs/cq/i18n/translator.html



<%@include file="/libs/fd/af/components/guidesglobal.jsp"%>
<%@page session="false"%>
<%@ taglib uri="" prefix="fn" %>
<%@page import="java.util.Locale,java.util.ResourceBundle,"%>
<%@include file="/libs/foundation/global.jsp"%>

<% final Locale pageLocale = currentPage.getLanguage(true); 
final ResourceBundle resourceBundle = slingRequest.getResourceBundle(pageLocale); 
I18n i18n = new I18n(resourceBundle); %> 


                        <button name="Add" class="Add af-icon-button" data-guide-addremove="add" data-guide-id="${}" aria-label="${panelItem.addMessage}"><%= i18n.get("Add") %> </button>


1 Reply