当前位置: 首页>>代码示例>>PHP>>正文


PHP EE_Registry::i18n_js_strings方法代码示例

本文整理汇总了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')));
 }
开发者ID:kaffiemetsuker,项目名称:event-espresso-core,代码行数:7,代码来源:Extend_Events_Admin_Page.core.php

示例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);
 }
开发者ID:vinylthieves,项目名称:kaylyn-kyle,代码行数:14,代码来源:Extend_Events_Admin_Page.core.php


注:本文中的EE_Registry::i18n_js_strings方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。