You need to sign in to do that
Don't have an account?

Localized Visualforce page using merge fields for picklist
My org has translation workbench enabled and all the labels, picklist values and messages are translated to different languages. I would like to develop a Visualforce page that shows data collected from several objects in the user's language. Most of the information can be reached using merge fields without programming a controller extension, but merge fields that reference picklist values show the master value, not the label in the user's language, is there any way to translate the picklist value using merge fields, something like "tolabel"? If not, I presume that I will have to develop a controller extension and use Describe functions, or is there any other easier way?
We experience the same problem.
Does anyone have a solution to this?
Moreover, is it possible to select the language at runtime (e.g. the user has a german interface but wants to print an english contract document using pdf-rendering)?
regards
In apex:page tag use language="{!Language}"
In controller set Language, e.g. to 'de'
In page use apex:outputfield value="{!somepicklistfield}"
Thats does the trick for me. Also, dates and currencies are (more) properly formated using outputfield.
We are trying to solve a similar problem. How did you set the language in the controller ?
Hm, interesting - my initials are also PGN.
Anyhow, I my case the user selects a language, since it does not necessarily depends on the user's language. The value is stored in the object Offer, so in the controller:
Best regards,
Per