From: Chris W. <la...@us...> - 2005-03-12 18:37:32
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4782/lib/OpenInteract2 Modified Files: Package.pm Log Message: OIN-143: be able to read localization messages from PO/MO files just like our custom .msg files Index: Package.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Package.pm,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** Package.pm 9 Mar 2005 20:26:22 -0000 1.52 --- Package.pm 12 Mar 2005 18:37:18 -0000 1.53 *************** *** 293,297 **** unless ( scalar @{ $base_files } ) { my $files = $self->get_files; ! $base_files = [ grep { m|^msg/.*\.msg$| } @{ $files } ]; } my $dir = $self->directory; --- 293,297 ---- unless ( scalar @{ $base_files } ) { my $files = $self->get_files; ! $base_files = [ grep { m!^msg/.*\.(mo|po|msg)$! } @{ $files } ]; } my $dir = $self->directory; *************** *** 1215,1222 **** my $action = 'Check localization filename'; foreach my $message_file ( @{ $message_files } ) { ! my $full_file = $self->find_file( $message_file ); ! $log->is_debug && $log->debug( "Checking message file '$full_file'" ); my $lang = OpenInteract2::I18N::Initializer ! ->is_valid_message_file( $full_file ); my $msg = ( $lang ) ? "Extracted language '$lang' from '$message_file'" --- 1215,1221 ---- my $action = 'Check localization filename'; foreach my $message_file ( @{ $message_files } ) { ! $log->is_debug && $log->debug( "Checking message file '$message_file'" ); my $lang = OpenInteract2::I18N::Initializer ! ->is_valid_message_file( $message_file ); my $msg = ( $lang ) ? "Extracted language '$lang' from '$message_file'" *************** *** 1680,1684 **** this routine will pick up all files that match C<^conf/spops.*\.ini$>. ! Returns: arrayref of relative SPOPS configuration files. B<get_action_files()> --- 1679,1683 ---- this routine will pick up all files that match C<^conf/spops.*\.ini$>. ! Returns: arrayref of fully-qualified SPOPS configuration files. B<get_action_files()> *************** *** 1693,1697 **** C<^conf/action.*\.ini$>. ! Returns: arrayref of relative action configuration files. B<get_message_files()> --- 1692,1696 ---- C<^conf/action.*\.ini$>. ! Returns: arrayref of fully-qualified configuration files. B<get_message_files()> *************** *** 1702,1708 **** L<OpenInteract2::Config::Package|OpenInteract2::Config::Package>), or this routine will pick up all files that match ! C<^msg/*\.msg$>. ! Returns: arrayref of relative message files. B<get_changes()> --- 1701,1707 ---- L<OpenInteract2::Config::Package|OpenInteract2::Config::Package>), or this routine will pick up all files that match ! C<^msg/*\.(mo|po|msg)$>. ! Returns: arrayref of fully-qualified message files. B<get_changes()> |