SimplePhpTranslate
SimplePhpTranslate is a PHP component and it allows you to easily insert translated text into web pages.
Motivation
SimplePhpTranslate is a simple (quick and dirty?) solution when you need some translation mechanism in a PHP project and cannot/don't want to use a more structured translation framework.
Think of scenarios like:
- Your project does not include any framework that already provides translation out-of-the-box (e.g. Zend)
- Your web hosting provider has not enabled gettext PHP extension
- You cannot/don't want to install gettext extension, e.g. because you're working on Windows environment, or you don't feel like learning how to do that yet
Code Example
Please have a look at fully commented source code in sample-client
directory.
For a working example, please have a look at test
directory. You can fire-up your web server and browse to index.html
in that directory.
If you like, you can find test page setup instructions for Apache under the Deploy\Dev\Web Server
directory.
Contributors
pygy for his Romantic WTF Public License; jxson for his Readme.md template.
Copyright and license
Copyright (C) 2014 BrainCrumbz.
Fork it
Your contributions are always welcome!