You need to sign in to do that
Don't have an account?
padma sree 24
How to use translation custom labels in apex class
Hi Team,
Please help me how to use translation custom labels in apex class. I can able to use translation custom labels in vf page as !$Label.customlabelname but i am not able to use translation custom lables in apex class.
I have tried to use ApexPages.Message myMsg1 = new ApexPages.Message(ApexPages.Severity.ERROR,Label.Error_Message); like this but always i am getting error message in english only not in local languages.
Please help how to use this.
Thanks in advance,
padmasree
Please help me how to use translation custom labels in apex class. I can able to use translation custom labels in vf page as !$Label.customlabelname but i am not able to use translation custom lables in apex class.
I have tried to use ApexPages.Message myMsg1 = new ApexPages.Message(ApexPages.Severity.ERROR,Label.Error_Message); like this but always i am getting error message in english only not in local languages.
Please help how to use this.
Thanks in advance,
padmasree
Hi Padmasree,
You need to login with another user whose locale = translated language.
Did you check this?
Thanks,
Saurabh