venne/translator-module

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

Translator module

Installs: 1 384

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/venne/translator-module

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

This package is auto-updated.

Last update: 2025-09-29 01:46:41 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