From: Teemu A. <in...@us...> - 2005-03-30 00:14:00
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/I18N In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26327/lib/OpenInteract2/I18N Modified Files: Initializer.pm Log Message: remove null key because the PO header metadata is already parsed and added to message hash with __ prefixes Index: Initializer.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/I18N/Initializer.pm,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Initializer.pm 24 Mar 2005 13:06:52 -0000 1.17 --- Initializer.pm 30 Mar 2005 00:13:51 -0000 1.18 *************** *** 211,214 **** --- 211,220 ---- my $msg = Locale::Maketext::Lexicon::Gettext->parse( <GETTEXT> ); close( GETTEXT ); + + # The PO header metadata is parsed and added with __ prefixes to + # message hash. The complete header is stored with key '' + # which we remove as unnecessary. + delete $msg->{ '' } if exists $msg->{ '' }; + if ( $log->is_debug ) { $log->debug( "Read following messages from '$gettext_file': " ); |