新bp消息本地化脚本(大堆$params=数组())

本地化消息UI所需的字符串

描述

参数

$params

(大堆)(可选)包含脚本所需JS字符串的关联数组

默认值:array()

回来

(数组)如果需要,为消息UI使用具有特定字符串的相同数组。

来源

文件:bp templates/bp nouveau/includes/messages/functions.php

函数bp_nouveau messages_localize_scripts($params=array()){if(!bp_is_user_messages()){return$params;}$params['messages']=array('errors'=>array('send_to'=>),'buddyboss'),'message_content'=>。('请在邮件中添加一些内容','buddyboss'),'nonces=>array('send'=>wp\u create\u nonce('messages\u send\u message')、'load\u recipient'=>wp\u create\u nonce('messages\u load\u recipient')、'loading'=>('messages\u recipient')、'buddyboss'、'doingAction'=>array('read'=>。'Marking messages as read.Please wait'、'buddyboss')、'unread'=>__(“正在将邮件标记为未读。请稍候。”、“buddyboss”)、“delete”=>(删除邮件。请稍候)、“buddyboss”)、“star”=>(启动邮件。请稍候)、“buddyboss”)、“unstar”=>(取消启动邮件。请稍候)、“buddyboss”)、“delete\u确认”=>__(“是否确实要删除此对话?这将永久删除对话历史记录,并且无法撤消。”、“buddyboss”)、“bulk_actions”=>bp_nouveau_messages_get_bulk_actions()、“howtoBulk”=>。(“使用选择框定义批量操作,然后单击要应用的✓;按钮。”、“buddyboss”),“toOthers”=>array('one'=>uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu('messages','star'){$params['messages']=array\u merge('params['messages'],array('strings'=>array('text\u unstar'=>)('unstar','buddyboss'),'text\u star'=>('star','buddyboss'),'title\u unstar'=>('Starred','buddyboss'),'title\u star=>('Not Starred','buddyboss'),'title\u unstar'=>__('Remove all started messages in this thread'、'buddyboss')、'title_star_thread'=>>('star the first messages in this thread'、'buddyboss')、'is single_thread'=>(int)bp_is_messages_conversation()、'star_counter'=>0、'unstar__counter'=>0));}//好友处于活动状态,用于强制好友发送邮件。如果(bp_is'>('Friends处于活动状态('Friends){$params['messages']['force_Friendly_to_message']=bp_force_Friendly_to_message();}返回$params;}

变更日志

变更日志
版本 描述
BuddyPress 3.0.0 介绍。

问题?

我们随时乐意为您提供代码或其他问题的帮助!搜索我们的开发者文档,联系支持,或与我们的销售团队.