You need to sign in to do that
Don't have an account?
Retrieve Custom Label of picklist values in VF Page
Hi,
I have followling UI :-
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;
}