Re: [PEPr] Comment on Internationalisation::Maketext

From: Date: Tue, 06 Apr 2004 22:05:30 +0000
Subject: Re: [PEPr] Comment on Internationalisation::Maketext
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-27099@lists.php.net to get a copy of this message
> first of all, let me point out, that there is nothing forcing you to use > this module. Are you suggesting this module should not make it into > PEAR, because it is not useful? Yes, just a suggestion. As explained in your article, English is a very simple language. In comparison most other languages are very complex. Basically, your class is supposed to allow a better coding than Gettext simple %s and %d (with support of accusative and so on). But this simply does not work in many languages. Even if you code cases (accusative), numbers (including zero), MANY sentences will break. The only known solution is to write complete sentences and test them within PHP: "I am the owner of 2 green cows and 3 green flags". "I am the owner of 2 green cows but I do not own a green flags". If an Arabic does not like the word 'your' (as explained in your article) it is his translator choice to forget the word "your" in Arabic. In short, your class was designed with a programmer view willing to reduce the number of strings. But to be honest, it has some hidden buffer ***overflow***, especially for projects including many languages. After managing projects in 40 languages, I came to the conclusion that languages are as diverse as Men. You cannot "code" sentences using a computer language, be it PHP or some class. I will send you privately the address of my site so that you can check yourself. Cheers, Jean-Michel

« previous php.pear.dev (#27099) next »