aboutsummaryrefslogtreecommitdiffstats
path: root/po/clean_po.pl
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-06-27 12:44:56 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-06-27 12:44:56 +0000
commit58d15a09e3be7b796c977a98e0e9d7acc822705b (patch)
tree2b7c6c3f4f235bfe7d037540167cb0637b994d7c /po/clean_po.pl
parent5f51b031615efd340426ff73c01ca30a011ab164 (diff)
downloadrpmdrake-58d15a09e3be7b796c977a98e0e9d7acc822705b.tar
rpmdrake-58d15a09e3be7b796c977a98e0e9d7acc822705b.tar.gz
rpmdrake-58d15a09e3be7b796c977a98e0e9d7acc822705b.tar.bz2
rpmdrake-58d15a09e3be7b796c977a98e0e9d7acc822705b.tar.xz
rpmdrake-58d15a09e3be7b796c977a98e0e9d7acc822705b.zip
fix some missing translations for compssUsers ("Mandrake Choices")
Diffstat (limited to 'po/clean_po.pl')
-rwxr-xr-xpo/clean_po.pl17
1 files changed, 17 insertions, 0 deletions
diff --git a/po/clean_po.pl b/po/clean_po.pl
new file mode 100755
index 00000000..7022dc74
--- /dev/null
+++ b/po/clean_po.pl
@@ -0,0 +1,17 @@
+#!/usr/bin/perl
+
+# we remove old translations (#~ stuff) because some id's may be shared
+# with what's extracted from the compss, and in such case msgfmt will
+# not put the translations in the mo :(
+
+use MDK::Common;
+
+my $line_number = 0;
+my @contents = cat_($ARGV[0]);
+
+foreach (@contents) {
+ $line_number++;
+ /^#, fuzzy/ && $contents[$line_number+1] =~ /^#~/ and next;
+ /^#~/ and next;
+ print;
+}