You need to sign in to do that
Don't have an account?
rahulrocks
Custom Labels in Visual Force Composition Template Translation
I have two composition templates being referenced in the parent Visual Force Page. I am working on translation using custom Labels. The Custom Labels within the Composition Tags are not getting translated . If Custom labels do not work within the Composition, what is the solution/work around to get the content in the composition template translated?
<apex: page controller="XYZ" page language="{!$CurrentPage.parameters.lang}"> <!--MyvfPage-->
<apex: composition template="Header">
{!$Label.Hello}
<apex: composition template="Footer">
</apex: page>
Composition Template (Header)
<apex: page controller="ABC" page language="{!$CurrentPage.parameters.lang}">
{!$Label.Hello}
</apex:page>
Composition Template (Footer)
<apex: page controller="ABC" language="{!$CurrentPage.parameters.lang}">
{!$Label.Hello}
</apex:page>
Now i have Custom Label "Hello" Translated to French and Spanish using the translation workbench
On Accessing : MySite.visual.force.com/apex/MyvfPage?lang=fr
Translates Hello in my main VF page , but does not translate the custom label in the composition templates. Thanks
<apex: page controller="XYZ" page language="{!$CurrentPage.parameters.lang}"> <!--MyvfPage-->
<apex: composition template="Header">
{!$Label.Hello}
<apex: composition template="Footer">
</apex: page>
Composition Template (Header)
<apex: page controller="ABC" page language="{!$CurrentPage.parameters.lang}">
{!$Label.Hello}
</apex:page>
Composition Template (Footer)
<apex: page controller="ABC" language="{!$CurrentPage.parameters.lang}">
{!$Label.Hello}
</apex:page>
Now i have Custom Label "Hello" Translated to French and Spanish using the translation workbench
On Accessing : MySite.visual.force.com/apex/MyvfPage?lang=fr
Translates Hello in my main VF page , but does not translate the custom label in the composition templates. Thanks
Do you have french launage is active from the Translation Settings??