<?php
/**
 * 通用翻译扩展 - 中文
 * 此文件包含所有前端页面需要的额外翻译
 */

$lang_extensions_zh = array(
    // 文件管理相关
    'file' => array(
        'title' => '文件管理',
        'current_path' => '当前路径',
        'upload' => '上传文件',
        'create_folder' => '新建文件夹',
        'create_file' => '新建文件',
        'file_name' => '文件名',
        'file_size' => '大小',
        'file_type' => '类型',
        'modified_time' => '修改时间',
        'permissions' => '权限',
        'actions' => '操作',
        'download' => '下载',
        'rename' => '重命名',
        'copy' => '复制',
        'move' => '移动',
        'compress' => '压缩',
        'extract' => '解压',
        'edit_file' => '编辑',
        'view_file' => '查看',
        'delete_confirm' => '确定要删除吗？',
        'folder' => '文件夹',
        'file' => '文件',
        'back_parent' => '返回上级',
        'select_all' => '全选',
        'batch_delete' => '批量删除',
        'batch_download' => '批量下载',
        'search_files' => '搜索文件',
        'file_content_search' => '文件内容搜索',
        'empty_folder' => '文件夹为空',
        'upload_success' => '上传成功',
        'upload_failed' => '上传失败',
    ),
    
    // 备份相关
    'backup' => array(
        'title' => '备份管理',
        'create_backup' => '创建备份',
        'backup_list' => '备份列表',
        'backup_name' => '备份名称',
        'backup_size' => '备份大小',
        'backup_time' => '备份时间',
        'backup_type' => '备份类型',
        'restore' => '恢复',
        'download_backup' => '下载备份',
        'delete_backup' => '删除备份',
        'website_backup' => '网站备份',
        'database_backup' => '数据库备份',
        'full_backup' => '完整备份',
        'creating' => '创建中...',
        'backup_success' => '备份成功',
        'backup_failed' => '备份失败',
        'restore_success' => '恢复成功',
        'restore_failed' => '恢复失败',
        'auto_backup' => '自动备份',
        'manual_backup' => '手动备份',
    ),
    
    // 流量统计相关
    'traffic' => array(
        'title' => '流量统计',
        'today_traffic' => '今日流量',
        'week_traffic' => '本周流量',
        'month_traffic' => '本月流量',
        'total_traffic' => '总流量',
        'traffic_chart' => '流量图表',
        'daily_stats' => '每日统计',
        'date' => '日期',
        'traffic' => '流量',
        'requests' => '请求数',
        'avg_bandwidth' => '平均带宽',
        'peak_bandwidth' => '峰值带宽',
        'traffic_limit' => '流量限制',
        'traffic_usage' => '流量使用',
        'remaining_traffic' => '剩余流量',
    ),
    
    // 计划任务相关
    'cron' => array(
        'title' => '计划任务',
        'task_list' => '任务列表',
        'add_task' => '添加任务',
        'task_name' => '任务名称',
        'execution_cycle' => '执行周期',
        'script_content' => '脚本内容',
        'last_execution' => '最后执行',
        'next_execution' => '下次执行',
        'task_status' => '状态',
        'enabled' => '已启用',
        'disabled' => '已禁用',
        'enable' => '启用',
        'disable' => '禁用',
        'execute_now' => '立即执行',
        'execution_log' => '执行日志',
        'every_minute' => '每分钟',
        'every_hour' => '每小时',
        'every_day' => '每天',
        'every_week' => '每周',
        'every_month' => '每月',
        'custom' => '自定义',
    ),
    
    // 订单相关
    'order' => array(
        'title' => '订单记录',
        'order_no' => '订单号',
        'order_type' => '订单类型',
        'amount' => '金额',
        'order_status' => '状态',
        'create_time' => '创建时间',
        'pay_time' => '支付时间',
        'payment_method' => '支付方式',
        'pending' => '待支付',
        'paid' => '已支付',
        'cancelled' => '已取消',
        'refunded' => '已退款',
        'view_detail' => '查看详情',
        'pay_now' => '立即支付',
        'cancel_order' => '取消订单',
        'order_detail' => '订单详情',
        'recharge' => '充值',
        'renewal' => '续费',
        'upgrade' => '升级',
    ),
    
    // 支付相关
    'payment' => array(
        'title' => '充值中心',
        'balance' => '余额',
        'recharge_amount' => '充值金额',
        'payment_method' => '支付方式',
        'alipay' => '支付宝',
        'wechat' => '微信支付',
        'bank_card' => '银行卡',
        'please_select_amount' => '请选择充值金额',
        'custom_amount' => '自定义金额',
        'submit_payment' => '提交支付',
        'payment_success' => '支付成功',
        'payment_failed' => '支付失败',
        'payment_cancelled' => '支付已取消',
        'recharge_history' => '充值记录',
        'current_balance' => '当前余额',
    ),
    
    // FTP设置相关
    'ftp' => array(
        'title' => 'FTP设置',
        'ftp_account' => 'FTP账号',
        'ftp_password' => 'FTP密码',
        'ftp_port' => 'FTP端口',
        'ftp_host' => 'FTP主机',
        'root_directory' => '根目录',
        'status' => '状态',
        'modify_password' => '修改密码',
        'reset_password' => '重置密码',
        'connection_info' => '连接信息',
        'passive_mode' => '被动模式',
        'active' => '活动',
        'inactive' => '未激活',
    ),
    
    // SQL管理相关
    'sql' => array(
        'title' => 'SQL管理',
        'database_name' => '数据库名',
        'database_user' => '数据库用户',
        'database_password' => '数据库密码',
        'database_host' => '数据库主机',
        'database_port' => '数据库端口',
        'database_size' => '数据库大小',
        'table_count' => '表数量',
        'phpmyadmin' => 'phpMyAdmin',
        'import_sql' => '导入SQL',
        'export_sql' => '导出SQL',
        'optimize_database' => '优化数据库',
        'repair_database' => '修复数据库',
        'database_backup' => '数据库备份',
    ),
    
    // SSL证书相关
    'ssl' => array(
        'title' => 'SSL证书管理',
        'ssl_status' => 'SSL状态',
        'certificate' => '证书',
        'private_key' => '私钥',
        'certificate_chain' => '证书链',
        'issue_date' => '颁发日期',
        'expiry_date' => '到期日期',
        'days_remaining' => '剩余天数',
        'enable_ssl' => '启用SSL',
        'disable_ssl' => '禁用SSL',
        'force_https' => '强制HTTPS',
        'auto_renew' => '自动续期',
        'apply_certificate' => '申请证书',
        'upload_certificate' => '上传证书',
        'free_certificate' => '免费证书',
        'paid_certificate' => '付费证书',
    ),
    
    // 表单通用
    'form' => array(
        'required_field' => '必填项',
        'optional_field' => '选填项',
        'please_input' => '请输入',
        'please_select' => '请选择',
        'please_upload' => '请上传',
        'input_error' => '输入错误',
        'format_error' => '格式错误',
        'save_success' => '保存成功',
        'save_failed' => '保存失败',
        'update_success' => '更新成功',
        'update_failed' => '更新失败',
        'delete_success' => '删除成功',
        'delete_failed' => '删除失败',
        'operation_success' => '操作成功',
        'operation_failed' => '操作失败',
        'confirm_operation' => '确认操作',
        'cancel_operation' => '取消操作',
        'new' => '新版',
        'old' => '旧版',
    ),
    
    // 时间日期
    'datetime' => array(
        'year' => '年',
        'month' => '月',
        'day' => '天',
        'hour' => '小时',
        'minute' => '分钟',
        'second' => '秒',
        'today' => '今天',
        'yesterday' => '昨天',
        'this_week' => '本周',
        'this_month' => '本月',
        'this_year' => '今年',
        'custom_time' => '自定义时间',
    ),
);

// 合并到主语言数组
foreach ($lang_extensions_zh as $category => $translations) {
    if (isset($lang[$category])) {
        $lang[$category] = array_merge($lang[$category], $translations);
    } else {
        $lang[$category] = $translations;
    }
}
?>
