Files
x-server-mobile/backend/resource/translations/messages.en.php
T
root 8817effc9a refactor: 使用官方support\Translation替代自定义Lang类
- 创建 config/translation.php 配置文件
- 将翻译文件从 lang/ 移动到 resource/translations/ 目录
- 按照 Symfony Translation 标准重命名文件 (messages.{locale}.php)
- 删除自定义的 app\util\Lang 类
- 使用官方的 trans() 和 locale() 函数

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 18:18:52 +08:00

76 lines
2.6 KiB
PHP

<?php
/**
* English translation file
*/
return [
'app' => [
'name' => 'Enterprise Tool System',
'title' => 'Enterprise Internal Tool Platform',
],
'common' => [
'success' => 'Operation successful',
'error' => 'Operation failed',
'confirm' => 'Confirm',
'cancel' => 'Cancel',
'submit' => 'Submit',
'save' => 'Save',
'delete' => 'Delete',
'edit' => 'Edit',
'search' => 'Search',
'refresh' => 'Refresh',
'back' => 'Back',
'close' => 'Close',
'loading' => 'Loading...',
'no_data' => 'No data',
'operation' => 'Operation',
'status' => 'Status',
'create_time' => 'Create Time',
'update_time' => 'Update Time',
'remark' => 'Remark',
],
'auth' => [
'login_success' => 'Login successful',
'login_failed' => 'Login failed',
'username_required' => 'Username is required',
'password_required' => 'Password is required',
'invalid_credentials' => 'Invalid username or password',
'token_expired' => 'Session expired, please login again',
'unauthorized' => 'Unauthorized, please login first',
],
'user' => [
'not_found' => 'User not found',
'info_updated' => 'Profile updated successfully',
'company_switched' => 'Company switched successfully',
],
'approval' => [
'submit_success' => 'Approval submitted successfully',
'approve_success' => 'Approved successfully',
'reject_success' => 'Rejected successfully',
'cancel_success' => 'Cancelled successfully',
'not_found' => 'Approval not found',
'cannot_approve' => 'Cannot approve in current status',
'cannot_cancel' => 'Cannot cancel in current status',
'not_owner' => 'Only the applicant can cancel',
'status' => [
'pending' => 'Pending',
'approved' => 'Approved',
'rejected' => 'Rejected',
'cancelled' => 'Cancelled',
],
],
'business_trip' => [
'submit_success' => 'Business trip submitted successfully',
'update_success' => 'Business trip updated successfully',
'not_found' => 'Business trip not found',
],
'error' => [
'network_error' => 'Network error, please try again later',
'server_error' => 'Server error',
'not_found' => 'Page not found',
'unknown_error' => 'Unknown error',
'params_error' => 'Parameter error',
'validation_error' => 'Validation failed',
],
];