[Po4a-commits] "po4a changelog,1.141,1.142 po4a,1.62,1.63"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Thu Nov 30 15:15:13 CET 2006


Update of /cvsroot/po4a/po4a
In directory alioth:/tmp/cvs-serv11492

Modified Files:
	changelog po4a 
Log Message:
Po.pm did not export anything. Now it exports move_po_if_needed, which can
be used in po4a in a simplier way.


Index: po4a
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- po4a	30 Nov 2006 12:25:28 -0000	1.62
+++ po4a	30 Nov 2006 14:15:11 -0000	1.63
@@ -304,6 +304,7 @@
 use Locale::Po4a::Chooser;
 use Locale::Po4a::TransTractor;
 use Locale::Po4a::Common;
+use Locale::Po4a::Po qw(move_po_if_needed);
 
 use Pod::Usage qw(pod2usage);
 
@@ -755,8 +756,7 @@
         run_cmd($cmd);
 
         unless ($po4a_opts{"force"}) {
-            Locale::Po4a::Po::move_po_if_needed($tmp_file,
-                                                $splitted_pot{$master});
+            move_po_if_needed($tmp_file, $splitted_pot{$master});
         }
     }
     # Generate a complete .po
@@ -841,8 +841,8 @@
                         or die wrap_msg(gettext("Can't create directory '%s': %s"),
                                         $dir, $!);
                 }
-                Locale::Po4a::Po::move_po_if_needed($tmp_file,
-                                                  $splitted_po{$lang}{$master});
+                move_po_if_needed($tmp_file,
+                                  $splitted_po{$lang}{$master});
             }
         }
     }

Index: changelog
===================================================================
RCS file: /cvsroot/po4a/po4a/changelog,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -d -r1.141 -r1.142
--- changelog	30 Nov 2006 12:25:28 -0000	1.141
+++ changelog	30 Nov 2006 14:15:11 -0000	1.142
@@ -2,6 +2,10 @@
 
 	* po4a: In splitted mode, always add the directories. They were
 	missing when --force is used.
+	* lib/Locale/Po4a/Po.pm: Export move_po_if_needed. Other
+	subroutine are not needed. They are object's methods.
+	* po4a: Import move_po_if_needed, and use it instead of
+	Locale::Po4a::Po::move_po_if_needed().
 
 2006-11-25  Nicolas François  <nicolas.francois at centraliens.net>
 




More information about the Po4a-commits mailing list