2017 © Pedro Peláez
 

library zf-localize-helper

Zend Framework module for setting locale to all view helpers, validators and filters

image

fabiang/zf-localize-helper

Zend Framework module for setting locale to all view helpers, validators and filters

  • Monday, February 26, 2018
  • by fabiang
  • Repository
  • 1 Watchers
  • 0 Stars
  • 199 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 5 % Grown

The README.md

ZF Localize helper

Laminas version is available., (*1)

Initializer that passes your configured locale to all view helpers, validators and filters, so you don't have to do this every time., (*2)

Latest Stable Version License Dependency Status Build Status, (*3)

Requirements

This module works with Zend Framework 2 and 3, but zendframework/zend-servicemanager must be at least at version 2.7.6., (*4)

Please see the composer.json file., (*5)

Installation

Run the following composer command:, (*6)

$ composer require fabiang/zf-localize-helper

Configuration

Put the following into your plugin managers config (e.g. config/autoload/i18n.global.php):, (*7)

<?php

return [
    'translator' => [
        'locale' => 'en_US', // this locale will be passed
    ],
    'validators' => [
        'initializers' => [
            \Fabiang\LocalizeHelper\LocaleInitializer::class,
        ]
    ],
    'filters' => [
        'initializers' => [
            \Fabiang\LocalizeHelper\LocaleInitializer::class,
        ]
    ],
    'view_helpers' => [
        'initializers' => [
            \Fabiang\LocalizeHelper\LocaleInitializer::class,
        ]
    ]
];

You can configure the initializer for each type of plugin by removing or adding it to the ValidatorManager/FilterManager/ViewHelperManager config above., (*8)

LICENSE

BSD-2-Clause. See the LICENSE., (*9)

The Versions

26/02 2018

dev-master

9999999-dev

Zend Framework module for setting locale to all view helpers, validators and filters

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

zf2 zend framework module translation i18n localization zend-framework zf2-module zf3-module

29/09 2016

1.0.1

1.0.1.0

Zend Framework module for setting locale to all view helpers, validators and filters

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

zend framework translation i18n localization

29/09 2016

1.0.0

1.0.0.0

Zend Framework module for setting locale to all view helpers, validators and filters

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

zend framework translation i18n localization