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
SF Buzz VutukuriSF Buzz Vutukuri 

How to convert French text to English text

My logic is like if(userprofile=="systemadminstrator") then do something....

But one of my clients is having french language settings, so my logic is getting failed can anyone help me in getting out of it....
Iqrar AhmedIqrar Ahmed
Hi sf buzz,

If you have selected french language then this will not effect on coding but this will effect on your data present in salesforce i.e change systemadminstrator Administrateur système so write your code like following and checked that debug log is running inside block

 if(userprofile=="system adminstrator" || userprofile=="Administrateur système") {

Best Regards
Senior Salesforce/.Net Developer
Phil WeinmeisterPhil Weinmeister
Hi SF Buzz,

I would recommend using ProfileID instead of Profile.Name. That way, it will not matter what the text value of the profile is.

SF Buzz VutukuriSF Buzz Vutukuri


there are clients from many countries who are using our APP, so I want get langugage of the user orgnazation and need to convert the name to their language !!


how to ID works ? @phil weinmeister is it same or any organization ?