Browse Source

返回字段多语言

author
wanghongjun 8 months ago
parent
commit
1060039f12
  1. 4
      app/enterprise/model/User.php
  2. 7
      app/lang/en_us.php
  3. 7
      app/lang/zh_cn.php

4
app/enterprise/model/User.php

@ -31,13 +31,13 @@ class User extends BaseModel
return [
'adminNotice'=>[
'id'=>'admin_notice',
'displayName'=>'系统通知',
'displayName'=>lang('system.notice'),
'avatar'=>getMainHost().'/static/common/img/notice.png',
'name_py'=>'xitongtongzhi',
],
'fileTransfer'=>[
'id'=>-1,
'displayName'=>'我的收藏',
'displayName'=>lang('system.favor'),
'avatar'=>getMainHost().'/static/common/img/file_transfer.png',
'name_py'=>'wodeshoucang',
]

7
app/lang/en_us.php

@ -24,7 +24,12 @@ return [
'apiClose' => 'API is closed',
'appIdError' => 'appId error',
'signError' => 'Signature error',
'tooFast'=>"You visited too fast!"
'tooFast'=>"You visited too fast!",
'notice'=>"System Notice",
'favor'=>"My Collection",
'message'=>"System Message",
'announce'=>"{:num} announcements",
'transFile'=>"Transfer your files",
],
'messageType' => [
'other' => "[Unsupported message type]",

7
app/lang/zh_cn.php

@ -23,7 +23,12 @@ return [
'apiClose'=>"接口已关闭",
'appIdError'=>'appId错误',
'signError'=>'签名错误',
'toofast'=>"您访问的太快了!"
'tooFast'=>"您访问的太快了!",
'notice'=>"系统通知",
'favor'=>"我的收藏",
'message'=>"系统消息",
'announce'=>"{:num} 宣布",
'transFile'=>"传输您的文件",
],
'messageType'=>[
'other'=>"[暂不支持的消息类型]",

Loading…
Cancel
Save