本文整理汇总了PHP中EE_Registry::i18n_js_strings方法的典型用法代码示例。如果您正苦于以下问题:PHP EE_Registry::i18n_js_strings方法的具体用法?PHP EE_Registry::i18n_js_strings怎么用?PHP EE_Registry::i18n_js_strings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EE_Registry
的用法示例。
在下文中一共展示了EE_Registry::i18n_js_strings方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: admin_init
/**
* admin_init
*/
public function admin_init()
{
EE_Registry::$i18n_js_strings = array_merge(EE_Registry::$i18n_js_strings, array('image_confirm' => __('Do you really want to delete this image? Please remember to update your event to complete the removal.', 'event_espresso'), 'event_starts_on' => __('Event Starts on', 'event_espresso'), 'event_ends_on' => __('Event Ends on', 'event_espresso'), 'event_datetime_actions' => __('Actions', 'event_espresso'), 'event_clone_dt_msg' => __('Clone this Event Date and Time', 'event_espresso'), 'remove_event_dt_msg' => __('Remove this Event Time', 'event_espresso')));
}
示例2: load_scripts_styles_edit
public function load_scripts_styles_edit()
{
wp_register_script('ee-event-editor-heartbeat', EVENTS_CAF_ASSETS_URL . 'event-editor-heartbeat.js', array('ee_admin_js', 'heartbeat'), EVENT_ESPRESSO_VERSION, TRUE);
/**
* load accounting js.
*/
add_filter('FHEE_load_accounting_js', '__return_true');
//styles
wp_enqueue_style('espresso-ui-theme');
wp_enqueue_script('event_editor_js');
wp_enqueue_script('ee-event-editor-heartbeat');
$new_strings = array('image_confirm' => __('Do you really want to delete this image? Please remember to update your event to complete the removal.', 'event_espresso'), 'event_starts_on' => __('Event Starts on', 'event_espresso'), 'event_ends_on' => __('Event Ends on', 'event_espresso'), 'event_datetime_actions' => __('Actions', 'event_espresso'), 'event_clone_dt_msg' => __('Clone this Event Date and Time', 'event_espresso'), 'remove_event_dt_msg' => __('Remove this Event Time', 'event_espresso'));
EE_Registry::$i18n_js_strings = array_merge(EE_Registry::$i18n_js_strings, $new_strings);
}