You need to sign in to do that
Don't have an account?
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
Displaying a multilingual error message in visual force Please refer the below link for reference.
- https://salesforce.stackexchange.com/questions/706/validation-rule-error-message-in-other-language
- https://developer.salesforce.com/forums/?id=906F0000000984LIAQ
- https://help.salesforce.com/articleView?id=000176834&type=1
I hope it will be helpful.Please mark it as best answer if the information is informative.
Best Regards
Rahul Kumar