Componette

Componette

nedryse

nedryse / translateable-template-factory v1.1.1

Proper way how to load translator into the presenters and controls template in the Nette framework based applications

download-cloud-line composer require nedryse/translateable-template-factory

#nedryse/translateable-template-factory (cc)# Pavel Železný (2bfree), 2014 (pavelzelezny.cz)

Requirements

Nette Framework 2.4.0 or higher

Documentation

Proper way how to load translator into the presenters and controls template in the Nette framework based applications

Instalation

Prefered way to intall is by the Composer

composer require nedryse/translateable-template-factory:~1.1

Or by manualy adding into the composer.json

{
	"require":{
		"nedryse/translateable-template-factory": "~1.1"
	}
}

Setup

Add following code into the config.neon

common:
	services:
		nette.templateFactory: Nedryse\Nette\Bridges\ApplicationLatte\TranslatableTemplateFactory

Usage

At the moment of the template creation in the presenter or in the control, the translator is already loaded in it

  • v1.1.1 Version 1.1.1 stable

    Version 1.1.1 stable

  • v1.1.0 Version 1.1.0 stable

    Version 1.1.0 stable

bar-chart-fill

Statistics

download-cloud-fill
3861
star-fill
1
bug-fill
0
flashlight-fill
7.3y
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=5.3.1)
Componette Componette felix@nette.org