+ 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>
I'm not able to view value in french language which i have selected. Please let me know if there is any workaround.


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