fix: polish forum navigation and interface states
This commit is contained in:
1 parent
0933220c70
commit
6947cdaf36
33 files changed
+1615
-360
No files matched your search
+138
-12
@@ -17,8 +17,8 @@
|
||||
"hot": "Latest replies",
|
||||
"newPost": "New post",
|
||||
"loading": "Loading...",
|
||||
"empty": "✨ No posts yet — be the first to publish!",
|
||||
"pinned": "📌 Pinned",
|
||||
"empty": "No posts yet — be the first to publish!",
|
||||
"pinned": "Pinned",
|
||||
"deleted": "(edited)",
|
||||
"report": "Report",
|
||||
"delete": "Delete",
|
||||
@@ -59,7 +59,7 @@
|
||||
"reply": {
|
||||
"submit": "Submit reply",
|
||||
"placeholder": "Write your reply...",
|
||||
"empty": "No replies yet — be the first to comment 🛋️",
|
||||
"empty": "No replies yet — be the first to comment",
|
||||
"replyFailed": "Reply failed: {{msg}}",
|
||||
"delete": "Delete",
|
||||
"confirmDelete": "Are you sure you want to delete this reply?",
|
||||
@@ -72,7 +72,7 @@
|
||||
"passwordHint": "Password (min 6 chars)",
|
||||
"forgotPassword": "Forgot password?",
|
||||
"captchaError": "Wrong captcha, please try again",
|
||||
"registerSuccess": "🎉 Registration successful",
|
||||
"registerSuccess": "Registration successful",
|
||||
"loginSuccess": "Logged in",
|
||||
"logoutSuccess": "Logged out",
|
||||
"login": "Login",
|
||||
@@ -89,6 +89,12 @@
|
||||
"username": "Username",
|
||||
"bio": "Bio",
|
||||
"signature": "Signature",
|
||||
"signatureHint": "Shown below every post; Markdown is supported",
|
||||
"signaturePlaceholder": "Signature...",
|
||||
"avatarFileRequired": "Please select an image file",
|
||||
"avatarTooLarge": "Image must be smaller than 5MB",
|
||||
"avatarUpdated": "Avatar updated",
|
||||
"changeAvatar": "Change avatar",
|
||||
"save": "Save settings",
|
||||
"saved": "Saved!",
|
||||
"saveFailed": "Save failed: {{msg}}",
|
||||
@@ -99,9 +105,9 @@
|
||||
"title": "User profile",
|
||||
"bioEmpty": "This user hasn't written a bio yet",
|
||||
"sendMessage": "Send message",
|
||||
"joined": "📅 Joined {{date}}",
|
||||
"posts": "📝 {{count}} posts",
|
||||
"admin": "🛡️ Admin",
|
||||
"joined": "Joined {{date}}",
|
||||
"posts": "{{count}} posts",
|
||||
"admin": "Admin",
|
||||
"noPosts": "No posts yet",
|
||||
"notFound": "User not found",
|
||||
"loading": "Loading..."
|
||||
@@ -135,8 +141,8 @@
|
||||
"changeEmail": "Change email",
|
||||
"fillAll": "Please fill in all fields",
|
||||
"pwMin": "New password must be at least 6 characters",
|
||||
"pwChanged": "✅ Password changed",
|
||||
"emailChanged": "✅ Email changed"
|
||||
"pwChanged": "Password changed",
|
||||
"emailChanged": "Email changed"
|
||||
},
|
||||
"recovery": {
|
||||
"title": "Recovery codes",
|
||||
@@ -147,8 +153,128 @@
|
||||
"confirmRegenerate": "Regenerating will invalidate all old codes. Continue?",
|
||||
"genFailed": "Generation failed: {{msg}}",
|
||||
"fetchFailed": "Fetch failed: {{msg}}",
|
||||
"newCodes": "🆕 New recovery codes",
|
||||
"saveWarning": "⚠️ Save these codes now — they cannot be viewed again after closing.",
|
||||
"newCodes": "New recovery codes",
|
||||
"saveWarning": "Save these codes now — they cannot be viewed again after closing.",
|
||||
"saved": "I have saved them"
|
||||
},
|
||||
"admin": {
|
||||
"title": "Admin",
|
||||
"reports": "Reports",
|
||||
"users": "Users",
|
||||
"logs": "Event logs",
|
||||
"links": "Links",
|
||||
"forumSettings": "Forum settings",
|
||||
"customPages": "Custom pages",
|
||||
"customCss": "Custom CSS",
|
||||
"common": {
|
||||
"loading": "Loading...",
|
||||
"loadFailed": "Load failed: {{msg}}",
|
||||
"operationFailed": "Operation failed: {{msg}}",
|
||||
"deleteFailed": "Delete failed: {{msg}}",
|
||||
"saveFailed": "Save failed: {{msg}}",
|
||||
"delete": "Delete",
|
||||
"save": "Save",
|
||||
"cancel": "Cancel",
|
||||
"actions": "Actions",
|
||||
"status": "Status",
|
||||
"enabled": "Enabled",
|
||||
"disabled": "Disabled"
|
||||
},
|
||||
"report": {
|
||||
"statusPending": "Pending",
|
||||
"statusApproved": "Deleted",
|
||||
"statusRejected": "Rejected",
|
||||
"approvedNote": "Removed the reported post",
|
||||
"rejectedNote": "Report dismissed",
|
||||
"confirmApprove": "Delete this post and mark the report as resolved?",
|
||||
"empty": "No reports",
|
||||
"anonymous": "Anonymous",
|
||||
"reportedPost": "{{name}} reported a post",
|
||||
"reason": "Reason: {{reason}}",
|
||||
"post": "Post: {{title}} — {{content}}",
|
||||
"untitled": "Untitled",
|
||||
"handler": "Handled by: {{name}}",
|
||||
"deletePost": "Delete post",
|
||||
"reject": "Reject report"
|
||||
},
|
||||
"user": {
|
||||
"roleAdmin": "Admin",
|
||||
"roleUser": "User",
|
||||
"confirmRole": "Set this user's role to {{role}}?",
|
||||
"count": "{{count}} users",
|
||||
"user": "User",
|
||||
"role": "Role",
|
||||
"registeredAt": "Registered",
|
||||
"you": "You",
|
||||
"cannotSelf": "You cannot edit yourself",
|
||||
"makeUser": "Make user",
|
||||
"makeAdmin": "Make admin"
|
||||
},
|
||||
"log": {
|
||||
"empty": "No logs",
|
||||
"time": "Time",
|
||||
"user": "User",
|
||||
"action": "Action",
|
||||
"system": "System"
|
||||
},
|
||||
"link": {
|
||||
"incomplete": "Please complete all fields",
|
||||
"addFailed": "Add failed: {{msg}}",
|
||||
"confirmDelete": "Delete this link?",
|
||||
"namePlaceholder": "Link name",
|
||||
"urlPlaceholder": "Link URL",
|
||||
"add": "Add",
|
||||
"empty": "No links"
|
||||
},
|
||||
"page": {
|
||||
"confirmDelete": "Delete this page?",
|
||||
"title": "Custom pages",
|
||||
"add": "Add page",
|
||||
"empty": "No custom pages",
|
||||
"name": "Name",
|
||||
"columnTitle": "Title",
|
||||
"url": "URL",
|
||||
"edit": "Edit page",
|
||||
"delete": "Delete page",
|
||||
"editTitle": "Edit page",
|
||||
"addTitle": "Add page",
|
||||
"nameRequired": "Enter a page name",
|
||||
"titleRequired": "Enter a navigation label",
|
||||
"contentRequired": "Enter page content",
|
||||
"nameInvalid": "Page names may only contain letters, numbers, hyphens, and underscores",
|
||||
"nameLabel": "Page name",
|
||||
"namePlaceholder": "about (used in URL: ?custom=about)",
|
||||
"nameLocked": "The name cannot be changed",
|
||||
"nameHint": "Letters, numbers, hyphens, and underscores only",
|
||||
"navTitleLabel": "Navigation label",
|
||||
"navTitlePlaceholder": "About us",
|
||||
"contentLabel": "Page content (HTML + CSS + JS)",
|
||||
"contentHelp": "HTML, CSS (<style>), and JS (<script>) are supported and rendered in an isolated sandbox"
|
||||
},
|
||||
"css": {
|
||||
"filenameInvalid": "The file must be named style.css",
|
||||
"sizeInvalid": "The CSS file must be smaller than 1MB",
|
||||
"active": "Custom CSS is active (refresh to apply it)",
|
||||
"confirmDelete": "Delete the custom CSS?",
|
||||
"deleted": "Custom CSS deleted",
|
||||
"title": "Custom CSS",
|
||||
"description": "Upload a style.css file to override the default styles, including CSS variables and dark mode.",
|
||||
"releaseUpload": "Release to upload",
|
||||
"uploadHint": "Click or drag to upload style.css",
|
||||
"save": "Save CSS",
|
||||
"delete": "Delete custom CSS",
|
||||
"warningTitle": "Warning",
|
||||
"warningBody": "Invalid style.css rules can break the forum layout or make the site unusable.",
|
||||
"warningHelp": "Upload a complete, tested file. If something goes wrong, delete the custom CSS to restore the default styles.",
|
||||
"continueUpload": "I understand, upload"
|
||||
},
|
||||
"forum": {
|
||||
"nameRequired": "Enter a forum name",
|
||||
"saved": "Saved!",
|
||||
"saveFailed": "Save failed",
|
||||
"title": "Forum settings",
|
||||
"nameLabel": "Forum name",
|
||||
"save": "Save"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+141
-12
@@ -17,8 +17,8 @@
|
||||
"hot": "最新回复",
|
||||
"newPost": "发布新帖",
|
||||
"loading": "加载中...",
|
||||
"empty": "✨ 还没有帖子,快来发布第一条吧!",
|
||||
"pinned": "📌 置顶",
|
||||
"empty": "还没有帖子,快来发布第一条吧!",
|
||||
"pinned": "置顶",
|
||||
"deleted": "(已编辑)",
|
||||
"report": "举报",
|
||||
"delete": "删除",
|
||||
@@ -59,7 +59,7 @@
|
||||
"reply": {
|
||||
"submit": "提交回复",
|
||||
"placeholder": "写下你的回复...",
|
||||
"empty": "还没有回复,快来抢沙发吧 🛋️",
|
||||
"empty": "还没有回复,快来发表第一条回复吧",
|
||||
"replyFailed": "回复失败:{{msg}}",
|
||||
"delete": "删除",
|
||||
"confirmDelete": "确定要删除这条回复吗?",
|
||||
@@ -72,7 +72,7 @@
|
||||
"passwordHint": "密码(至少6位)",
|
||||
"forgotPassword": "忘记密码?",
|
||||
"captchaError": "验证码错误,请重新计算",
|
||||
"registerSuccess": "🎉 注册成功",
|
||||
"registerSuccess": "注册成功",
|
||||
"loginSuccess": "登录成功",
|
||||
"logoutSuccess": "已退出登录",
|
||||
"login": "登录",
|
||||
@@ -83,9 +83,18 @@
|
||||
"profile": "个人资料",
|
||||
"security": "安全设置",
|
||||
"recovery": "恢复码",
|
||||
"language": "语言",
|
||||
"languageZh": "中文",
|
||||
"languageEn": "English",
|
||||
"username": "用户名",
|
||||
"bio": "个人简介",
|
||||
"signature": "个性签名",
|
||||
"signatureHint": "显示在每篇帖子底部,支持 Markdown",
|
||||
"signaturePlaceholder": "签名...",
|
||||
"avatarFileRequired": "请选择图片文件",
|
||||
"avatarTooLarge": "图片不能超过 5MB",
|
||||
"avatarUpdated": "头像已更新",
|
||||
"changeAvatar": "更换头像",
|
||||
"save": "保存设置",
|
||||
"saved": "保存成功!",
|
||||
"saveFailed": "保存失败:{{msg}}",
|
||||
@@ -96,9 +105,9 @@
|
||||
"title": "用户主页",
|
||||
"bioEmpty": "这个人很懒,什么都没写",
|
||||
"sendMessage": "发私信",
|
||||
"joined": "📅 加入于 {{date}}",
|
||||
"posts": "📝 发了 {{count}} 个帖子",
|
||||
"admin": "🛡️ 管理员",
|
||||
"joined": "加入于 {{date}}",
|
||||
"posts": "发了 {{count}} 个帖子",
|
||||
"admin": "管理员",
|
||||
"noPosts": "还没有发帖",
|
||||
"notFound": "用户不存在",
|
||||
"loading": "加载中..."
|
||||
@@ -132,8 +141,8 @@
|
||||
"changeEmail": "修改邮箱",
|
||||
"fillAll": "请填写完整信息",
|
||||
"pwMin": "新密码至少6位",
|
||||
"pwChanged": "✅ 密码修改成功",
|
||||
"emailChanged": "✅ 邮箱修改成功"
|
||||
"pwChanged": "密码修改成功",
|
||||
"emailChanged": "邮箱修改成功"
|
||||
},
|
||||
"recovery": {
|
||||
"title": "恢复码",
|
||||
@@ -144,8 +153,128 @@
|
||||
"confirmRegenerate": "重新生成将使所有旧恢复码失效,确定继续吗?",
|
||||
"genFailed": "生成失败:{{msg}}",
|
||||
"fetchFailed": "获取失败:{{msg}}",
|
||||
"newCodes": "🆕 新恢复码",
|
||||
"saveWarning": "⚠️ 请妥善保存这些恢复码,关闭窗口后无法再次查看。",
|
||||
"newCodes": "新恢复码",
|
||||
"saveWarning": "请妥善保存这些恢复码,关闭窗口后无法再次查看。",
|
||||
"saved": "我已保存"
|
||||
},
|
||||
"admin": {
|
||||
"title": "管理后台",
|
||||
"reports": "举报处理",
|
||||
"users": "用户管理",
|
||||
"logs": "事件日志",
|
||||
"links": "友情链接",
|
||||
"forumSettings": "论坛设置",
|
||||
"customPages": "自定义页面",
|
||||
"customCss": "自定义 CSS",
|
||||
"common": {
|
||||
"loading": "加载中...",
|
||||
"loadFailed": "加载失败:{{msg}}",
|
||||
"operationFailed": "操作失败:{{msg}}",
|
||||
"deleteFailed": "删除失败:{{msg}}",
|
||||
"saveFailed": "保存失败:{{msg}}",
|
||||
"delete": "删除",
|
||||
"save": "保存",
|
||||
"cancel": "取消",
|
||||
"actions": "操作",
|
||||
"status": "状态",
|
||||
"enabled": "启用",
|
||||
"disabled": "禁用"
|
||||
},
|
||||
"report": {
|
||||
"statusPending": "待处理",
|
||||
"statusApproved": "已删除",
|
||||
"statusRejected": "已驳回",
|
||||
"approvedNote": "已删除违规帖子",
|
||||
"rejectedNote": "举报不成立",
|
||||
"confirmApprove": "确定要删除该帖子并标记举报为已处理吗?",
|
||||
"empty": "暂无举报",
|
||||
"anonymous": "匿名",
|
||||
"reportedPost": "{{name}} 举报了帖子",
|
||||
"reason": "原因:{{reason}}",
|
||||
"post": "帖子:{{title}} — {{content}}",
|
||||
"untitled": "无标题",
|
||||
"handler": "处理人:{{name}}",
|
||||
"deletePost": "删除帖子",
|
||||
"reject": "驳回举报"
|
||||
},
|
||||
"user": {
|
||||
"roleAdmin": "管理员",
|
||||
"roleUser": "普通用户",
|
||||
"confirmRole": "确定要将该用户设为「{{role}}」吗?",
|
||||
"count": "共 {{count}} 位用户",
|
||||
"user": "用户",
|
||||
"role": "角色",
|
||||
"registeredAt": "注册时间",
|
||||
"you": "你",
|
||||
"cannotSelf": "不可操作自己",
|
||||
"makeUser": "设为普通用户",
|
||||
"makeAdmin": "设为管理员"
|
||||
},
|
||||
"log": {
|
||||
"empty": "暂无日志",
|
||||
"time": "时间",
|
||||
"user": "用户",
|
||||
"action": "操作",
|
||||
"system": "系统"
|
||||
},
|
||||
"link": {
|
||||
"incomplete": "请填写完整信息",
|
||||
"addFailed": "添加失败:{{msg}}",
|
||||
"confirmDelete": "确定删除该链接吗?",
|
||||
"namePlaceholder": "链接名称",
|
||||
"urlPlaceholder": "链接地址",
|
||||
"add": "添加",
|
||||
"empty": "暂无友情链接"
|
||||
},
|
||||
"page": {
|
||||
"confirmDelete": "确定要删除这个页面吗?",
|
||||
"title": "自定义页面",
|
||||
"add": "添加页面",
|
||||
"empty": "暂无自定义页面",
|
||||
"name": "名称",
|
||||
"columnTitle": "标题",
|
||||
"url": "URL",
|
||||
"edit": "编辑页面",
|
||||
"delete": "删除页面",
|
||||
"editTitle": "编辑页面",
|
||||
"addTitle": "添加页面",
|
||||
"nameRequired": "请输入页面名称",
|
||||
"titleRequired": "请输入导航栏显示名称",
|
||||
"contentRequired": "请输入页面内容",
|
||||
"nameInvalid": "页面名称只允许字母、数字、短横线和下划线",
|
||||
"nameLabel": "页面名称",
|
||||
"namePlaceholder": "about(用于 URL:?custom=about)",
|
||||
"nameLocked": "名称不可修改",
|
||||
"nameHint": "只允许字母、数字、短横线和下划线",
|
||||
"navTitleLabel": "导航栏显示名称",
|
||||
"navTitlePlaceholder": "关于我们",
|
||||
"contentLabel": "页面内容(HTML + CSS + JS)",
|
||||
"contentHelp": "支持 HTML、CSS(<style>)、JS(<script>),内容会在独立的沙盒中渲染"
|
||||
},
|
||||
"css": {
|
||||
"filenameInvalid": "文件名必须是 style.css",
|
||||
"sizeInvalid": "CSS 文件不能超过 1MB",
|
||||
"active": "自定义 CSS 已生效(刷新页面后应用)",
|
||||
"confirmDelete": "确定要删除自定义 CSS 吗?",
|
||||
"deleted": "已删除自定义 CSS",
|
||||
"title": "自定义 CSS",
|
||||
"description": "上传一个 style.css 文件覆盖默认样式(支持 CSS 变量、暗色模式等)。",
|
||||
"releaseUpload": "松开上传",
|
||||
"uploadHint": "点击或拖拽上传 style.css",
|
||||
"save": "保存 CSS",
|
||||
"delete": "删除自定义 CSS",
|
||||
"warningTitle": "警告",
|
||||
"warningBody": "若上传的 style.css 存在问题,将导致整个论坛界面样式错乱,甚至无法正常使用。",
|
||||
"warningHelp": "请确保 CSS 文件是完整的、经过测试的版本。如出现问题,可点击「删除自定义 CSS」恢复默认样式。",
|
||||
"continueUpload": "我了解,继续上传"
|
||||
},
|
||||
"forum": {
|
||||
"nameRequired": "请输入论坛名称",
|
||||
"saved": "保存成功!",
|
||||
"saveFailed": "保存失败",
|
||||
"title": "论坛设置",
|
||||
"nameLabel": "论坛名称",
|
||||
"save": "保存"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user