Re: Config 1.7 iniCommented parser error ( see quoteAndCommaParser function )

From: Date: Tue, 17 Jun 2003 08:46:55 +0000
Subject: Re: Config 1.7 iniCommented parser error ( see quoteAndCommaParser function )
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6030@lists.php.net to get a copy of this message
<laurent.laville@worldonline.fr> wrote : > Hi Bertrand Mansion and Greg Beaver > > My problem is i think to Greg, because on IniCommented container the > function _quoteAndCommaParser > cannot parse successfully my file. > > Well, in my project i've a ini structured file for all messages (in many > languages, one for each translation) > on english file no problem because i've no words like these in french : > > parser wrong on french line ( have a look on quote between letter L and > word INSTALLATION ) > ; *** Common wizard text > ClickNext=Cliquez sur "Suivant" pour continuer, "Annuler" pour quitter > l'installation. > > while in same time english is good (of course i've put no quote) > > ; *** Common wizard text > ClickNext=Click Next to continue, or Cancel to exit Setup. > > > Of course, the solution to use a ini structured file for a message file is > not the best one, > getText is better but not supported on all platform. So i've to keep my > message text file (perharps an XML if the problem still live ) Hi Laurent, A configuration file, especially in ini format (which has its own specifications and limits) is not made to hold textual information. Using quotes in the middle of a directive like you do is forbidden, unless it is wrapped by other quotes at the beginning and at the end of the string (along with backslashes). Then, I would recommend using a php array, xml, wddx, db, gettex, I18N or whatever but not ini files. Good luck, Bertrand Mansion Mamasam

« previous php.pear.general (#6030) next »