mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 17:36:14 -04:00
修改后台中文提示
This commit is contained in:
parent
2aeeca1ad7
commit
0adb6085e3
4 changed files with 40 additions and 36 deletions
|
@ -7,23 +7,23 @@
|
|||
]
|
||||
},
|
||||
"ep_adminpads2_action": "操作",
|
||||
"ep_adminpads2_autoupdate-label": "在记事本更改时自动更新",
|
||||
"ep_adminpads2_autoupdate-label": "在更改时自动更新",
|
||||
"ep_adminpads2_autoupdate.title": "启用或禁用目前查询的自动更新",
|
||||
"ep_adminpads2_confirm": "您确定要删除记事本 {{padID}}?",
|
||||
"ep_adminpads2_confirm": "您确定要删除文档 {{padID}}?",
|
||||
"ep_adminpads2_delete.value": "删除",
|
||||
"ep_adminpads2_last-edited": "上次编辑于",
|
||||
"ep_adminpads2_loading": "正在加载…",
|
||||
"ep_adminpads2_manage-pads": "管理记事本",
|
||||
"ep_adminpads2_manage-pads": "会话管理",
|
||||
"ep_adminpads2_no-results": "没有结果",
|
||||
"ep_adminpads2_pad-user-count": "记事本用户数",
|
||||
"ep_adminpads2_padname": "记事本名称",
|
||||
"ep_adminpads2_pad-user-count": "用户数",
|
||||
"ep_adminpads2_padname": "名称",
|
||||
"ep_adminpads2_search-box.placeholder": "搜索关键词",
|
||||
"ep_adminpads2_search-button.value": "搜索",
|
||||
"ep_adminpads2_search-done": "搜索完成",
|
||||
"ep_adminpads2_search-error-explanation": "搜索记事本时服务器发生错误:",
|
||||
"ep_adminpads2_search-error-title": "获取记事本列表失败",
|
||||
"ep_adminpads2_search-heading": "搜索记事本",
|
||||
"ep_adminpads2_title": "记事本管理",
|
||||
"ep_adminpads2_search-error-explanation": "搜索文档时服务器发生错误:",
|
||||
"ep_adminpads2_search-error-title": "获取列表失败",
|
||||
"ep_adminpads2_search-heading": "搜索",
|
||||
"ep_adminpads2_title": "会话管理",
|
||||
"ep_adminpads2_unknown-error": "未知错误",
|
||||
"ep_adminpads2_unknown-status": "未知状态"
|
||||
}
|
||||
|
|
|
@ -99,7 +99,7 @@ export const App = ()=> {
|
|||
<li><NavLink to={"/help"}> <Construction/> <Trans i18nKey="admin_plugins_info"/></NavLink></li>
|
||||
<li><NavLink to={"/pads"}><NotepadText/><Trans
|
||||
i18nKey="ep_admin_pads:ep_adminpads2_manage-pads"/></NavLink></li>
|
||||
<li><NavLink to={"/shout"}><PhoneCall/>Communication</NavLink></li>
|
||||
<li><NavLink to={"/shout"}><PhoneCall/><Trans i18nKey="admin_communication"/></NavLink></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import {useEffect, useState} from "react";
|
||||
import {SendHorizonal} from 'lucide-react'
|
||||
import {useStore} from "../store/store.ts";
|
||||
import {Trans} from "react-i18next";
|
||||
import * as Switch from '@radix-ui/react-switch';
|
||||
import {ShoutType} from "../components/ShoutType.ts";
|
||||
|
||||
|
@ -36,8 +37,9 @@ export const ShoutPage = ()=>{
|
|||
|
||||
return (
|
||||
<div>
|
||||
<h1>Communication</h1>
|
||||
{totalUsers > 0 && <p>There {totalUsers>1?"are":"is"} currently {totalUsers} user{totalUsers>1?"s":""} online</p>}
|
||||
<h1><Trans i18nKey="admin_communication.page-title"/></h1>
|
||||
{/* {totalUsers > 0 && <p>There {totalUsers>1?"are":"is"} currently {totalUsers} user{totalUsers>1?"s":""} online</p>} */}
|
||||
{totalUsers > 0 && <p> 当前有 {totalUsers} 用户在线</p>}
|
||||
<div style={{height: '80vh', display: 'flex', flexDirection: 'column'}}>
|
||||
<div style={{flexGrow: 1, backgroundColor: 'white', overflowY: "auto"}}>
|
||||
{
|
||||
|
@ -60,7 +62,7 @@ export const ShoutPage = ()=>{
|
|||
e.preventDefault()
|
||||
sendMessage()
|
||||
}} className="send-message search-field" style={{display: 'flex', gap: '10px'}}>
|
||||
<Switch.Root title="Change sticky message" className="SwitchRoot" checked={sticky}
|
||||
<Switch.Root title="更改置顶消息" className="SwitchRoot" checked={sticky}
|
||||
onCheckedChange={() => {
|
||||
setSticky(!sticky);
|
||||
}}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue