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
AsitAsit 

Retrieve Custom Label of picklist values in VF Page

Hi,

I have followling UI :-

 

   Brand Bonding / Segmentation Filter

Brand--None--  BBL--None-- 
Brand Segment--None-- 
 

I can translate all the outputLabels with Japanese characters.

However, the BBL picklist values still come in English. How can I translate the picklist values??

I have provided the snippet below for this particular section. Your help will highly appreciated.

 

VF--

 

<apex:pageBlockSectionItem id="pbitembbl">
<apex:outputLabel value="{!$Label.lbl_CallScheduling_BBL}" for="bbl"></apex:outputLabel>

<apex:selectList id="bbl" value="{!bblval}" title="BBL" size="1">
<apex:selectOptions value="{!BBLS}"></apex:selectOptions>         // PICKLIST VALUES OF BBL
</apex:selectList>

</apex:pageBlockSectionItem>

 

 

APEX--

 


public List<SelectOption> getBBLS()
{
List<SelectOption> options = new List<SelectOption>();

Schema.DescribeFieldResult fieldResult =
Customer_Brand__c.BBL_Override1__c.getDescribe();
List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
options.add(new SelectOption('','--None--'));
for( Schema.PicklistEntry f : ple)
{
options.add(new SelectOption(f.getLabel(), f.getValue()));
}
return options;
}