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

Lingohub.com:
Internationalization How To for the 5 most popular PHP frameworks
July 24, 2013 @ 10:15:31

On the Lingohub site there's a new post showing how internationalization (i18n) is handled in 5 major PHP frameworks - CodeIgniter, CakePHP, Zend Framework Symfony and Yii.

As discussed in the previous articles on PHP internationalization, PHP provides native support for string translation using gettext and PHP arrays. These can be used in any PHP project. Additionally, some popular PHP frameworks offer their own way of string translation. In this article, I want to provide a brief summary of the internationalization process with five of the most popular PHP frameworks currently out there. In this How-To you will read about using CodeIgniter, CakePHP, Zend, Yii and Symphony.

There's only a bit of sample code here, so it's not a complete tutorial for all of them. Mostly its links to more information about how each framework does things - modules used, formats and configurations.

0 comments voice your opinion now!
framework i18n internationalization howto codeigniter zendframework symfony cakephp

Link: http://blog.lingohub.com/2013/07/internationalization-how-to-5-most-popular-php-frameworks

PHPMaster.com:
Internationalization Made Easy
November 12, 2012 @ 13:15:58

In this new tutorial posted to PHPMaster.com, Hari K T takes a look at internationalization in a Symfony2-based application using its own translation component.

If you've ever worked to develop a site which needed to be available in multiple languages then you know how difficult it can be. With the help of Symfony2′s Translation component you can easily make internationalized sites. I'll show you how with some sample code and some discussion on its API.

He includes a basic example of how the component works with the typical "hello world" translation from English to French. He mentions fallback locales, pluralization and the conversion between translation formats (like converting from a YAML file into a translation object).

0 comments voice your opinion now!
internationalization symfony2 i18n framework component tutorial


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


DevX.com:
Base Concepts of Internationalization in PHP
August 13, 2008 @ 09:37:12

The DevX website has recently posted this tutorial - a look at simple internationalization for your website.

If you develop Web applications that have an international target audience, then you have to take internationalization into account'"a process that includes avoiding date/time or currency confusions and delivering all text pertinent to the user interface in the user's preferred language. Applications that can grow international traffic and improve revenue must respect their clients' needs.

They use the I18N PEAR package to handle most of the hard work and include the howto on grabbing the package, the structure and how to use it to get a country name from a code, work with the translation of numbers, currency and changing up date/time strings.

0 comments voice your opinion now!
i18n internationalization tutorial concept currency datetime countrycode


Wen Huang's Blog:
Looking ahead to PHP 5.3 and 6
July 15, 2008 @ 11:15:30

Wen Huang has made a quick post to his blog about some of the comments Andrei Zmievski about the future of PHP, specifically on internationalization and UTF-8's place in it.

I attended the SF PHP Meetup last night where Andrei Zmievski (PHP 6 release manager and PHP core team member) gave a talk on PHP 6 and internationalization (i18n). [...] It was evident that Andrei and team have given quite a bit of thought into what i18n means for the PHP world, and as a result, PHP developers everywhere will soon be enjoying a new set of tools to enable faster development of multi-lingual sites.

He also mentions the back-port that several of these features will get into the upcoming PHP 5.3 release (along with the much-hyped namespace support). You can check out Andrei's talk on his website.

0 comments voice your opinion now!
php5 php6 internationalization unicode andreizmievski talk i18n


ThinkPHP Blog:
Multilingual Websites with PHP
July 15, 2008 @ 07:55:38

On the ThinkPHP blog, Florian Eibeck has posted an overview of some key things to consider when internationalizing your application/website.

The biggest problem is that most developers lack knowledge about Internationalisation, Localisation, Character encodings, Unicode and all those terms connected with multilingualism. The following article should give you a basic understanding and show you how to avoid those funny characters.

He defines a few terms - internationalization, ASCII, unicode and the UTF-8/ISO-8859 character sets. He mentions how to accept the utf-8 string into your application and how to use it in both PHP and store it in a MySQL database.

0 comments voice your opinion now!
multilingual website internationalization i18n utf8 unicode


The Show:
The Low Down On Internationalization (i18n)
October 08, 2007 @ 15:27:56

The CakePHP podcast, "The Show" has posted their latest episode - The Low Down On Internationalization (i18n):

Larry Masters joins us once again to discuss internationalization and localization features in the upcoming CakePHP 1.2 release.

You can download this edition directly from their servers (via the mp3 link) or you can point your favorite feed reader at their podcast feed and get each show as it comes out.

0 comments voice your opinion now!
i18n internationalization cakephp framework podcast theshow i18n internationalization cakephp framework podcast theshow


PHP-Tools Blog:
I18n and such
June 18, 2007 @ 09:34:00

Gerd Schauffelberger introduces a new package today as a part of his work with the pat-tools group - the patI18n package for internationalization.

In lack of a better idea, I founded a new PAT Package: patI18n. So far this package is just a draft and only exists in the SVN repository. As you might guess, patI18n is an abstraction layer for translating issues. Therefore it provides nearly the same interface as the famous GNU Gettext. Still, the actual translation is done by a chain of modules - this way everything is possible and the design stays open to new ideas.

He talks briefly about how it came to be and how it varies from some of the more traditional language translation tools. You can check out the example on his development environment or just use the snv details provided to grab the latest copy.

0 comments voice your opinion now!
internationalization i18n pattools package internationalization i18n pattools package


Riff Blog:
Console encoding in PHP-GTK apps
November 20, 2006 @ 10:58:00

PHP-GTKers working in English-related applications, don't have a problem with debugging messages output to a console when debugging, but applications on a more international front have issues with their output. But help has been found in this new post on the Riff Blog - a method for correctly encoding PHP-GTK applications.

PHP scripts are typically stored under UTF-8 encoding to limit i18n headaches, while the console in which their output will be displayed is normally configured to some regional encoding, like IBM850 in Windows/XP French.

So we need a workaround...

He splits the process out into a few steps, each with its own explanation and code:

  • Builtin tools
  • Buffering
  • Flushing
  • PHP-GTK is not PHP for the Web
  • Auto-flushing
All wrapped up with a final solution - using the iconv functionality in combination with some output buffering to correctly display the message.

0 comments voice your opinion now!
phpgtk encoding output console i18n buffering iconv phpgtk encoding output console i18n buffering iconv



Community Events





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


language community developer introduction api library release symfony conference list tips podcast voicesoftheelephpant framework bugfix series laravel deployment interview zendserver

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