News Feed
Jobs Feed
Sections




News Archive
feed this:

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


Content with Style Blog:
Quick helper script for ZF view translations
October 29, 2009 @ 07:54:01

On the Content with Style blog today Pascal Opitz has posted a helper script for Zend Framework applications to make internationalization of your templates simpler.

Manual copy and paste jobs are a pain. Faced with the prospect of internationalizing 30+ big view files, I thought there had to be a better way. When I started to use the reg exp search facility in Textmate, the penny dropped. A helper script is what was needed.

The CLI script he's created goes through a file, in this case a view file (phtml) and does a replace on the values defined in an ini file. It's a simple one-to-one, exact match relationship but it can make it much easier to do simple translations on a large number of pages.

0 comments voice your opinion now!
zendframework translation helper script tutorial


Stefan Mischook's Blog:
Aprenda Programacion Orientada a Objetos en PHP
May 12, 2008 @ 16:34:54

Stefan Mischook has released a Spanish version of his tutorial covering object-oriented programming in PHP.

I've released my tutorial on Object Oriented PHP in Spanish. You can download the PDF. Many thanks to Javier W. Barbieri from Iquitos Peru.

Check out the KillerPHP.com site for more great tutorials - including videos - released to learning PHP.

2 comments voice your opinion now!
tutorial objectoriented programming spanish translation


Rob Allen's Blog:
Russian and Polish Zend Framework Tutorial
July 23, 2007 @ 08:41:00

Rob Allen has posted about two new translations of his Getting Started with the Zend Framework tutorial - into Russian and Polish.

A couple of new translations of my Zend Framework tutorial have crossed my desk in the last week. Kubek Bartosz has very kindly created a new up to date Polish version of my Zend Framework tutorial. Alex Musayev has created a Russian translation too.

Check out the list of translations for his tutorial including Brazilian, Spanish, Italian and French.

0 comments voice your opinion now!
zendframework translation tutorial polish russian zendframework translation tutorial polish russian



Community Events











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


release language code development podcast framework example functional interview phpunit application introduction opinion unittest community tool conference testing series zendframework2

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