voda / php-translator
Gettext based translator for php with macros for Nette Latte templates.
Installs: 470
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 3
Open Issues: 0
pkg:composer/voda/php-translator
Requires
- php: >=5.3.0
 
This package is auto-updated.
Last update: 2025-10-05 20:51:42 UTC
README
Gettext based translator for php with macros for Nette Latte templates.
Installation
php-translator can be installed with composer. Just add "voda/php-translator": "*" to your require section of composer.json. This library depends on php-gettext, which unfortunately isn't a composer package. However you can add the following code to your composer.json file and the composer will install it for you.
{
	"repositories": [
		{
			"type": "package",
			"package": {
				"name": "php-gettext/php-gettext",
				"version": "1.0.11",
				"dist": {
					"type": "tar",
					"url": "https://launchpad.net/php-gettext/trunk/1.0.11/+download/php-gettext-1.0.11.tar.gz"
				},
				"autoload": {
					"classmap": [
						"gettext.php",
						"streams.php"
					]
				}
			}
		}
	],
	"require": {
		"php-gettext/php-gettext" : "1.0.*"
	}
}
License
php-translator is licensed under the New BSD License.
Copyright
- 2011 Antee, s.r.o.
 - 2011 Ondřej Vodáček