38350-vm/includes/i18n.php
2026-02-13 13:01:44 +00:00

443 lines
19 KiB
PHP

<?php
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
$translations = [
'en' => [
'site_name' => 'NovaEx',
'site_title' => 'NovaEx | Leading Crypto Exchange',
'nav_home' => 'Home',
'nav_market' => 'Markets',
'search_currency' => 'Search Currency',
'nav_trade' => 'Trade',
'nav_spot' => 'Spot',
'nav_futures' => 'Futures',
'nav_options' => 'Second Contract',
'nav_mining' => 'Mining',
'nav_convert' => 'Convert',
'nav_assets' => 'Assets',
'nav_total_assets' => 'Total Assets',
'nav_deposit' => 'Deposit',
'nav_withdraw' => 'Withdraw',
'nav_login' => 'Log In',
'nav_register' => 'Sign Up',
'nav_profile' => 'Profile',
'nav_logout' => 'Log Out',
'nav_security' => 'Security',
'nav_app_download' => 'APP Download',
'nav_help' => 'Help',
'language' => 'Language',
'hero_title' => 'Buy, trade, and hold 350+ cryptocurrencies on NovaEx',
'hero_subtitle' => 'Join the world\'s largest crypto exchange with the lowest fees and best security.',
'btn_start' => 'Get Started',
'btn_download' => 'Download App',
'app_download' => 'APP Download',
'download_qr_tip' => 'Download App & Get Up to 50 USDT',
'join_now' => 'Join Now',
'start_trading' => 'Start Trading',
'earn_now' => 'Earn Now',
'market_trends' => 'Market Trends',
'view_more_markets' => 'View More',
'pair' => 'Pair',
'last_price' => 'Last Price',
'24h_change' => '24h Change',
'market_cap' => 'Market Cap',
'24h_high' => '24h High',
'24h_low' => '24h Low',
'24h_vol' => '24h Vol',
'why_choose_us' => 'Why Choose NovaEx?',
'secure_storage' => 'Secure Storage',
'secure_storage_desc' => 'We store the vast majority of the digital assets in secure offline storage.',
'protected_insurance' => 'Protected by Insurance',
'protected_insurance_desc' => 'Cryptocurrency stored on our servers is covered by our insurance policy.',
'industry_best_practices' => 'Best Practices',
'industry_best_practices_desc' => 'NovaEx supports a variety of the most popular digital currencies.',
'platform_desc' => 'Our platform provides a seamless trading experience with advanced features and a robust infrastructure designed for both retail and institutional traders.',
'global_partners' => 'Global Partners',
'partners_subtitle' => 'Trusted by world-leading organizations and financial institutions.',
'footer_desc' => 'NovaEx is a leading digital asset trading platform, providing secure and stable trading services for global users.',
'about' => 'About',
'about_us' => 'About Us',
'careers' => 'Careers',
'news' => 'News',
'legal_privacy' => 'Legal & Privacy',
'terms_service' => 'Terms of Service',
'products' => 'Products',
'spot_trading' => 'Spot Trading',
'futures_trading' => 'Futures Trading',
'flash_swap' => 'Flash Swap',
'staking' => 'Staking',
'asset_management' => 'Asset Management',
'support' => 'Support',
'help_center' => 'Help Center',
'submit_request' => 'Submit a Request',
'api_docs' => 'API Documentation',
'fee_schedule' => 'Fee Schedule',
'service_status' => 'Service Status',
'all_rights_reserved' => 'ALL RIGHTS RESERVED.',
'cookie_policy' => 'Cookie Policy',
'security' => 'Security',
'system_status_normal' => 'System Status: Normal',
'search_pair' => 'Search Pairs',
'search_contract' => 'Search Contracts',
'price' => 'Price',
'amount' => 'Amount',
'size' => 'Size',
'total' => 'Total',
'available' => 'Available',
'limit' => 'Limit',
'market' => 'Market',
'buy' => 'Buy',
'sell' => 'Sell',
'buy_long' => 'Buy Long',
'sell_short' => 'Sell Short',
'open_long' => 'Open Long',
'open_short' => 'Open Short',
'leverage' => 'Leverage',
'margin' => 'Margin',
'isolated' => 'Isolated',
'cross' => 'Cross',
'order_book' => 'Order Book',
'open_orders' => 'Open Orders',
'current_orders' => 'Current Orders',
'order_history' => 'Order History',
'history_orders' => 'History Orders',
'positions' => 'Positions',
'current_positions' => 'Current Positions',
'no_records' => 'No Records',
'cancel' => 'Cancel',
'confirm' => 'Confirm',
'adjust_leverage' => 'Adjust Leverage',
'close_position' => 'Close',
'time' => 'Time',
'status' => 'Status',
'action' => 'Action',
'type' => 'Type',
'direction' => 'Side',
'filled' => 'Filled',
'settlement_time' => 'Settlement Time',
'buy_amount' => 'Order Amount',
'min_order' => 'Min Order',
'buy_up' => 'Buy Up',
'buy_down' => 'Buy Down',
'profit' => 'Profit',
'expected_profit' => 'Expected Profit',
'in_progress' => 'In Progress',
'settled' => 'Settled',
'opening_price' => 'Opening Price',
'closing_price' => 'Closing Price',
'countdown' => 'Countdown',
'pnl' => 'P/L',
'trading_executing' => 'Trading Executing',
'waiting_settlement' => 'Waiting for Settlement',
'system_matching_engine' => 'System matching engine',
'options_instruction' => 'Trading Instruction',
'options_wait_settle' => 'The system matching engine is executing. Please wait for the countdown to end for settlement.',
'kyc_status' => 'KYC Verification',
'kyc_none' => 'Unverified',
'kyc_pending' => 'Pending',
'kyc_approved' => 'Verified',
'kyc_rejected' => 'Rejected',
'security_settings' => 'Security Settings',
'total_balance' => 'Total Balance',
'asset_details' => 'Asset Details',
'transaction_records' => 'Records',
'credit_score' => 'Credit Score',
'level' => 'Level',
'withdraw_amount' => 'Withdraw Amount',
'withdraw_address' => 'Withdraw Address',
'fund_password' => 'Fund Password',
'withdraw_all' => 'Withdraw All',
'min_withdraw' => 'Min Withdraw',
'withdraw_fee' => 'Fee',
'withdraw_submit' => 'Confirm Withdrawal',
'withdraw_tip' => 'Please jump to customer service to confirm withdrawal after submission.',
'payout_format_received' => 'Payout Format Received',
'chart' => 'Chart',
'orders' => 'Orders',
'order_placed' => 'Order Placed',
'min_amount' => 'Min Amount',
'home_slide1_title' => 'NovaEx Global Launch',
'home_slide1_desc' => 'Experience the next generation of digital asset trading with ultra-low latency and bank-grade security.',
'home_slide2_title' => 'Trade Futures with 100x Leverage',
'home_slide2_desc' => 'Maximize your capital efficiency with our professional perpetual futures contracts.',
'home_slide3_title' => 'Secure Crypto Staking',
'home_slide3_desc' => 'Earn passive income on your idle assets with our high-yield staking pools.',
'home_download_title' => 'Trade Anywhere, Anytime',
'home_download_desc' => 'Stay connected to the markets with the NovaEx mobile app. Experience professional trading features in the palm of your hand.',
'fast_secure' => 'Fast & Secure',
'fast_secure_desc' => 'Military-grade encryption for all your data.',
'real_time' => 'Real-time',
'real_time_desc' => 'Low-latency updates and market depth.',
'scan_download' => 'Scan to Download',
'ios_android' => 'Support for iOS & Android',
'mining_staking' => 'Staking & Mining',
'mining_hero_subtitle' => 'Participate in proof-of-stake and decentralized finance to earn rewards on your digital assets.',
'liquidity_mining' => 'Liquidity Mining',
'liquidity_mining_desc' => 'Provide liquidity to automated market makers and earn a portion of the trading fees plus governance tokens.',
'pos_staking' => 'PoS Staking',
'pos_staking_desc' => 'Stake your proof-of-stake assets to help secure the network and receive inflation rewards directly in your wallet.',
'launchpad' => 'Launchpad',
'launchpad_desc' => 'Gain exclusive access to high-quality blockchain projects before they list on our exchange.',
'est_apr' => 'Est. APR',
'stake_now' => 'Stake Now',
'view_details' => 'View Details',
'yield_rankings' => 'Yield Rankings',
'all' => 'All',
'asset' => 'Asset',
'duration' => 'Duration',
'flexible' => 'Flexible',
'subscribe' => 'Subscribe',
'days' => 'Days',
'coming_soon' => 'Coming Soon',
'next_project' => 'Next Project',
// New keys for error messages
'error_placing_order' => 'Error placing order',
'network_error' => 'Network Error',
'could_not_connect_server' => 'Could not connect to server',
'error_fetching_orders' => 'Error fetching orders',
'error_fetching_balance' => 'Error fetching balance',
'error_no_live_price' => 'No live price data available yet. Please wait.',
'websocket_connecting' => 'Connecting to market data...',
'websocket_connected' => 'Connected to market data.',
'websocket_error' => 'Market data connection error!',
'websocket_disconnected' => 'Market data disconnected. Reconnecting...',
],
'zh' => [
'site_name' => 'NovaEx',
'site_title' => 'NovaEx | 全球领先的数字资产交易所',
'nav_home' => '首页',
'nav_market' => '行情',
'search_currency' => '搜索币种',
'nav_trade' => '交易',
'nav_spot' => '现货交易',
'nav_futures' => '合约交易',
'nav_options' => '秒合约',
'nav_mining' => '挖矿',
'nav_convert' => '闪兑',
'nav_assets' => '资产',
'nav_total_assets' => '总资产',
'nav_deposit' => '充值',
'nav_withdraw' => '提现',
'nav_login' => '登录',
'nav_register' => '注册',
'nav_profile' => '个人中心',
'nav_logout' => '退出登录',
'nav_security' => '安全中心',
'nav_app_download' => 'APP 下载',
'nav_help' => '帮助中心',
'language' => '语言',
'hero_title' => '在 NovaEx 购买、交易和持有 350 多种加密货币',
'hero_subtitle' => '加入全球最大的加密货币交易所,享受最低的费用和最好的安全性。',
'btn_start' => '立即开始',
'btn_download' => '下载应用',
'app_download' => 'APP 下载',
'download_qr_tip' => '下载应用并获得高达 50 USDT 的奖励',
'join_now' => '立即加入',
'start_trading' => '开始交易',
'earn_now' => '立即赚取',
'market_trends' => '市场趋势',
'view_more_markets' => '查看更多',
'pair' => '币对',
'last_price' => '最新价',
'24h_change' => '24h 涨跌',
'market_cap' => '市值',
'24h_high' => '24h 最高',
'24h_low' => '24h 最低',
'24h_vol' => '24h 成交额',
'why_choose_us' => '为什么选择 NovaEx?',
'secure_storage' => '安全存储',
'secure_storage_desc' => '我们将绝大部分数字资产存储在安全的离线存储中。',
'protected_insurance' => '保险保护',
'protected_insurance_desc' => '存储在我们服务器上的加密货币受我们的保险政策保护。',
'industry_best_practices' => '行业最佳实践',
'industry_best_practices_desc' => 'NovaEx 支持多种最流行的数字货币。',
'platform_desc' => '我们的平台为零售和机构交易者提供具有先进功能和稳健基础设施的无缝交易体验。',
'global_partners' => '全球合作伙伴',
'partners_subtitle' => '深受全球领先组织和金融机构的信任。',
'footer_desc' => 'NovaEx 是全球领先的数字资产 trading 平台,为全球用户提供安全稳定的交易服务。',
'about' => '关于',
'about_us' => '关于我们',
'careers' => '职业介绍',
'news' => '新闻',
'legal_privacy' => '法律与隐私',
'terms_service' => '服务条款',
'products' => '产品',
'spot_trading' => '现货交易',
'futures_trading' => '合约交易',
'flash_swap' => '闪兑',
'staking' => '质押',
'asset_management' => '资产管理',
'support' => '支持',
'help_center' => '帮助中心',
'submit_request' => '提交请求',
'api_docs' => 'API 文档',
'fee_schedule' => '费率标准',
'service_status' => '服务状态',
'all_rights_reserved' => '保留所有权利。',
'cookie_policy' => 'Cookie 政策',
'security' => '安全',
'system_status_normal' => '系统状态:正常',
'search_pair' => '搜索币对',
'search_contract' => '搜索合约',
'price' => '价格',
'amount' => '数量',
'size' => '数量',
'total' => '总额',
'available' => '可用',
'limit' => '限价',
'market' => '市价',
'buy' => '买入',
'sell' => '卖出',
'buy_long' => '看多/买入',
'sell_short' => '看空/卖出',
'open_long' => '买入开多',
'open_short' => '卖出开空',
'leverage' => '杠杆',
'margin' => '保证金',
'isolated' => '逐仓',
'cross' => '全仓',
'order_book' => '订单簿',
'open_orders' => '当前委托',
'current_orders' => '当前委托',
'order_history' => '历史委托',
'history_orders' => '历史委托',
'positions' => '当前持仓',
'current_positions' => '当前持仓',
'no_records' => '暂无记录',
'cancel' => '取消',
'confirm' => '确认',
'adjust_leverage' => '调整杠杆',
'close_position' => '平仓',
'time' => '时间',
'status' => '状态',
'action' => '操作',
'type' => '类型',
'direction' => '方向',
'filled' => '已成交',
'settlement_time' => '结算时间',
'buy_amount' => '买入金额',
'min_order' => '最小下单',
'buy_up' => '买涨',
'buy_down' => '买跌',
'profit' => '收益',
'expected_profit' => '预期收益',
'in_progress' => '进行中',
'settled' => '已结算',
'opening_price' => '买入价',
'closing_price' => '结算价',
'countdown' => '倒计时',
'pnl' => '盈亏',
'trading_executing' => '交易执行中',
'waiting_settlement' => '等待结算',
'system_matching_engine' => '系统撮合引擎',
'options_instruction' => '交易说明',
'options_wait_settle' => '系统撮合引擎正在执行中,请等待倒计时结束进行结算。',
'kyc_status' => '实名认证',
'kyc_none' => '未认证',
'kyc_pending' => '审核中',
'kyc_approved' => '已认证',
'kyc_rejected' => '未通过',
'security_settings' => '安全中心',
'total_balance' => '总资产',
'asset_details' => '资产详情',
'transaction_records' => '交易记录',
'credit_score' => '信用分',
'level' => '等级',
'withdraw_amount' => '提现金额',
'withdraw_address' => '提现地址',
'fund_password' => '资金密码',
'withdraw_all' => '全部提现',
'min_withdraw' => '最小提现',
'withdraw_fee' => '手续费',
'withdraw_submit' => '确认订单',
'withdraw_tip' => '提交后请跳转客服对话窗确认。',
'payout_format_received' => '收到出款格式',
'chart' => '图表',
'orders' => '订单',
'order_placed' => '下单成功',
'min_amount' => '最小金额',
'home_slide1_title' => 'NovaEx 全球发布',
'home_slide1_desc' => '体验超低延迟和银行级安全的新一代数字资产交易。',
'home_slide2_title' => '100倍杠杆合约交易',
'home_slide2_desc' => '通过我们的专业永续合约最大限度地提高您的资金效率。',
'home_slide3_title' => '安全数字资产质押',
'home_slide3_desc' => 'Earn passive income on your idle assets with our high-yield staking pools.',
'home_download_title' => '随时随地,随心交易',
'home_download_desc' => 'Stay connected to the markets with the NovaEx mobile app. Experience professional trading features in the palm of your hand.',
'fast_secure' => '快速且安全',
'fast_secure_desc' => '为您的所有数据提供军用级加密。',
'real_time' => '实时行情',
'real_time_desc' => '低延迟更新和市场深度。',
'scan_download' => '扫描下载',
'ios_android' => '支持 iOS 和 Android',
'mining_staking' => '质押与挖矿',
'mining_hero_subtitle' => '参与权益证明和去中心化金融,从您的数字资产中赚取奖励。',
'liquidity_mining' => '流动性挖矿',
'liquidity_mining_desc' => '向自动做市商提供流动性,赚取部分交易费用及治理代币奖励。',
'pos_staking' => 'PoS 质押',
'pos_staking_desc' => '质押您的权益证明资产,协助维护网络安全,并直接在钱包中获取通胀奖励。',
'launchpad' => '打新平台',
'launchpad_desc' => '在优质区块链项目上线交易所前,获得独家参与机会。',
'est_apr' => '预估年化收益率',
'stake_now' => '立即质押',
'view_details' => '查看详情',
'yield_rankings' => '收益排行榜',
'all' => '全部',
'asset' => '资产',
'duration' => '期限',
'flexible' => '活期',
'subscribe' => '立即申购',
'days' => '天',
'coming_soon' => '即将到来',
'next_project' => '下一个项目',
// New keys for error messages
'error_placing_order' => '下单失败',
'network_error' => '网络错误',
'could_not_connect_server' => '无法连接到服务器',
'error_fetching_orders' => '获取订单失败',
'error_fetching_balance' => '获取余额失败',
'error_no_live_price' => '暂无实时价格数据,请稍候。',
'websocket_connecting' => '正在连接市场数据...',
'websocket_connected' => '市场数据已连接。',
'websocket_error' => '市场数据连接错误!',
'websocket_disconnected' => '市场数据已断开。正在重新连接...',
]
];
if (!isset($_SESSION['lang'])) {
$_SESSION['lang'] = 'en';
}
if (isset($_GET['lang']) && array_key_exists($_GET['lang'], $translations)) {
$_SESSION['lang'] = $_GET['lang'];
}
$lang = $_SESSION['lang'];
function __($key, $default = '') {
global $translations, $lang;
return $translations[$lang][$key] ?? ($translations['en'][$key] ?? ($default ?: $key));
}