jayalfredprufrock / codeigniter-language
A CI spark making auto-detecting the proper language to serve easy.
Installs: 125
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:codeigniter-module
Requires
- php: >=5.3
- composer/installers: ~1.0
This package is not auto-updated.
Last update: 2024-12-07 16:10:35 UTC
README
#codeigniter-language A CI spark making auto-detecting the proper language to serve easy.
##Default auto detection flow
- Check the lang code in the subdomain. It's the master rule.
- Check the lang code in the first segment in URI.
- If no lang code is in subdomain or URI check the browser language if available and activated.
- As the last rule, set the lang code to the default one defined in the CI global config file.
##Composer installation
If using composer to include this spark, note that composer/installers is used to place the spark within application/modules
so you'll either need to override this location, or change your default spark location.
##Credit Rewrite of the kitlang language spark by Eric@devtime.com