[Po4a-commits] "po4a/lib/Locale/Po4a Po.pm,1.48,1.49"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Thu Nov 17 21:00:24 UTC 2005


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv14211/lib/Locale/Po4a

Modified Files:
	Po.pm 
Log Message:
load does not exist. Change it to read in the documentation and export
statement.

Also removes a warning for an uninitialized variable.


Index: Po.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Po.pm,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- Po.pm	8 Nov 2005 16:32:29 -0000	1.48
+++ Po.pm	17 Nov 2005 21:00:20 -0000	1.49
@@ -18,7 +18,7 @@
     my $pofile=Locale::Po4a::Po->new();
 
     # Read po file
-    $pofile->load('file.po');
+    $pofile->read('file.po');
 
     # Add an entry
     $pofile->push('msgid' => 'Hello', 'msgstr' => 'bonjour', 
@@ -76,7 +76,7 @@
 use subs qw(makespace);
 use vars qw(@ISA @EXPORT);
 @ISA = ();
- at EXPORT = qw(load write gettext);
+ at EXPORT = qw(read write gettext);
 
 use Carp qw(croak);
 use File::Path; # mkdir before write
@@ -438,7 +438,7 @@
 
     sub gloups {
 	my $fmt=shift;
-	my $space;
+	my $space = "";
 	for (1..$pos){
 	    $space .= ' ';
 	}




More information about the Po4a-commits mailing list