News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

ServerGrove Blog:
Symfony2 components overview Translation
March 18, 2014 @ 16:37:40

The ServerGrove blog has posted their latest up-close look at the various components that make up the Symfony2 framework. In their latest post, they focus in on the Translator component.

Modern applications need to be internationalized and localized to be able to reach people from all over the world. Internationalization - aka i18n - is the process of designing a software application so that it can be adapted to various languages and regions without engineering changes. Localization - aka l10n - is the process of adapting internationalized software for a specific region or language by adding locale-specific components such as dates or currency. The Translation component provides different tools to get your application internationalized, but not localized.

The post covers the three main parts of the component - Catalogues, Loaders and Dumpers - and includes a simple example of creating the object, adding resources and calling "trans" to translate. There's also an example of using the YAML file loader to include the translated strings. There's also mentions of pluralization, translation "domains" and custom loaders.

0 comments voice your opinion now!
symfony2 component overview translation tutorial

Link: http://blog.servergrove.com/2014/03/18/symfony2-components-overview-translation/

blog comments powered by Disqus

Similar Posts

Dzone.com: A Free Amazon EC2 Cloud Server Based LAMP

PHPBuilder.com: Introducing the Yii PHP Framework

Sameer Borate's Blog: Detecting duplicate code in PHP files

Padraic Brady's Blog: Mysteries Of Asynchronous Processing w/PHP - Pt 3: Spawned Child Processes

Chris Shiflett\'s Blog: PHP Security and SABSA


Community Events





Don't see your event here?
Let us know!


opinion library voicesoftheelephpant list api language community package symfony release framework series install laravel introduction tips interview bugfix deployment podcast

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework