WebCenter Translation from Right To Left (Arabic) doesnt Working (Doc ID 1447915.1)

Last updated on JUNE 13, 2012

Applies to:

Oracle WebCenter Portal - Version 11.1.1.5.0 and later
Information in this document applies to any platform.

Symptoms


When trying to perform the page translation from English to Arabic with all
necessary internationalization steps and Resource Bundles being setup
correctly. The Right-> Left is not working, however, English to Arabic translation
occurs.

Same performed on plain ADF application doesnt reproduce the issue.
Attaching the ADF test case project to the Bug for reference.

Please refer to step by step testcase reproduced with WCP as below:

1. Created a plain new WebCenter portal application.
Added below code to faces-config.xml

<locale-config>
<default-locale>en</default-locale>
<supported-locale>en</supported-locale>
<supported-locale>ar</supported-locale>
</locale-config>
<message-bundle>com.kacst.ucm.recruitment.resourcebundle.KACSTRecruitmentReso
urceBundle</message-bundle>



2. Created a new class called
"com.kacst.ucm.recruitment.internationalization.KACSTRecruitmentChangeLocale.java" in Application Sources

3. Added "<right-to-left>#{view.locale.language=='ar' ? 'true' :
'false'}</right-to-left>" to trinidad-config.xml

4. Created localePage.jspx and added the following code.

<f:view locale="#{kacstRecruitmentChangeLocale.preferedLocale}">
<af:document id="d1">
<af:form id="f1">
<af:forEach var="LocaleVar"
items="#{kacstRecruitmentChangeLocale.supportLocaleList}">
<af:commandLink id="toggle" text="#{LocaleVar.label}"
shortDesc="#{LocaleVar.value}"
actionListener="#{kacstRecruitmentChangeLocale.changeLocaleActionListner}"
rendered="#{view.locale.language==LocaleVar.value ? 'false' : 'true'}"
immediate="true" />

</af:forEach>

<af:commandButton text=" Dummy Button" id="cb1"/><br/>
<af:outputText value="#{portalBundle['FOOTER.COPYRIGHT']}"/>
</af:form>
</af:document>
</f:view>



5. Add resource budle in the project properties :
Specify the resource bundle path as
com.kacst.ucm.recruitment.resourcebundle.KACSTRecruitmentResourceBundle
in project properties for the application.

6. Add the below in adfc-config.xml

<managed-bean>
<managed-bean-name>kacstRecruitmentChangeLocale</managed-bean-name>

<managed-bean-class>com.kacst.ucm.recruitment.internationalization.KACSTRecru
itmentChangeLocale</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms