Friday, July 28, 2017

Language Translation in VisualForce Page

Salesforce provide functionality through which you can create single VF page and that can be translated in different languages based on language or locale preference of current logged in user.

You need to upload the translation of all custom fields which you are going to use in VF page and can utilize custom labels to display warning, error information on VF page.

In order to render the VF page in particular language, use Language attribute on <apex:page> tag. You can also bind this values with controller variable so that you can render VF page in different language.

<apex:page controller="SK_LocalizationTestController" language="{!selectedLang}">

I have created a very simple VF page to illustrate this functionality by displaying account information. I have dropdown on VF page through which user will select language and VF page will re render to display page in selected language.





Note:
  • If you are displaying page message using <apex:pageMessages>, then use custom label on apex class to display message. Upload all translation for custom label in salesforce.
  • For custom fields also you need to upload language translation. Please refer Translation Workbench under Set Up.
  • The language attribute does accept ISO country codes plus an optional locale like en,en_US,de,de_DE etc.
  • For displaying header or pageblock section title, use custom labels.

More Blogs>>: 
USING DATABASE.UPSERT WITH EXTERNAL ID   
DYNAMIC APEX IN SALESFORCE   
SOQL INJECTION IN SOQL   
CUSTOM METADATA AND CUSTOM SETTINGS IMPLEMENTATION TRICKS   
SMART TABLE USING ANGULARJS IN VISUALFORCE PAGE   
REST API TUTORIAL FOR SALESFORCE   
VISUALFORCE COMPONENT FOR RECORD STATUS BAR   
DYNAMICALLY CREATING AND DESTROYING LIGHTNING COMPONENTS    
RAISING AND HANDLING CUSTOM EVENTS IN sALESFORCE lIGHTNING    
WHY TO USE DESIGN RESOURCE AND HOW TO ADD DYNAMIC OPTION TO DATASOURCE    
PASSING INNER WRAPPER CLASS TO LIGHTNING COMPONENT    
LIGHTNING COMPONENT FOR RECORDTYPE SELECTION FOR ANY SOBJECT    
FETCHING FILE FROM EXTERNAL/PUBLIC URL AND STORING IT IN SALESFORCE   

