certimine/lang/en.php
remaster 84e94dcb55 seguridad: token DC3 vía env, config o config/token.php (gitignored)
- Elimina lectura del token desde DatosPdf; nuevo token.example.php y token.php ignorado.
- DatosPdf.txt deja de versionarse; docs/DatosPdf.example.txt con TOKEN redactado.
- Ajusta README, docs API, i18n y banderolas de consulta/diagnóstico previos.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-13 18:49:11 -06:00

65 lines
3.9 KiB
PHP

<?php
declare(strict_types=1);
return [
'nav_home' => 'Home',
'nav_frm' => 'FRM library',
'nav_lookup' => 'Certificate lookup',
'nav_login' => 'Sign in',
'nav_logout' => 'Sign out',
'nav_dashboard' => 'My dashboard',
'lang_en' => 'English',
'lang_es' => 'Spanish',
'app_tagline' => 'Certification management — Penasquito',
'frm_title' => 'Public FRM standards library',
'frm_intro' => 'Read-only references, verifications, and permissions. Links to corporate documentation where applicable.',
'frm_nom_related' => 'Related NOM competencies',
'lookup_title' => 'Employee or contractor lookup',
'lookup_intro' => 'Scan the QR code or enter the employee number or contractor ID.',
'lookup_type' => 'Person type',
'lookup_employee' => 'Employee',
'lookup_contractor' => 'Contractor',
'lookup_code' => 'Number / ID',
'lookup_submit' => 'Search',
'lookup_qr_hint' => 'QR URL: paste the signed link if your deployment enables HMAC.',
'profile_green' => 'Green license',
'profile_green_yes' => 'Critical authorizations valid',
'profile_green_no' => 'Requirements pending',
'profile_certs' => 'Certifications / DC3',
'profile_auths' => 'FRM authorizations',
'status_valid' => 'Valid',
'status_expiring' => 'Expiring soon',
'status_expired' => 'Expired',
'status_pending' => 'Pending',
'login_title' => 'CertiMine sign-in',
'login_user' => 'Username',
'login_pass' => 'Password',
'login_submit' => 'Sign in',
'login_error' => 'Sign-in failed. Check credentials or enable API mock for demo.',
'dashboard_welcome' => 'Welcome, :name',
'dashboard_courses' => 'Suggested courses from your competencies',
'dashboard_profile' => 'My profile and certifications',
'no_results' => 'No results',
'api_unreachable' => 'Mobiliseme service unavailable. Try again later.',
'csrf_invalid' => 'Session expired. Resubmit the form.',
'footer_docs' => 'API documentation',
'contractor_profile' => 'Contractor profile',
'employee_profile' => 'Employee profile',
'expires' => 'Expires',
'issued' => 'Issued',
'sync_title' => 'Synchronization',
'webhook_ok' => 'Event received',
'lookup_need_dc3' => 'No local record for that code. To query by passport (e.g. E000055821), configure the DC3 API token (CERTIMINE_DC3_TOKEN or config.php).',
'lookup_need_dc3_title' => 'DC3 API not configured',
'lookup_need_dc3_body' => 'Without a token, only local DB lookup works (demo numbers like 10001 or C-5001). Set the token via CERTIMINE_DC3_TOKEN, or penasquito_dc3.static_token in config.php, or copy config/token.example.php to config/token.php and set dc3_token (token.php is gitignored).',
'lookup_using_example_config' => 'Currently loading config.example.php (config/config.php is missing): example token is empty. You may use config/token.php (see token.example.php).',
'lookup_dc3_ready' => 'DC3 API enabled: passport lookups will call the service and store results locally.',
'lookup_token_env' => 'Token from CERTIMINE_DC3_TOKEN.',
'lookup_token_config' => 'Token from config.php.',
'lookup_debug_hint' => 'Debug mode: API errors may include details on screen. Set app.debug=true or CERTIMINE_DEBUG=1.',
'lookup_passport_hint' => 'Passports like E000055821 are normalized (case). Local DB is tried first; if no match and the API is configured, Wotbi is queried.',
'dc3_lookup_error' => 'Could not load data from the DC3 API. Check passport, token, and network. Enable debug mode for technical details.',
'login_passport_hint' => 'With DC3 API (CERTIMINE_DC3_TOKEN), use your passport (e.g. E000055821). Password is unused. Without token: demo user with «contract» or employee.',
'login_demo_hint' => 'Without DC3 API: username containing «contract» simulates contractor; otherwise demo employee.',
];