umpirsky/i18n-routing-service-provider

Silex i18n routing service provider.

1.0.0 2012-10-23 05:43 UTC

This package is not auto-updated.

Last update: 2024-04-13 11:34:09 UTC


README

68747470733a2f2f6661726d322e737461746963666c69636b722e636f6d2f313730392f32353039383532363838345f616534643530343635665f6f5f642e706e67

symfony upgrade fixertwig gettext extractorwisdomcentipedepermissions handlerextraloadgravatarlocurrocountry listtransliterator

I18n Routing Service Provider Build Status

Silex i18n routing service provider.

Parameters

  • translator.domains.route: Translation message domain. The default value is routes.

Usage

To translate route patterns, just register service provider:

<?php

$app->register(new Umpirsky\Silex\I18nRouting\Provider\I18nRoutingServiceProvider());

If you use controller providers you can take advantage of using Umpirsky\Silex\I18nRouting\Application which overrides Application::mount() method in order to translate prefixes. Alternatively, you can do this trick outside of the Application class, read more on dev.umpirsky.com.

In order for this to work, prefixes should be translated separately from patterns.