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

Sebastian Bergmann's Blog:
Test Dependencies in PHPUnit 3.4
November 14, 2008 @ 10:25:20

Sebastian Bergmann talks about a new bit of functionality he's put into the 3.4 release of PHPUnit (the popular unit testing tool for PHP) based on a suggestion from a paper he'd read:

Back in July, I came across an academic paper (more academic papers on testing that I read recently) titled "JExample: Exploiting Dependencies Between Tests to Improve Defect Localization". [...] For the upcoming PHPUnit 3.4 I have implemented support for the idea expressed in the paper mentioned above.

The feature is a system that helps localize problems at the source, stripping away all of the cascading issues it might have tripped off, causing other tests to fail. This new feature (as illustrated by his code example using a DependencyFailureTest class) makes it simple to fail a test immediately whenever the scripts needs to via a fail() method. Check out the full post for the rest of the code and some further explanation on how it works.

1 comment voice your opinion now!
phpunit test dependencies fail cascade source defect localization


Zend Developer Zone:
L10N==Localization (See there are ten letters...Oh, you get it...OK)
June 09, 2006 @ 06:57:37

Internationalization and Localization are concepts that all web sites and applications will have to deal with at some point. Why not design it form the start? Most people just don't think about it but in an increasingly global society, you need to. The earlier you design for it, the easier it is to do.

They continue on in this post on the Zend Developer Zone with a resource to get you thinking - an Internationalization Primer from Johnathan Snook (as printed in Digital Web Magazine). He looks at the basics you'll need to know when putting in multi-language support, including database designs and precompiling.

1 comment voice your opinion now!
localization article digital web magazine primer localization article digital web magazine primer


Zend Developer Zone:
The Speed of Going Local
April 13, 2006 @ 06:55:10

The Zend Developer Zone has a quick post today covering localization and points to another article with more information.

Localization is becoming more and more important for web designers and developers. It's coming to a web site near you soon and you need to know how to do it and do it fast. And it isn't only about swapping strings that you understand with ones you don't, it is about doing it quickly and smoothly to give your site a global image.

The article, a piece by Pablo Hoch, does some benchmarking of the gettext functionality in PHP. He pits the pure PHP gettext function he wrote against an array containing string translations and the gettext extension. Not surprisingly, the extension beat both of them out, topping the array of strings by just a bit.

0 comments voice your opinion now!
localization extension benchmark array pure-php localization extension benchmark array pure-php


Evolt.org:
PHP Localization with TMX standard
February 27, 2006 @ 19:15:48

On Evolt.org, there's this new tutorial that steps you through the implementation of the TMX standard to create localization for your scripts.

One of the main concerns of internationalization consists of separating the main source code from the texts, the labels, the messages and all the other objects related to the specific language in use. This facilitates the translation process as such as all the resources related to the local language context are well identified and separated.

In a global market the costs to translate and update the texts (including labels, messages, menu elements and so on) can easily become quite high. This is the context where the TMX standard comes to help by applying to the translation and management process of these texts the concepts of reuse, increase of consistency, and the shortening of the production cycle. All this with the added bonus of cutting the development costs.

They give you the XML structure for the example they're working with and the code to get it all working. They also do a great job of explaining how the standards all work. The code is relatively undocumented, but is clear enough to be easily included and used on any site.

0 comments voice your opinion now!
localization tmx standard translation memory exchange localization tmx standard translation memory exchange



Community Events





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


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

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