[PEPr] Comment on File Formats::File_Gettext
| From: | PEPr | Date: | Sat, 13 Mar 2004 11:31:51 +0000 |
| Subject: | [PEPr] Comment on File Formats::File_Gettext | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-26380@lists.php.net to get a copy of this message | ||
Alan Knowles (http://pear.php.net/user/alan_k) has commented on the proposal for File
Formats::File_Gettext.
Comment:
Seems good - only minor comment:
po2mo() + poFile2moFile() seem a little klunky. and load/save look like having a filename as an arg
would be sensible.
eg.
$po = File_GetTexT::factory('MO');
$po->load('somefile')
$mo = $po->toMo();
$mo->save('filename');
or even.. (if you have different source formats...)
$fl = File_GetText::factory('FlexyReader');
$fl->load('mytemplate.html');
$mo = $fl->toMo();
$mo->save('mytemplate.mo');
Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=33
--
Sent by PEPr, the automatic proposal system at http://pear.php.net