HEKAYET BANAFSIG RADIO - PHASE 1 PATCH
Language Architecture & Security Baseline

This is a changed-files patch only. It does not contain the full application.
Apply the files to the matching paths in the project root, after making a backup.

Changes:
- English is the default fallback language in code and for new language registry seeds.
- Caption default language is English for fresh/default settings.
- Language registry helpers normalize locale codes and resolve caption availability against active registered languages.
- SRT upload language detection now uses the active language registry rather than a hardcoded language list.
- Caption API accepts normalized locale codes and matches hyphen/underscore forms in stored language codes.
- Public caption visibility and administration filters use active language registry checks.
- Default caption-language admin selector is dynamically populated from active languages.
- A sanitized app/config.example.php is included; never distribute the real app/config.php.

Not included in Phase 1:
- Subtitle icon redesign and centered icon layout.
- Browser-language automatic subtitle selection.
- First-time installer.
- Central license server / Envato activation enforcement.
- Full release packaging and documentation.

IMPORTANT SECURITY NOTICE:
The full project archive inspected for this phase contained a real app/config.php.
Treat the database password and any secrets in that file as exposed and rotate them.
Do not distribute that full archive. The patch archive intentionally excludes app/config.php.
