How waqleh/codeigniter-language-in-url-internationalization works
This is a small CodeIgniter extension for selecting a language from the URL and using it for translations and generated links. The main workflow is a localized request selecting the active language, loading language files, and rendering translated text. It also supports switching languages, exempting special URIs, and recording missing strings. The source excerpts show the language and URL-generation logic; controller, view, routing, and language-file interactions are documented examples, not repository modules.
Main entry points: MY_Lang.php Language runtime · MY_Config.php URL configuration
Components 7
Language handling
- Language runtime
MY_Lang.php
Localized URLs
- URL configuration
MY_Config.php
Translation content
- Language files
- Missing-string writer
MY_Lang.php
Other components
- Browser request
- CodeIgniter app
- Translated view
Connections 8
- Browser request → CodeIgniter app: routes request
README.md - CodeIgniter app → Language runtime: selects language
README.md - CodeIgniter app → Language files: loads file
README.md - Language files → Translated view: supplies translations
README.md - CodeIgniter app → Translated view: renders view
README.md - URL configuration → Language runtime: localizes URL
MY_Config.php - Language runtime → Missing-string writer: records missing key
MY_Lang.php - CodeIgniter app → URL configuration: generates URL
README.md