Tribe__Main::load_localize_data()
Load All localization data create by asset.data
Return
(void)
Source
File: src/Tribe/Main.php
public function load_localize_data() {
$datepicker_months = array_values( Tribe__Date_Utils::get_localized_months_full() );
tribe( 'asset.data' )->add( 'tribe_l10n_datatables', array(
'aria' => array(
'sort_ascending' => __( ': activate to sort column ascending', 'tribe-common' ),
'sort_descending' => __( ': activate to sort column descending', 'tribe-common' ),
),
'length_menu' => __( 'Show _MENU_ entries', 'tribe-common' ),
'empty_table' => __( 'No data available in table', 'tribe-common' ),
'info' => __( 'Showing _START_ to _END_ of _TOTAL_ entries', 'tribe-common' ),
'info_empty' => __( 'Showing 0 to 0 of 0 entries', 'tribe-common' ),
'info_filtered' => __( '(filtered from _MAX_ total entries)', 'tribe-common' ),
'zero_records' => __( 'No matching records found', 'tribe-common' ),
'search' => __( 'Search:', 'tribe-common' ),
'all_selected_text' => __( 'All items on this page were selected. ', 'tribe-common' ),
'select_all_link' => __( 'Select all pages', 'tribe-common' ),
'clear_selection' => __( 'Clear Selection.', 'tribe-common' ),
'pagination' => array(
'all' => __( 'All', 'tribe-common' ),
'next' => __( 'Next', 'tribe-common' ),
'previous' => __( 'Previous', 'tribe-common' ),
),
'select' => array(
'rows' => array(
0 => '',
'_' => __( ': Selected %d rows', 'tribe-common' ),
1 => __( ': Selected 1 row', 'tribe-common' ),
),
),
'datepicker' => array(
'dayNames' => Tribe__Date_Utils::get_localized_weekdays_full(),
'dayNamesShort' => Tribe__Date_Utils::get_localized_weekdays_short(),
'dayNamesMin' => Tribe__Date_Utils::get_localized_weekdays_initial(),
'monthNames' => $datepicker_months,
'monthNamesShort' => $datepicker_months, // We deliberately use full month names here,
'monthNamesMin' => array_values( Tribe__Date_Utils::get_localized_months_short() ),
'nextText' => esc_html__( 'Next', 'the-events-calendar' ),
'prevText' => esc_html__( 'Prev', 'the-events-calendar' ),
'currentText' => esc_html__( 'Today', 'the-events-calendar' ),
'closeText' => esc_html__( 'Done', 'the-events-calendar' ),
'today' => esc_html__( 'Today', 'the-events-calendar' ),
'clear' => esc_html__( 'Clear', 'the-events-calendar' ),
),
) );
tribe( 'asset.data' )->add( 'tribe_system_info', array(
'sysinfo_optin_nonce' => wp_create_nonce( 'sysinfo_optin_nonce' ),
'clipboard_btn_text' => __( 'Copy to clipboard', 'tribe-common' ),
'clipboard_copied_text' => __( 'System info copied', 'tribe-common' ),
'clipboard_fail_text' => __( 'Press "Cmd + C" to copy', 'tribe-common' ),
) );
}
Changelog
| Version | Description |
|---|---|
| 4.7 | Introduced. |