Skip to content

keevitaja/mci-codeigniter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

#Multilingual CI

Do not use this even for educational purposes. It would be much smarter to get rid of the language slug in index.php file and define a constant. Then use it in config file. This way it works with every application. No matter what... But if you must use it, then you must!

##Description

Multilingual i18n enviroment for CodeIgniter. Language segment for default language can be hidden from uri.

##Developer

##Usage

  • Install the package by coping the files into your CI installation. DANGER: do not overwrite autoload.php or routes.php!!!
  • Set your languages in config/mci_languages.php and config/routes.php

###Helpers (mci_helper.php)

  • lanchor() - use instead of anchor() for in-site linking
  • langbar() - displays the language bar
  • lchange() - returns uri(s) for different languages, mixed

###Methods (MY_Lang.php)

  • mci_current() - returns current language segment
  • mci_clean_uri() - returns current uri without language segment
  • mci_make_uri() - returns uri string with language segment
  • mci_language_bar() - returns html language bar
  • mci_change() - returns uri(s) for different languages, mixed

About

Multilingual i18n environment for CodeIgniter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages