Files
amneziavpnphp/migrations/006_translations_zh.sql
T
infosave2007 b6cf9cbab7 Add traffic limit functionality
- Add traffic_limit field to vpn_clients table (migration 007)
- Add traffic limit management methods in VpnClient class
- Add API endpoints: set-traffic-limit, traffic-limit-status, overlimit
- Add UI for setting limits when creating clients
- Add traffic limit column in clients table with visual indicators
- Add automatic traffic limit check via cron (bin/check_traffic_limits.php)
- Add translations for traffic limits (6 languages)
- Update README with traffic limit documentation
2025-11-08 09:56:25 +03:00

135 lines
6.0 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- ZH translations
-- This migration adds ZH language translations
INSERT INTO translations (language_code, translation_key, translation_value) VALUES
('zh', 'auth.email', '邮箱'),
('zh', 'auth.login', '登录'),
('zh', 'auth.name', '姓名'),
('zh', 'auth.password', '密码'),
('zh', 'auth.register', '注册'),
('zh', 'backups.create', '创建备份'),
('zh', 'backups.create_confirm', '创建此服务器上所有客户端的备份?'),
('zh', 'backups.created_success', '备份创建成功'),
('zh', 'backups.delete_confirm', '永久删除此备份?'),
('zh', 'backups.deleted_success', '备份删除成功'),
('zh', 'backups.login_required', '请通过API登录以管理备份'),
('zh', 'backups.no_backups', '暂无备份'),
('zh', 'backups.restore', '恢复'),
('zh', 'backups.restore_confirm', '从此备份恢复客户端?现有客户端不会受到影响。'),
('zh', 'backups.restored_success', '已恢复'),
('zh', 'backups.title', '服务器备份'),
('zh', 'clients.actions', '操作'),
('zh', 'clients.add', '添加客户端'),
('zh', 'clients.create', '创建客户端'),
('zh', 'clients.delete', '删除'),
('zh', 'clients.delete_confirm', '永久删除此客户端?'),
('zh', 'clients.download_config', '下载配置'),
('zh', 'clients.expiration', '过期时间'),
('zh', 'clients.expired', '已过期'),
('zh', 'clients.ip', 'IP地址'),
('zh', 'clients.last_handshake', '最后握手'),
('zh', 'clients.name', '客户端名称'),
('zh', 'clients.never', '从不'),
('zh', 'clients.never_expires', '永不过期'),
('zh', 'clients.no_clients', '还没有客户'),
('zh', 'clients.overlimit', '超出限制'),
('zh', 'clients.qr_code', '二维码'),
('zh', 'clients.received', '已接收'),
('zh', 'clients.restore', '恢复'),
('zh', 'clients.revoke', '撤销'),
('zh', 'clients.revoke_confirm', '撤销此客户端的访问权限?'),
('zh', 'clients.sent', '已发送'),
('zh', 'clients.server', '服务器'),
('zh', 'clients.status', '状态'),
('zh', 'clients.sync_stats', '同步统计'),
('zh', 'clients.title', '客户端'),
('zh', 'clients.traffic', '流量'),
('zh', 'clients.traffic_limit', '流量限制'),
('zh', 'clients.unlimited', '无限制'),
('zh', 'common.days', ''),
('zh', 'dashboard.active_clients', '活跃客户端'),
('zh', 'dashboard.add_first_server', '添加第一个服务器'),
('zh', 'dashboard.get_started', '从添加第一个VPN服务器开始'),
('zh', 'dashboard.no_servers', '暂无服务器'),
('zh', 'dashboard.quick_actions', '快捷操作'),
('zh', 'dashboard.recent_servers', '最近的服务器'),
('zh', 'dashboard.title', '仪表板'),
('zh', 'dashboard.total_clients', '客户端总数'),
('zh', 'dashboard.total_servers', '服务器总数'),
('zh', 'dashboard.total_traffic', '总流量'),
('zh', 'dashboard.welcome', '欢迎使用Amnezia VPN管理面板'),
('zh', 'form.cancel', '取消'),
('zh', 'form.close', '关闭'),
('zh', 'form.create', '创建'),
('zh', 'form.loading', '加载中...'),
('zh', 'form.processing', '处理中...'),
('zh', 'form.save', '保存'),
('zh', 'form.submit', '提交'),
('zh', 'form.update', '更新'),
('zh', 'menu.clients', '客户端'),
('zh', 'menu.dashboard', '仪表板'),
('zh', 'menu.logout', '退出'),
('zh', 'menu.servers', '服务器'),
('zh', 'menu.settings', '设置'),
('zh', 'menu.users', '用户'),
('zh', 'message.confirm', '确定吗?'),
('zh', 'message.deleted', '删除成功'),
('zh', 'message.deployed', '部署成功'),
('zh', 'message.error', '发生错误'),
('zh', 'message.saved', '保存成功'),
('zh', 'message.success', '操作完成'),
('zh', 'servers.actions', '操作'),
('zh', 'servers.add', '添加服务器'),
('zh', 'servers.clients', '客户端'),
('zh', 'servers.delete', '删除'),
('zh', 'servers.deploy', '部署'),
('zh', 'servers.edit', '编辑'),
('zh', 'servers.host', '主机'),
('zh', 'servers.name', '名称'),
('zh', 'servers.port', '端口'),
('zh', 'servers.status', '状态'),
('zh', 'servers.title', '服务器'),
('zh', 'servers.view', '查看'),
('zh', 'settings.actions', '操作'),
('zh', 'settings.api_key_configured', 'API密钥已配置'),
('zh', 'settings.api_keys', 'API密钥'),
('zh', 'settings.api_keys_desc', '配置外部服务的API密钥'),
('zh', 'settings.auto_translate', '自动翻译'),
('zh', 'settings.change_password', '修改密码'),
('zh', 'settings.confirm_password', '确认密码'),
('zh', 'settings.confirm_translate', '开始自动翻译?这可能需要几分钟。'),
('zh', 'settings.current_password', '当前密码'),
('zh', 'settings.description', '管理面板配置和API集成'),
('zh', 'settings.error_empty_key', 'API密钥不能为空'),
('zh', 'settings.error_invalid_key', '无效的API密钥格式'),
('zh', 'settings.error_key_test', 'API密钥测试失败'),
('zh', 'settings.for_translation', '用于自动翻译'),
('zh', 'settings.get_key_at', '在此获取API密钥'),
('zh', 'settings.key_saved', 'API密钥保存成功'),
('zh', 'settings.keys', '密钥'),
('zh', 'settings.language', '语言'),
('zh', 'settings.min_6_chars', '最少6个字符'),
('zh', 'settings.new_password', '新密码'),
('zh', 'settings.no_api_key', '未配置API密钥。自动翻译将无法工作。'),
('zh', 'settings.profile', '个人资料'),
('zh', 'settings.progress', '进度'),
('zh', 'settings.skip_validation', '跳过验证(不测试直接保存)'),
('zh', 'settings.translation_complete', '翻译完成'),
('zh', 'settings.translation_status', '翻译状态'),
('zh', 'settings.translations', '翻译'),
('zh', 'settings.users', '用户'),
('zh', 'status.active', '活跃'),
('zh', 'status.deploying', '部署中'),
('zh', 'status.disabled', '已禁用'),
('zh', 'status.error', '错误'),
('zh', 'status.inactive', '不活跃'),
('zh', 'users.add_user', '添加用户'),
('zh', 'users.administrator', '管理员'),
('zh', 'users.all_users', '所有用户'),
('zh', 'users.created', '已创建'),
('zh', 'users.delete_confirm', '删除 {0}'),
('zh', 'users.role', '角色'),
('zh', 'users.role_admin', '管理员'),
('zh', 'users.role_user', '用户')
ON DUPLICATE KEY UPDATE translation_value=VALUES(translation_value);