Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Latest commit

 

History

History
74 lines (49 loc) · 2.83 KB

readme.md

File metadata and controls

74 lines (49 loc) · 2.83 KB

SimplePhpTranslate

SimplePhpTranslate is a PHP component and it allows you to easily insert translated text into web pages. Project home page is here

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.

Romantic WTF Public License

Fork it

Your contributions are always welcome!