[Po4a-commits] "po4a po4a,1.60,1.61 changelog,1.137,1.138"
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Thu Nov 23 00:54:54 CET 2006
Update of /cvsroot/po4a/po4a
In directory alioth:/tmp/cvs-serv31148
Modified Files:
po4a changelog
Log Message:
Create potentially missing directories (splitted mode).
Index: po4a
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- po4a 27 Oct 2006 22:25:49 -0000 1.60
+++ po4a 22 Nov 2006 23:54:52 -0000 1.61
@@ -636,7 +636,7 @@
# make a big pot
my $update_pot_file = 0;
if ($pot_filename =~ m/\$master/) {
- print "Splitted mode, creating a temporary POT.\n"
+ print wrap_msg(gettext("Splitted mode, creating a temporary POT")."\n")
if $po4a_opts{"verbose"};
foreach my $master (keys %document) {
my $m = basename $master;
@@ -749,6 +749,12 @@
run_cmd($cmd);
unless ($po4a_opts{"force"}) {
+ my $dir = dirname($splitted_pot{$master});
+ if (not -d $dir) {
+ mkdir $dir
+ or die wrap_msg(gettext("Can't create directory '%s': %s"),
+ $dir, $!);
+ }
Locale::Po4a::Po::move_po_if_needed($tmp_file,
$splitted_pot{$master});
}
@@ -828,9 +834,16 @@
" $po_filename{$lang}";
run_cmd($cmd);
- Locale::Po4a::Po::move_po_if_needed($tmp_file,
- $splitted_po{$lang}{$master})
- unless ($po4a_opts{"force"});
+ unless ($po4a_opts{"force"}) {
+ my $dir = dirname($splitted_po{$lang}{$master});
+ if (not -d $dir) {
+ mkdir $dir
+ 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});
+ }
}
}
}
Index: changelog
===================================================================
RCS file: /cvsroot/po4a/po4a/changelog,v
retrieving revision 1.137
retrieving revision 1.138
diff -u -d -r1.137 -r1.138
--- changelog 22 Nov 2006 23:51:22 -0000 1.137
+++ changelog 22 Nov 2006 23:54:52 -0000 1.138
@@ -8,6 +8,9 @@
man page comment.
* lib/Locale/Po4a/Man.pm: mdoc macros can have empty quoted
arguments. Thanks to Thomas Huriaux for noticing.
+ * po4a: Add a string for translation.
+ * po4a: In splitted mode, some directories may be missing. Force
+ their creation.
2006-11-03 Azamat H. Hackimov (winterheart-guest)
More information about the Po4a-commits
mailing list