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
RathishRathish 

Getting values in different language

Hi,
 
I have a custom object with so many records. There is a picklist field for that custom object. I have added values for this picklist in Chinese in Translation workbench. So If I log in with a user account with language set to Chinese, I can view all the values including picklist values in Chinese.
 
I know by having a user account with language set to chinese it is possible to get the values in Chinese for the picklist in my application.
 
There is a option for language selection in my application. I am dispalying all the records from the custom object in a Datagrid. So if the user is selcting the langauge as Chinese in my application the datagrid values should get changed to Chinese.
But how to get the picklist values in Chinese for the records in Custom object.
 
For Eg:-
Custom object name - Literature Details
Column 1 - Literature Name  ( data type - Text )
Coulmn2 - Category (data type - Picklist)
 
Pick list values for for Column 2
-----------------------
A
B
C
 
 
I have added Chinese values for these values in Transation workbench.
 
The records in Literature Details Custom object
----------
Literature Name      Category
--------------------        ---------
Name1                       A
Name2                       B
Name3                       C
 
I am dispalying these values in a datagrid in my application. So, If the user selects language as Chinese the category value should get displayed in Chinese.
 
Hope you understood my problem. Please let me know if you have any questions.
 
Regards,
 
Rathish.
Best Answer chosen by Admin (Salesforce Developers) 
RathishRathish
Hi Simon,
 
How are you?
 
Please give your valuable suggestions to the above query ASAP.
 
Thanks in advance.
 
Rathish.

All Answers

RathishRathish
Hi Simon,
 
How are you?
 
Please give your valuable suggestions to the above query ASAP.
 
Thanks in advance.
 
Rathish.
This was selected as the best answer
SuperfellSuperfell
You need a user set to the relevant locale, there's no other way to do it.