You need to sign in to do that
Don't have an account?
Translation does not seem to work property
<apex:pageBlock title="Section: Highlighted Call Reports" rendered="{!IF(sec5.selected==(2^16),'true','false')}" tabStyle="Call_Report__c" lang="en"> <apex:repeat value="{!callReportsHighlight}" var="crh" id="callReportsHighlight" > <apex:pageBlockSection columns="1" title="Section: {!crh.name} [{!crh.Channel__c}]" lang="en"> <apex:pageBlockSectionItem ><apex:outputLabel value="Name"/><apex:outputLink value="/{!crh.Id}" target="_blank">{!crh.Name}</apex:outputLink></apex:pageBlockSectionItem> <apex:outputField value="{!crh.Call_Date__c}" lang="en"/> <apex:pageBlockSectionItem ><apex:outputLabel value="Account Name"/><apex:outputLink value="/{!crh.Account__r.Id}" target="_blank">{!crh.Account__r.Name}</apex:outputLink></apex:pageBlockSectionItem> <apex:pageBlockSectionItem ><apex:outputLabel value="Related Initiative"/><apex:outputLink value="/{!crh.Related_Initiative__r.Id}" target="_blank">{!crh.Related_Initiative__r.Name}</apex:outputLink></apex:pageBlockSectionItem> <apex:outputField value="{!crh.Next_Steps__c}" lang="en"/> <apex:outputField value="{!crh.Summary__c}" lang="en"/> </apex:pageBlockSection> </apex:repeat> </apex:pageBlock> <apex:pageBlock title="Section: Summary Reports" rendered="{!IF(sec6.selected==(2^20),'true','false')}" tabStyle="Call_Report__c" lang="en"> <apex:repeat value="{!callReportsHighlight}" var="crh" id="callReportsSummary"> <apex:pageBlockSection columns="1" title="Section: {!crh.name} [{!crh.Status__c}]" lang="en"> <apex:pageBlockSectionItem ><apex:outputLabel value="Name"/><apex:outputLink value="/{!crh.Id}" target="_blank">{!crh.Name}</apex:outputLink></apex:pageBlockSectionItem> <apex:outputField value="{!crh.Type__c}" lang="en"/> <apex:outputField value="{!crh.Status__c}" lang="en"/> <apex:outputField value="{!crh.Call_Date__c}" lang="en"/> <apex:pageBlockSectionItem ><apex:outputLabel value="Account Name"/><apex:outputLink value="/{!crh.Account__r.Id}" target="_blank">{!crh.Account__r.Name}</apex:outputLink></apex:pageBlockSectionItem> <apex:outputField value="{!crh.Summary__c}" lang="en"/> <apex:outputField value="{!crh.Issues__c}" lang="en"/> <apex:outputField value="{!crh.Training_Update__c}" lang="en"/> <apex:outputField value="{!crh.Next_Steps__c}" lang="en"/> </apex:pageBlockSection> </apex:repeat> </apex:pageBlock>
You're both correct. The language attribute on apex: page is only for use with custom labels. It will not affect any standard labels pulled in by salesforce.
When you use outputField/inputField inside of pageBlockSection to get the automatic label generation it will be localized to the language of the user viewing the page. Log an idea on the IdeaExchange if you're interested in any added functionality.
All Answers
Jim,
$Label is used for accessing 'Custom Labels' not the sobject fieldname labels which I'm referring to.
You're both correct. The language attribute on apex: page is only for use with custom labels. It will not affect any standard labels pulled in by salesforce.
When you use outputField/inputField inside of pageBlockSection to get the automatic label generation it will be localized to the language of the user viewing the page. Log an idea on the IdeaExchange if you're interested in any added functionality.