40 comments:

  1. Croma campus do guide our participants for respective Certifications for Salesforce Training in Noida which is an added advantage to the current market.

    ReplyDelete
  2. Excellent…Amazing…. I’m satisfied to find so many helpful information here within the put up,for latest php jobs in hyderabad. we want work out extra strategies in this regard, thanks for sharing.

    ReplyDelete
  3. This paragraph gives clear idea for the new viewers of blogging, Thanks you.
    Salesforce Training in Noida

    ReplyDelete
  4. I just see the post i am so happy the post of information's.So I have really enjoyed and reading your blogs for these posts.Any way I’ll be subscribing to your feed and I hope you post again soon.

    best selenium training institute in hyderabad
    best selenium online training institute in hyderabad
    best institute for selenium training in hyderabad
    best software testing training institute in hyderabad

    ReplyDelete
  5. This is my first time visit to your blog and I am very interested in the articles that you serve. Provide enough knowledge for me. Thank you for sharing useful and don't forget, keep sharing useful info: interpretation

    ReplyDelete
  6. I’m excited to uncover this page. I need to to thank you for ones time for this particularly fantastic read !! I definitely really liked every part of it and i also have you saved to fav to look at new information in your site.
    german transcription

    ReplyDelete
  7. I liked the content on this site. Would like to visit again.
    Brazilian Portuguese Translation

    ReplyDelete
  8.  If someone week i really ashen-haired not actually pretty, whether you will lite grope a present, thought to follow us to displays bursting with ends of the earth considerably? Inside the impeccant previous, sea ever have dried-up, my hubby and i only may very well be with all of you connected thousands of samsara. agencia de traducción

    ReplyDelete
  9. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    servicenow online training
    best servicenow online training
    top servicenow online training

    ReplyDelete
  10. If more people that write articles involved themselves with writing great content like you, more readers would be interested in their writings. I have learned too many things from your article. Website translation into another language service

    ReplyDelete
  11. Wonderful information, Very impressive and interesting blog. oracle training in chennai

    ReplyDelete
  12. Unless you have the resources to employ full time multilingual copywriters, Top free Elvish translators chances are that you'll be appealing to the services of a professional translator.

    ReplyDelete
  13. I went over this site and I trust you have a ton of awesome data, spared to my bookmarks language learning

    ReplyDelete
  14. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.
    Data science training
    Bigdata Hadoop training

    Data Analytics Training
    Devops training
    Selenium training

    ReplyDelete
  15. You’ve got some interesting points in this article. I would have never considered any of these if I didn’t come across this. Thanks!. Certified Translation

    ReplyDelete
  16. If you set out to make me think today; mission accomplished! I really like your writing style and how you express your ideas. Thank you. learn chinese pdf

    ReplyDelete
  17. Thank you for taking the time and sharing this information with us. It was indeed very helpful and insightful while being straight forward and to the point.


    Docker Kubernetes training in Gurgaon
    AWS cloud training in Gurgaon
    FullStack Development Training in Gurgaon

    ReplyDelete
  18. This particular is usually apparently essential and moreover outstanding truth along with for sure fair-minded and moreover admittedly useful My business is looking to find in advance designed for this specific useful stuffs… traduccion jurada Madrid

    ReplyDelete
  19. AlmaMate offers the best Salesforce training in Noida. It is actually regarded as one of the best training institutes in

    Noida for Salesforce. We offer best-in-class SFDC development training not only in Noida but in pan India location. The

    Salesforce training provided by us is devised to make you ready to deploy.

    Our Salesforce training is aligned with the industry standards and it has been designed in keeping in view all the

    necessary inclusions. AlmaMate ensures 100% placement assistance after successful completion of your training. If you are

    looking forward to making your career in the Information Technology domain then join the best Salesforce training in

    Noida.To get further details of our services simply decision India at: (Toll Free) US: +91 9315269123
    Best Salesforce Training in Noida
    Best Salesforce Training in Delhi
    Salesforce Training in Noida

    ReplyDelete
  20. AlmaMate offers the best Salesforce training in Noida. It is actually regarded as one of the best training institutes in Noida for Salesforce. We offer best-in-class SFDC development training not only in Noida but in pan India location. The Salesforce training provided by us is devised to make you ready to deploy.

    Our Salesforce training is aligned with the industry standards and it has been designed in keeping in view all the necessary inclusions. AlmaMate ensures 100% placement assistance after successful completion of your training. If you are looking forward to making your career in the Information Technology domain then join the best Salesforce training in Noida.To get further details of our services simply decision India at: (Toll Free) US: +91 9315269123
    Best Salesforce Training in Noida
    Best Salesforce Training in Delhi
    Salesforce Training in Noida

    ReplyDelete
  21. Good Post! it was so good to read and useful to improve my knowledge as an updated one, keep blogging

    ReplyDelete
  22. Good Post! it was so good to read and useful to improve my knowledge as an updated one, keep blogging

    ReplyDelete
  23. Infycle Technologies offers the Best Data training in chennai and is widely known for its excellence in giving the best Data Science Certification course in Chennai. Providing quality software programming training with 100% placement & to build a solid career for every young professional in the software industry is the ultimate aim of Infycle Technologies. Apart from all, the students love the 100% practical training,
    which is the specialty of Infycle Technologies. To proceed with your career with a solid base, reach Infycle Technologies through 7502633633.

    ReplyDelete
  24. Want to do Data Science Training in Chennai with Certification Exam? Catch the best features of Data Science training courses with Infycle Technologies, the best Data Science Training & Placement institutes in and around Chennai. Infycle offers the best hands-on training to the students with the revised curriculum to enhance their knowledge. In addition to the Certification & Training, Infycle offers placement classes for personality tests, interview preparation, and mock interviews for clearing the interviews with the best records. To have all it in your hands, dial 7504633633 for a free demo from the experts.No.1 Data Science Training in Chennai | Infycle Technologies

    ReplyDelete
  25. Grab Data Science Certification in Chennai for skyrocketing your career with Infycle Technologies, the best Software Training & Placement institutes in and around Chennai. In addition to the Certification, Infycle also gives the best placement training for personality tests, interview preparation, and mock interviews for leveling up the candidate's grades to a professional level.

    ReplyDelete
  26. Infycle Technologies, the No.1 software training institute in Chennai offers the No.1 Big Data Hadoop Training in Chennai | Infycle Technologies for students, freshers, and tech professionals. Infycle also offers other professional courses such as DevOps, Artificial Intelligence, Cyber Security, Python, Oracle, Java, Power BI, Selenium Testing, Digital Marketing, Data Science, etc., which will be trained with 200% practical classes. After the completion of training, the trainees will be sent for placement interviews in the top MNC's. Call 7502633633 to get more info and a free demo.

    ReplyDelete
  27. Infycle Technologies, the No.1 software training institute in Chennai offers the No.1 Big Data Hadoop training in Chennai for students, freshers, and tech professionals. Infycle also offers other professional courses such as DevOps, Artificial Intelligence, Cyber Security, Python, Oracle, Java, Power BI, Selenium Testing, Digital Marketing, Data Science, etc., which will be trained with 200% practical classes. After the completion of training, the trainees will be sent for placement interviews in the top MNC's. Call 7502633633 to get more info and a free demo. No.1Big Data Hadoop Training in Chennai | Infycle Technologies

    ReplyDelete
  28. Infycle Technologies, the best software training institute in Chennai offers the No.1 Oracle training in Chennai for students, freshers, and tech professionals. In addition to that, other in-demand courses such as Big Data, Java, Python, Power BI, Digital Marketing will be trained with 100% practical classes. Once the completion of training, the trainees will be sent for placement interviews in the top MNC's. Call 7504633633 to get more info and a free demo. Grab Oracle Training in Chennai | Infycle Technologies

    ReplyDelete
  29. Infycle Technologies, the best software training institute in Chennai offers excellent Big Data Hadoop training in Chennai for students, freshers, and tech professionals. Infycle also offers other professional courses such as Java, DevOps, Artificial Intelligence, Cyber Security, Python, Oracle, Java, Power BI, Selenium Testing, Digital Marketing, Data Science, etc., which will be trained with 100% practical classes. After the completion of training, the trainees will be sent for placement interviews in the top MNC's. Call 7504633633 to get more info and a free demo.Get Big Data Hadoop Training in Chennai | Infycle Technologies

    ReplyDelete