simcal_get_calendar_names_i18n

Get localized list of months or day names.

Description

(array) simcal_get_calendar_names_i18n( (string) $group, (string) $style = 'full' ); 

Each day or month matches the array index (0-11 for months or 0-6 for days).

Returns (array)

Parameters (2)

0. $group (string)
Either month,, day or meridiem names to localize.
1. $style — Optional. (string) => 'full'
Return names in short or full form (default full long form).

Usage

  1. if ( !function_exists( 'simcal_get_calendar_names_i18n' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'simple-calendar/includes/functions/shared.php'; 
  3.  
  4. // Either 'month', 'day' or 'meridiem' names to localize. 
  5. $group = ''; 
  6.  
  7. // Return names in 'short' or 'full' form (default full long form). 
  8. $style = 'full'; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = simcal_get_calendar_names_i18n($group, $style); 
  12.  

Defined (1)

The function is defined in the following location(s).

/includes/functions/shared.php