I am trying to assign the language dynamically in a Visualforce page which I have specified in controller. Right now it is hard coded as
<apex:page language="de">
........
</apex:page>
Is it possible to achieve this via global variables?
public class controller_1{ public String test {get; set;} public String code {get; set;}
public controller_1()
{
code ='de';
Schema.DescribeFieldResult f = Schema.sObjectType.Lead.fields.Company;
test = f.getLabel();
}
}