jayalfredprufrock/codeigniter-language

A CI spark making auto-detecting the proper language to serve easy.

v1.0.0 2014-03-04 21:16 UTC

This package is not auto-updated.

Last update: 2024-04-13 13:04:23 UTC


README

#codeigniter-language A CI spark making auto-detecting the proper language to serve easy.

##Default auto detection flow

  1. Check the lang code in the subdomain. It's the master rule.
  2. Check the lang code in the first segment in URI.
  3. If no lang code is in subdomain or URI check the browser language if available and activated.
  4. 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