15
JulIndependence Day OFFER : Learning is Freedom, Get FLAT 25% OFF INDEPENDENCE25
Salesforce has grown to become the most successful customer relationship management solution, which has brought many businesses and their customers together under one roof. It is an integrated platform for CRM which lends power to all the departments in the business, including marketing, sales, commerce, and even the service a combined and single view of every customer. The success of the company can be measured by the fact that more than 150,000 businesses across the world, irrespective of their sizes have shown an unmatched level of growth. The company ever since its conception in 1999 has stayed committed to its time, value and even the equity to improvement in education, equality, and environment. It has helped change the lives of people by the creation of better jobs, lives and even communities.
Custom labels refer to the custom text values, which are often sought from the apex classes, visual force pages, and even lightning components. For supporting the multilingual feature in an application, custom labels which offer a change or translation in the text values of a user into any other language which are supported by the salesforce are used. It is also helpful in providing the best in class user experience, which offers the application in the native language of the user. Thus, we can say that the custom labels are simple values in the text which are used by the users for translation in any of the salesforces supported languages. They give information in the native language of the user. In the case of Salesforce Visualforce page, it is used in three ways:
GotoIISetupIICreateIICustom Labels
Read: An Overview of Salesforce Software Engineer Salary and Career Scope
Visualforce Page Code:
Apex Class:
public class examplecustomLabel { public string cstmLabel {Get; Set;} public examplecustomLabel () { //if you have namespace use system.lable.your_namespace.lable_name //Here German is Custom label name cstmLable = system.Label.Germa; } }
Output
Read: Know The Best Tips To Be Followed For Salesforce Admin Certification Test
It has been seen that the custom labels can be created which can be referenced from various Apex classes, Visualforce pages, and even the Lightning components to make the app multilingual.
Remember, that editing the attributes of the custom labels which are already installed as part of the managed package is not possible. You can only override the existing translations or even give the new translations for all the languages which are not a part of the package.
Translations of the custom labels determine what text will be displayed for a particular value of a label when the default language of the user is the translation language.
Read: How to Create a Free Salesforce Developer Account?
Nearly 5000 custom labels can be created in the organization which can be up to 1000 characters long. The custom labels from the managed packages do not count towards this limit. Custom labels can be added to the application depending on the user interface.
For the creation of the custom labels, you have to enter the Custom Labels in the Quick Find box and then select the Custom Labels. The following syntax can then be used for accessing the labels in the Aura components:
Custom Labels let developers create multilingual applications by the automatic presentation of information in the native language of the user. Custom labels are the text values which can be accessed from the Apex classes, Lightning Components, and even the Visualforce pages.
Read: Is it worth to learn Salesforce? Top 10 Reasons to Learn Salesforce?
A dynamic, highly professional, and a global online training course provider committed to propelling the next generation of technology learners with a whole new way of training experience.
AWS
DevOps
Data Science
Hadoop
Salesforce
QA
Business Analyst
MS SQL Server
Python
Artificial Intelligence
Machine Learning
Tableau
Search Posts
Trending Posts
Related Posts
How To Start Your Career In Salesforce?
690.6k
How to Integrate Salesforce with Outlook, Gmail, & Mailchimp
304.9k
Salesforce Developer Resume: Sample & Step-By-Step Writing Guide
677.4k
Salesforce Development | Importance of Learning Salesforce Development in 2022
2.6k
Salesforce Certifications are in Demand --- Make Sure You Have One!
243.4k
Receive Latest Materials and Offers on Salesforce Course
Interviews