News Feed
Sections




News Archive
feed this:

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/

Symfony Blog:
Symfony Website Updates
October 04, 2013 @ 09:05:44

On the Symfony project's blog today there's a new post from Fabien Potencier talking about some updates that have been made to the Symfony website.

There's a few things that got an update including:

  • Translations that were added to the main site
  • A method of aggregation for Symfony-related blogs
  • A Roadmap notification system that lets you set up email notifications on major roadmap changes and releases.

They're still working on the translations, but if you'd like to help you can contribute to their github repository.

0 comments voice your opinion now!
symfony website update translation planet feed roadmap notification

Link: http://symfony.com/blog/symfony-website-updates

Symfony Blog:
The symfony.com website... in your language
June 11, 2013 @ 09:23:43

On the Symfony blog there's a new post mentioning the availability of the static contents of the Symfony site as a public repository.

The Symfony website has always been in English as English is probably the lingua-franca for web developers. But as some sections of the website do not change that frequently (mainly the "What is Symfony?", "Get started", and "About" sections), and because not all developers are comfortable reading English websites, I'm very happy to announce that most of the static contents are now available in a public Git repository.

They've already had people contributing back to the documentation in their own languages including German, Slovak, Czech, Swedish and Polish. Some of them are still works in progress, but they're getting there.

0 comments voice your opinion now!
symfonycom website language translation github repository

Link: http://symfony.com/blog/the-symfony-com-website-in-your-language

Dev.Umpirsky.com:
Use Poedit to Extract Translations from Twig Templates
September 04, 2012 @ 11:34:51

In this new post to the Umpirsky.com development blog, they show you how to use poedit to extract translations from Twig templates.

By default, Poedit does not have the ability to parse Twig templates. In Twig documenation there is a simple example which shows how to extract translations. This can work with few modifications, but I wanted to make reusable tool which will allow you to parse Twig templates just like you do with plain PHP templates.

The result is the Twig-Gettext-Extractor that's set up inside Poedit as a parser command for "*.twig" files. This automatically extracts the information so that the editor can read the data from the template.

0 comments voice your opinion now!
twig template poedit translation gettext extract


Liip Blog:
Symfony documentation in French is online!
August 29, 2012 @ 11:05:40

On the Liip blog Thomas Botton points out that the French translation of the Symfony documentation is no online and available for public consumption! He was a part of the group that worked on the translation.

A year ago, I started to work with the Symfony documentation French translation team. At this time, I was actually not imagining that it would take so long to get all that work done.. In case you don't know, as of today, the Symfony documentation team already wrote more than 300 documents! Counting 1 to 4 hours to translate one doc plus the time to review it, you get an idea of the overall workload! But anyway, it's done: the Symfony documentation French translation is finally live on symfony.com!!!

He also mentions some of his reasoning for being a part of the team including it being a way to get more involved with Symfony (and open source) in general and the benefit it now provides to French-speakers wanting to get into the framework. You can find the documentation here.

0 comments voice your opinion now!
symfony framework french translation documentation


ServerGrove Blog:
Easily manage multilingual sites with the new TranslationEditorBundle for Symfony2
January 11, 2012 @ 12:09:36

On the ServerGrove blog today there's a new post about using their TranslationEditorBundle (Symfony2) to handle multilingual support for your site.

We have been working a lot with Symfony2 translations lately (we translated our website to Spanish and we are in the process of translating our control panel too). Dealing with multiple translation files is not difficult, but it takes time, lots of copy & paste. We have found that is quite easy to make mistakes, create duplicate lines, etc... in short, it's messy. To tame the translation chaos we decided to create a simple web based editor to deal with Symfony2 translations. The result is the TranslationEditorBundle and it's publicly available for anyone to use and contribute to.

The bundle gives you a simple web frontend to the translation process, making it a lot simpler to input the different versions of the text as well as determine where any duplication might be happening. It also gives you things like the total number of entries and the number of them missing their translations.

0 comments voice your opinion now!
translationeditorbundle symfony2 framework translation frontend editor


Sameer Borate's Blog:
Microsoft Bing Translation PHP wrapper
September 07, 2011 @ 09:43:25

In a new post to his blog today Sameer Borate spotlights a translation wrapper for Bing that lets you easily use their API to translate text or determine what language the given text is in.

Microsoft Language translation is an interesting service. Not only can you do language translation, you can also detect the language of a particular text. The given class provides a PHP wrapper which will help developers translate text from one language to another in a easy manner. The library also supports caching, helping you keep your translations fast and simple.

His translation library requires an AppId for configuration and cURL to handle the messaging back and forth. Translation is as easy as calling "translate()" on a string, language fetching with "LanguageNames()" and even converting the text to speech with the "speak()" method.

2 comments voice your opinion now!
bing translation wrapper appid api language


Symfony News:
Translation Component Now Avabilable (Symfony2)
September 27, 2010 @ 13:23:43

As Fabien Potencier recently mentioned, the Translation component for the Symfony framework has recently been made available for use in the Symfony2 framework.

The Symfony2 Translation Component is now available. The documentation is here on github. As always, I need your feedback.

The documentation includes some best practices examples and describes how to use it to internationalize all of the messages in your application. You'll need to update your configuration yaml files with a few settings so you can use the "trans" method globally.

0 comments voice your opinion now!
translation component symfony2 documentation


Symfony Project Blog:
Translations (Documentation)
July 30, 2010 @ 10:19:47

Have a flair for translation and want to help out an open source project in need? Consider helping the Symfony Project with their translation efforts for their manual.

The Symfony2 documentation is written in English and many people are involved in the translation process. First, become familiar with the markup language used by the documentation. Then, subscribe to the Symfony docs mailing-list, as collaboration happens there. Finally, find the master repository for the language you want to contribute for.

Full details on what they need help on and where/how to get involved are on the documentation page of the new Symfony 2 website.

0 comments voice your opinion now!
translation symfony framework documentation contribute


Anna Filina's Blog:
Doctrine Translation in leftJoin()
April 26, 2010 @ 11:39:33

In a recent post to his blog Anna Filina looks at internationalization in Doctrine and how Symfony auto-builds things to take care of it for you.

If you use Doctrine, then you probably know how lazy loading can hurt your performance. I carefully craft every query to everything that I need in one shot, but only what I need. One thing that evaded me at first was the i18n part. I am pleased with the way Doctrine + symfony magically creates all my models and database tables with i18n support.

She talks a bit about the internationalization (i18n) support is put into the schema.yml file and the bit of confusion she had over how to handle a left join using its structure. The key lies in the Translation relationships.

0 comments voice your opinion now!
doctrine translation left join i18n internationalization



Community Events





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


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

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