WPDev.one
Core Class

WP_Locale

class WP_Locale // Constructor: function Object() { [native code] }

Core class used to store translated data for a locale.

Methods 14 methods

Method / Return Description
__construct()
void

Constructor which calls helper methods to set up object variables.

init()
void

Sets up the translated strings and object properties.

get_weekday()
string

Retrieves the full translated weekday word.

Parameters: $weekday_number: mixed
get_weekday_initial()
string

Retrieves the translated weekday initial.

Parameters: $weekday_name: mixed
get_weekday_abbrev()
string

Retrieves the translated weekday abbreviation.

Parameters: $weekday_name: mixed
get_month()
string

Retrieves the full translated month by month number.

Parameters: $month_number: mixed
get_month_abbrev()
string

Retrieves translated version of month abbreviation string.

Parameters: $month_name: mixed
get_month_genitive()
string

Retrieves translated version of month genitive string.

Parameters: $month_number: mixed
get_meridiem()
string

Retrieves translated version of meridiem string.

Parameters: $meridiem: mixed
register_globals()
void

Global variables are deprecated.

is_rtl()
bool

Checks if current locale is RTL.

_strings_for_pot()
void

Registers date/time format strings for general POT.

get_list_item_separator()
string

Retrieves the localized list item separator.

get_word_count_type()
string

Retrieves the localized word count type.

Properties

Property / Type Description
$weekday
mixed
public
No description available.
$weekday_initial
mixed
public
No description available.
$weekday_abbrev
mixed
public
No description available.
$month
mixed
public
No description available.
$month_genitive
mixed
public
No description available.
$month_abbrev
mixed
public
No description available.
$meridiem
mixed
public
No description available.
$text_direction
mixed
public
No description available.
$number_format
mixed
public
No description available.
$list_item_separator
mixed
public
No description available.
$word_count_type
mixed
public
No description available.

Class Information

Since Version
2.1.0
Source File
wp-includes/class-wp-locale.php
Advertisement