+ Start a Discussion
Nagarjuna Reddy.PNagarjuna Reddy.P 

English and client preffered language in vf page

Hi,
    I want to display a input field text in both English and Arabic language in vf page.
ex:  Account Name/ Account name in Arabic 

Thank you.
bhanu_prakashbhanu_prakash
Hi Nagaraju,
Mark as best answer, If it resloves !!
you need to design two custom labels , one for english and one for arabic
Visual force Page
<apex:page id="thepage" controller="PageController">
    <apex:form id="theform">
        <apex:commandlink action="{!changeEnglish}" rerender="theform" value="English" />
        <apex:commandlink action="{!changeArabic}" rerender="theform" value="French" />
        <apex:outputpanel rendered="{!!isArabic}"> English words </apex:outputpanel>
        <apex:outputpanel rendered="{!isArabic}"> Arabic words </apex:outputpanel>
    </apex:form>
</apex:page>
Apex Controller
public with sharing class PageController {
    public boolean isArabic {
        get;
        set;
    }
    public void changeArabic() {
        isArabic = true;
    }
    public void changeEnglish() {
        isArabic = false;
    }
}
Mark as resloved if it helps :) :)
Thanks, 
Bhanu Prakash
visit ForceLearn.com (https://www.forcelearn.com/)