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
Manasa GuptaManasa Gupta 

Translation of Labels,fields and displaying them.

Hi,

 

 I have a scenario :

 

I have 2 visualforce page.

In page one user entering all the Info, and one of the fields is Country which is a picklist.

I am populating picklist values reading from Account's country field.

 

This page has to be translated to Italian. For this in URL i have added lang=it.

When the page loads the picklist values are inItalian.

 

ON confirming on this page, i am going to a summary page where i jus list out all the values enter by the user.

Here Country field value is not coming in Italy though in the URL I am specifying it as lang = it.

 

 

Below is the code on how i am accepting the value from user on page 1:

 

<apex:outputLabel value="{!$Label.outLabel_country}" for="con"><span style="color:red;font-size:large;vertical-align:top;">*</span></apex:outputLabel>
<apex:selectList style="width: 180px" id="con" value="{!custDetails.country}" multiselect="false" size="1">
<apex:selectOptions value="{!ListCountry}"/>
</apex:selectList>

 

 

below is the code on how i am displaying on page 2:

 

<apex:outputLabel value="{!$Label.outLabel_country} : " for="con"/>
<apex:outputText id="con" value="{!custDetails.country}"/>

 

I am not even reading any values from Database.

 

Please guide on how to handle this.