venne/translator-module

There is no license information available for the latest version (dev-master) of this package.

Translator module

dev-master / 2.1.x-dev 2013-12-09 17:36 UTC

This package is auto-updated.

Last update: 2024-10-29 04:17:43 UTC


README

Installation in Nette

run:

php composer.phar require venne/translator-module:2.0.x

add to bootstrap.php

TranslatorModule\DI\TranslatorExtension::register($configurator);

Installation in Venne

run only:

php composer.phar require venne/translator-module:2.0.x

How to use

Configuration

add to config.neon new directories. For example:

translator:
	dictionaries:
		- %modules.cms.path%/Resources/translations
		- %modules.blog.path%/Resources/translations

Dictionary

Dictionary is folder with translation files. File format must be <name>.<lang>.<driver>.

Examples

  • admin.cs.latte
  • blog.pl.php
  • eshop.de.ini

Extraction of strings

command:

php www/index.php translator:extract vendor/venne/cms-module/

save into file:

php www/index.php translator:extract vendor/venne/cms-module/ vendor/venne/cms-module/CmsModule/Resources/translations/test.cs.neon