certimine/lang/en.php
remaster ff0fd6a89d API Peñasquito: ticket persistente, company y mejor flujo de búsqueda
- Renombrado «DC3» a «API Peñasquito» (URL base del documento) en UI/docs;
  rutas y claves de config conservadas por compatibilidad.
- Persistencia de ticket_id en nueva tabla `penasquito_tickets`:
  POST /search/ guarda el ticket y los siguientes requests retoman
  GET /result/<ticket_id>/ sin reencolar.
- Polling acotado por request HTTP (~6 s) con `PenasquitoPendingException`
  y caja «reintentar» en lookup; ticket queda válido 1 h.
- `users_cache.company` nuevo (con migración idempotente); persistResult
  guarda empresa + competencias en transacción y aplica source distinto.
- Mensajes HTTP específicos (400/401/403/404/408/429/5xx) y `/` final
  forzado en rutas (DRF), FOLLOWLOCATION habilitado.
- Vista de perfil muestra «Empresa» y aviso cuando no hay competencias.
- Auth::login evita doble fetch cuando ya tenemos el `result` del API.
- i18n ES/EN actualizados; lookup_pending_*; limpieza de archivos lang.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-13 19:43:37 -06:00

75 lines
5 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',
'home_mobiliseme_blurb' => 'Sign-in — passport lookup against the Penasquito base API (project docs / Wotbi) and linked competencies.',
'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',
'profile_auths' => 'FRM authorizations',
'profile_company' => 'Company',
'profile_no_competencies' => 'No competencies on record at the moment.',
'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), set the token for the Penasquito base API from the project docs (CERTIMINE_PENASQUITO_TOKEN or config.php).',
'lookup_need_dc3_title' => 'Penasquito API (per docs) not configured',
'lookup_need_dc3_body' => 'Without a token, only local DB lookup works (demo numbers like 10001 or C-5001). Recommended order: CERTIMINE_PENASQUITO_TOKEN (or alias CERTIMINE_DC3_TOKEN), then penasquito_dc3.static_token in config.php, then config/token.php with penasquito_token or dc3_token (gitignored). Config key penasquito_dc3 holds the base URL and paths as in the PDF.',
'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' => 'Passport lookup enabled: the configured base URL will be queried and results stored locally.',
'lookup_token_env' => 'Token from environment (CERTIMINE_PENASQUITO_TOKEN or 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, the document base URL is queried.',
'penasquito_api_lookup_error' => 'Could not load data from the Penasquito API (document base URL). Check passport, token, and network. If the service returned details, they appear below. (Debug mode: more internal errors.)',
'lookup_pending_title' => 'The portal is processing your search',
'lookup_pending_body' => 'The Mobilise-Me server already received the request and is scraping the competencies. Wait a few seconds and use the button to retry; nothing is re-queued, only the stored ticket is polled.',
'lookup_pending_passport' => 'Passport',
'lookup_pending_ticket' => 'Ticket',
'lookup_pending_status' => 'Status',
'lookup_pending_position' => 'Queue position',
'lookup_pending_retry' => 'Retry lookup',
'login_passport_hint' => 'With the API configured (CERTIMINE_PENASQUITO_TOKEN or other), use your passport (e.g. E000055821). Password is unused. Without token: demo user with «contract» or employee.',
'login_demo_hint' => 'Without the document API: username containing «contract» simulates contractor; otherwise demo employee.',
];