ddts-script 0.4.9
Bonjour,
Là le problème devrait vraiment être règlé.
journal des modifications :
version 0.4.9
- bug fix:
- change: skip empty and ppart comments instead of removing them afterwards
thanks to Christian Pierrer for reporting this bug
La rustine est attachée, le script complet n'a pas bougé :
http://perso.wanadoo.fr/nico.bertol/ddts/ddts-script.txt
Nicolas
--
--- ddts-script_0.4.8.txt Tue Jan 8 18:57:13 2002
+++ ddts-script_0.4.9.txt Wed Jan 9 21:32:17 2002
@@ -277,7 +277,7 @@
=cut
-my $version = "0.4.8";
+my $version = "0.4.9";
# Test if configuration as been made
foreach ($tr_dir, $bug_dir, $rev_dir, $temp_dir) {
@@ -698,12 +698,12 @@
$langage = $1;
$translation = $';
while (<UU>) {
+ next if (/^#\s*$/); # remove empty comments
+ next if (/^# ppart translation, please check it! It need your help:/); # remove ppart comments
last unless /^(##)? /;
$translation .= $1 if (defined $1);
$translation .= " $'";
}
- $translation = &uncomment($translation, '^#\s*$'); # remove empty comments
- $translation = &uncomment($translation, "^# ppart translation, please check it! It need your help:"); # remove ppart comments
$processed++;
$debug>4 && print " translation\n"
Reply to: