Skip to content

kissthink/codeigniter-gettext-poeditor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

codeigniter-gettext-poeditor

POEditor integration on CodeIgniter

Installation

Copy all files from application/{config,libraries,controllers,locale} to your projects.

You must edit the application/config/languages.php file and set your API informations (key and project ID).

How to Use

To extract all strings and sync with POEditor, you must execute this command from shell :

php -q index.php cli translate

You can look the application/controllers/cli.php file and adjust the code based on your own need.

On your scripts, you can use standard gettext tags like :

$string = _("This is a test string"); 

If you want to use RTL support, it can be simple as :

 <body class="navbar-fixed <?php if ($this->languages->isRTL()) { echo 'rtl'; } ?>">

Joel Vandal - CodeIgniter Gettext POEditor Library

About

POEditor integration on CodeIgniter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published