 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Sameer Borate's Blog: Microsoft Bing Translation PHP wrapper
by Chris Cornutt 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.
voice your opinion now!
bing translation wrapper appid api language
Anna Filina's Blog: Doctrine Translation in leftJoin()
by Chris Cornutt 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.
voice your opinion now!
doctrine translation left join i18n internationalization
Content with Style Blog: Quick helper script for ZF view translations
by Chris Cornutt 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.
voice your opinion now!
zendframework translation helper script tutorial
|
Community Events
Don't see your event here? Let us know!
|