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
Praneetha MurakondaPraneetha Murakonda 

How to display error in different language in vf page?

Hi All,

I have a requirement to display message in French language in vf page. For that i have tried by enabling translation workbench and added users. I have created custom label and given Translation information. I have implemented the below code to test.

 public CustomLabelApexDemoController(){
        customLabelValue = System.Label.TestToCheckLang;
    }

<apex:page controller="CustomLabelApexDemoController">
   <apex:form >
     <apex:pageblock >
       Value stored in custom label is: <b>{!customLabelValue}</b>
     </apex:pageblock>
   </apex:form>
</apex:page>
I'm not able to view value in french language which i have selected. Please let me know if there is any workaround.

Thanks

Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Praneetha Murakonda,

Displaying a multilingual error message in visual force Please refer the below link for reference. I hope it will be helpful.

Please mark it as best answer if the information is informative.

Best Regards
Rahul Kumar