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
SFDC9999SFDC9999 

Translate system attributes in local language ( Eg: Month )

Hi ,

I have a VF which is populating Month from the Apex code using the system's month. And i am using this in communites( chinnese lanaguage ). My complete coomminities is in chineese except this .Any help?

Thanks,
A
SFDC9999SFDC9999
public List<SelectOption> monthOptions {
    get {
      if ( this.monthOptions == null ) {
        this.monthOptions = new List<SelectOption>{new SelectOption('', System.Label.CCMTY_Month)};
        for ( Integer i = 1; i <= 12; i++ ) {
          DateTime dt = DateTime.newInstance(2015, i, 5);
          this.monthOptions.add(new SelectOption(String.valueOf(i), dt.format('MMMM')));
        }
      }
      return this.monthOptions;
    }
This is the code i am using.