Download the PHP package pragmarx/glottos without Composer
On this page you can find all versions of the php package pragmarx/glottos. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pragmarx/glottos
More information about pragmarx/glottos
Files in pragmarx/glottos
Package glottos
Short Description A PHP 5.3+ Online Translation/Localization System
License BSD-3-Clause
Informations about the package glottos
Glottos
An Online Translation/Localization System for Laravel Web Artisans
Check out Glottos Admin, a full featured site translation system built with Glottos.
A quick overview of what you are able to do with it:
The idea behind this package is very simple: you need your web app to become multi-language fast so you better translate it all online, with some help from co-workers or the community.
Schema
Basically Glottos will create and sometimes populate a bunch of tables for
- Countries - 127
- Languages - 129
- Locales - 323 - Each one with its proper regional language name
- Messages - (is stores hashes of the primary message)
- Translations - one row for each message x locale
Here's a view of how Laravel's messages are stored in the Admin site:
Installation
Requirements
- Any flavour of PHP 5.3.7+ should do
- [optional] PHPUnit to execute the test suite
Frameworks
Since Glottos depends on data layer it is a Laravel 4.x ready package, but it was coded to be as much agnostic as possible, so you can create new drivers and use it on your own frameworks. You can even send me PRs to add them to the main code.
With Composer
composer require pragmarx/glottos dev-master
Once this operation completes, add the service provider to your app/config/app.php:
Migrate Glottos tables:
Import your current language files:
And you should be good to go. Enjoy!
TODO
- Add a real cache layer to it.
- Add more frameworks and data access drivers.
Author
Antonio Carlos Ribeiro - http://twitter.com/iantonioribeiro
License
Glottos is licensed under the MIT License - see the LICENSE
file for details
Contributing
Pull requests and issues are more than welcome.
All versions of glottos with dependencies
illuminate/support Version ~4|~5
illuminate/filesystem Version ~4|~5
illuminate/console Version ~4|~5
symfony/translation Version ~2|~3