38451-vm/includes/lang.php
2026-02-16 05:50:45 +00:00

276 lines
13 KiB
PHP

<?php
session_start();
$lang = $_SESSION['lang'] ?? 'en';
if (isset($_GET['lang'])) {
$lang = $_GET['lang'] === 'zh' ? 'zh' : 'en';
$_SESSION['lang'] = $lang;
}
$translations = [
'zh' => [
'home' => '首页',
'market' => '行情',
'second_contract' => '秒合约',
'spot' => '现货交易',
'contract' => '合约交易',
'mining' => '挖矿',
'swap' => '闪兑',
'personal' => '个人中心',
'login' => '登入',
'register' => '注册',
'logout' => '退出',
'language' => '语言选择',
'footer_about' => '关于',
'footer_product' => '产品',
'footer_support' => '支持',
'about_us' => '关于我们',
'news' => '新闻中心',
'terms' => '服务条款',
'help' => '帮助中心',
'privacy' => '法律与隐私',
'submit_request' => '提交请求',
'api_doc' => 'API文档',
'fee_structure' => '费率标准',
'app_download' => 'APP下载',
'system_status' => '系统状态',
'normal' => '正常',
'cookie_policy' => 'Cookie 政策',
'platform_advantage' => '为什么选择 Byro',
'partners' => '合作伙伴',
'deposit' => '充值',
'withdraw' => '提现',
'assets' => '资产',
'email_verify' => '邮箱验证码',
'password' => '密码',
'confirm_password' => '确认密码',
'agree_terms' => '我已阅读并同意服务条款和隐私政策',
'send_code' => '发送验证码',
'view_more' => '查看更多',
'hero_title' => '全球领先的数字资产交易平台',
'hero_subtitle' => '在 Byro 开启您的加密货币之旅,安全、稳定、可靠。',
'get_started' => '立即开始',
'popular_markets' => '热门市场',
'coin' => '币种',
'last_price' => '最新价',
'change_24h' => '24h 涨跌',
'trade' => '交易',
'why_choose_us' => '为什么选择我们',
'security_title' => '顶尖风控',
'security_desc' => '多重签名冷钱包存储,确保资产绝对安全。',
'liquidity_title' => '极速成交',
'liquidity_desc' => '毫秒级撮合系统,高达 10w TPS 处理能力。',
'support_title' => '24/7 全球支持',
'support_desc' => '专业团队即时响应,为您解决任何交易问题。',
'diversity_title' => '丰富产品线',
'diversity_desc' => '涵盖现货、合约、杠杆等多元化金融产品。',
'copyright' => '© 2023-2026 Byro. 版权所有。',
'status_normal' => '系统状态:正常',
'advantage_1_title' => '安全合规',
'advantage_1_desc' => '全球合规运营,采用冷热钱包分离技术,确保您的资产安全。',
'advantage_2_title' => '流动性强',
'advantage_2_desc' => '毫秒级撮合引擎,深度流动性,为您提供极致的交易体验。',
'advantage_3_title' => '7/24 支持',
'advantage_3_desc' => '全天候多语言在线客服,随时解答您的任何疑问。',
'advantage_4_title' => '多样化产品',
'advantage_4_desc' => '涵盖现货、合约、秒合约、挖矿等多种投资工具。',
'about_content' => 'Byro 是一家全球领先的数字货币交易平台,成立于 2023 年,致力于为全球用户提供安全、专业、透明的数字资产金融服务。我们拥有顶尖的技术团队和风控体系,为超过 100 个国家和地区的数百万用户提供服务。',
'news_content' => 'Byro 每日更新全球加密市场动态,包括最新的上币信息、行业动态、深度分析报告,助您掌握财富密码。',
'fees_content' => 'Byro 致力于提供行业极具竞争力的费率标准。现货交易手续费低至 0.1%,根据您的交易量等级,还可以享受更大幅度的费率折扣。',
'app_desc' => '随时随地,尽在掌握。下载 Byro 移动端,体验专业级交易。',
'real_name' => '实名认证',
'verified' => '已认证',
'unverified' => '未认证',
'credit_score' => '信用分',
'recharge' => '充值',
'orders' => '订单记录',
'account' => '账号 / 邮箱',
'market_view' => '市场行情',
'sec_contract' => '秒合约',
'secure_acc' => '保障账户安全',
'from' => '从',
'to' => '到',
'balance' => '余额',
'swap_now' => '立即兑换',
'rate' => '汇率',
'price_impact' => '价格影响',
'slippage' => '滑点容差',
'mining_title' => '专业矿池',
'mining_desc' => '专业的云挖矿和质押平台。加入数千名用户,通过 Byro 的高效挖矿池赚取被动收入。',
'est_apy' => '预计年化',
'min_deposit' => '最低充值',
'lock_period' => '锁定周期',
'start_mining' => '开始挖矿',
'why_mining' => '为什么选择 Byro 挖矿?',
'adv_hardware' => '先进硬件',
'adv_hardware_desc' => '我们使用最新的 ASIC 和 GPU 矿机,确保最高利润 and 稳定性。',
'auto_compound' => '自动复利',
'auto_compound_desc' => '自动重新投资您的每日奖励,以实现长期收益最大化。',
'real_time_monitor' => '实时监控',
'real_time_monitor_desc' => '通过我们直观的控制面板实时跟踪您的算力和收益。',
'calc_profit' => '计算您的收益',
'calc_desc' => '输入您的投资金额以估算每日收益。',
'daily_profit' => '每日收益',
'monthly_profit' => '每月收益',
'try_calc' => '尝试挖矿计算器',
'asset' => '资产',
'vol_24h' => '24h 成交额',
'cycle_settlement' => '周期/结算',
'purchase_amount' => '买入量',
'available_balance' => '可以金额',
'expected_profit' => '预期收益',
'buy_up' => '买涨',
'buy_down' => '买跌',
'profit' => '收益',
],
'en' => [
'home' => 'Home',
'market' => 'Market',
'second_contract' => 'Binary',
'spot' => 'Spot',
'contract' => 'Contract',
'mining' => 'Mining',
'swap' => 'Swap',
'personal' => 'Account',
'login' => 'Login',
'register' => 'Register',
'logout' => 'Logout',
'language' => 'Language',
'footer_about' => 'About',
'footer_product' => 'Products',
'footer_support' => 'Support',
'about_us' => 'About Us',
'news' => 'News',
'terms' => 'Terms of Service',
'help' => 'Help Center',
'privacy' => 'Privacy Policy',
'submit_request' => 'Submit Request',
'api_doc' => 'API Docs',
'fee_structure' => 'Fees',
'app_download' => 'Download App',
'system_status' => 'System Status',
'normal' => 'Normal',
'cookie_policy' => 'Cookie Policy',
'platform_advantage' => 'Why Choose Byro',
'partners' => 'Partners',
'deposit' => 'Deposit',
'withdraw' => 'Withdraw',
'assets' => 'Assets',
'email_verify' => 'Email Code',
'password' => 'Password',
'confirm_password' => 'Confirm Password',
'agree_terms' => 'I have read and agree to the Terms of Service and Privacy Policy',
'send_code' => 'Send Code',
'view_more' => 'View More',
'hero_title' => 'The World\'s Leading Digital Asset Exchange',
'hero_subtitle' => 'Start your cryptocurrency journey on Byro, secure, stable, and reliable.',
'get_started' => 'Get Started',
'popular_markets' => 'Popular Markets',
'coin' => 'Coin',
'last_price' => 'Last Price',
'change_24h' => '24h Change',
'trade' => 'Trade',
'why_choose_us' => 'Why Choose Us',
'security_title' => 'Advanced Security',
'security_desc' => 'Multi-sig cold storage for ultimate asset safety.',
'liquidity_title' => 'High Performance',
'liquidity_desc' => 'Millisecond matching with up to 100k TPS.',
'support_title' => '24/7 Global Support',
'support_desc' => 'Professional response for any trading issues.',
'diversity_title' => 'Diverse Products',
'diversity_desc' => 'Spot, Futures, and more financial instruments.',
'copyright' => '© 2023-2026 Byro. All rights reserved.',
'status_normal' => 'System Status: Normal',
'advantage_1_title' => 'Security & Compliance',
'advantage_1_desc' => 'Global compliant operations with cold/hot wallet isolation to ensure asset security.',
'advantage_2_title' => 'Strong Liquidity',
'advantage_2_desc' => 'Millisecond matching engine with deep liquidity for an ultimate trading experience.',
'advantage_3_title' => '7/24 Support',
'advantage_3_desc' => 'All-day multi-language online customer service to answer your questions anytime.',
'advantage_4_title' => 'Diverse Products',
'advantage_4_desc' => 'Covering spot, contract, binary, mining and various investment tools.',
'about_content' => 'Byro is a world-leading digital currency exchange established in 2023, committed to providing secure, professional, and transparent digital asset financial services to users globally. We have a top-tier technical team and risk control system, serving millions of users across more than 100 countries and regions.',
'news_content' => 'Byro updates daily global crypto market dynamics, including the latest listing info, industry trends, and in-depth analysis reports to help you master wealth opportunities.',
'fees_content' => 'Byro is committed to providing industry-competitive fee standards. Spot trading fees as low as 0.1%, with deeper discounts based on your trading volume tier.',
'app_desc' => 'Anytime, anywhere, at your fingertips. Download Byro mobile app for professional trading experience.',
'real_name' => 'Real-name',
'verified' => 'Verified',
'unverified' => 'Unverified',
'credit_score' => 'Credit Score',
'recharge' => 'Recharge',
'orders' => 'Orders',
'account' => 'Account / Email',
'market_view' => 'Market View',
'sec_contract' => 'Second Contract',
'secure_acc' => 'Secure My Account',
'from' => 'From',
'to' => 'To',
'balance' => 'Balance',
'swap_now' => 'Swap Now',
'rate' => 'Rate',
'price_impact' => 'Price Impact',
'slippage' => 'Slippage Tolerance',
'mining_title' => 'Mining Pool',
'mining_desc' => 'Professional cloud mining and staking platform. Join thousands of users earning passive income with Byro\'s high-efficiency mining pools.',
'est_apy' => 'Est. APY',
'min_deposit' => 'Min. Deposit',
'lock_period' => 'Lock Period',
'start_mining' => 'Start Mining',
'why_mining' => 'Why choose Byro Mining?',
'adv_hardware' => 'Advanced Hardware',
'adv_hardware_desc' => 'We use the latest ASIC and GPU miners to ensure maximum profitability and stability.',
'auto_compound' => 'Auto Compounding',
'auto_compound_desc' => 'Reinvest your daily rewards automatically to maximize your total yield over time.',
'real_time_monitor' => 'Real-time Monitoring',
'real_time_monitor_desc' => 'Track your hash rate and earnings in real-time through our intuitive dashboard.',
'calc_profit' => 'Calculate Your Profit',
'calc_desc' => 'Enter your investment amount to estimate your daily earnings.',
'daily_profit' => 'Daily Profit',
'monthly_profit' => 'Monthly Profit',
'try_calc' => 'Try Mining Calculator',
'asset' => 'Asset',
'vol_24h' => '24h Volume',
'cycle_settlement' => 'Cycle / Settlement',
'purchase_amount' => 'Purchase Amount',
'available_balance' => 'Available Balance',
'expected_profit' => 'Expected Profit',
'buy_up' => 'Buy Up',
'buy_down' => 'Buy Down',
'profit' => 'Profit',
]
];
function __($key) {
global $translations, $lang;
return $translations[$lang][$key] ?? $key;
}
function getCoinIcon($symbol) {
$icon_ids = [
'BTC' => '1/small/bitcoin.png',
'ETH' => '279/small/ethereum.png',
'USDT' => '325/small/tether.png',
'BNB' => '825/small/binance-coin-logo.png',
'SOL' => '4128/small/solana.png',
'XRP' => '44/small/xrp-symbol-white-128.png',
'ADA' => '975/small/cardano.png',
'DOGE' => '5/small/dogecoin.png',
'DOT' => '12171/small/polkadot.png',
'MATIC' => '4713/small/matic-network.png',
'AVAX' => '12559/small/avalanche.png',
'LINK' => '877/small/chainlink.png',
'SHIB' => '11939/small/shiba-inu.png',
'TRX' => '1094/small/tron.png',
'BCH' => '153/small/bitcoin-cash.png',
'LTC' => '2/small/litecoin.png',
'UNI' => '12504/small/uniswap.png',
'ARB' => '29359/small/arbitrum.png',
'OP' => '25244/small/optimism.png',
'APT' => '27355/small/aptos.png',
'USDC' => '6319/small/usdc.png',
'PEPE' => '31386/small/pepe.png',
];
$id = $icon_ids[strtoupper($symbol)] ?? '1/small/bitcoin.png';
return "https://assets.coingecko.com/coins/images/" . $id;
}