7 my $prefix = 'I18N_OPENXPKI_';
14 foreach my $dir (@ARGV) {
17 if (-e
"$dir/MANIFEST") {
18 open my $MAN, '<', "$dir/MANIFEST";
21 foreach my $man (@MANIFEST) {
25 find
(\
&extract_tags
, $dir);
30 my $rel_name = $File::Find
::name
;
31 my $dir_name = $File::Find
::topdir
;
32 $rel_name =~ s/$basedir\///;
33 if ($File::Find
::name
!~ m{ \.svn }xms) {
34 if (scalar @MANIFEST > 0 && ! grep {$_ eq $rel_name} @MANIFEST) {
35 # if we have a MANIFEST file, the file needs to be in it
36 # to be searched for tags
39 open my $FILE, '<', $filename;
40 while (my $line = <$FILE>) {
41 while ($line =~ s{ (I18N_OPENXPKI_[A-Z0-9\_]+) }{}xms) {
51 # SOME DESCRIPTIVE TITLE.
52 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
53 # This file is distributed under the same license as the PACKAGE package.
54 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
59 "Project-Id-Version: PACKAGE VERSION\n"
60 "Report-Msgid-Bugs-To: \n"
61 "POT-Creation-Date: 2004-09-08 14:02+0200\n"
62 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
63 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
64 "Language-Team: LANGUAGE <LL@li.org>\n"
66 "Content-Type: text/plain; charset=UTF-8\n"
67 "Content-Transfer-Encoding: 8bit\n"
71 foreach my $tag (sort keys %tags) {
72 print qq{msgid
"$tag"\n} . qq{msgstr
""\n};