function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rahulrocksrahulrocks 

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
Raj VakatiRaj Vakati
I dnt see any issue and its wokring as expected .. 

Do you have french launage is active from the Translation Settings??