venne / translator-module
Translator module
Installs: 1 384
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.2
- venne/framework: 2.0.*@dev
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