diff options
| author | ivan <ivan> | 2011-04-18 23:15:19 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2011-04-18 23:15:19 +0000 |
| commit | b5c4237a34aef94976bc343c8d9e138664fc3984 (patch) | |
| tree | ba7cb2c13c199b1012c661fcf4f248e7b7e3d36f /rt/sbin/extract-message-catalog | |
| parent | 96a0d937cdfe26d691e59139088e33e0bc3e1184 (diff) | |
| parent | 75162bb14b3e38d66617077843f4dfdcaf09d5c4 (diff) | |
This commit was generated by cvs2svn to compensate for changes in r11022,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'rt/sbin/extract-message-catalog')
| -rw-r--r-- | rt/sbin/extract-message-catalog | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rt/sbin/extract-message-catalog b/rt/sbin/extract-message-catalog index 022b5b2a9..f6a7f8505 100644 --- a/rt/sbin/extract-message-catalog +++ b/rt/sbin/extract-message-catalog @@ -120,7 +120,7 @@ sub extract_strings_from_code { $filename =~ s'^\./''; $filename =~ s'\.in$''; - unless (open _, $file) { + unless (open _, '<', $file) { print "Cannot open $file for reading ($!), skipping.\n"; return; } @@ -249,7 +249,7 @@ sub update { print "Updating $lang...\n"; my @lines; - @lines = (<LEXICON>) if open (LEXICON, $file); + @lines = (<LEXICON>) if open LEXICON, '<', $file; @lines = grep { !/^(#(:|\.)\s*|$)/ } @lines; while (@lines) { my $msghdr = ""; @@ -343,7 +343,7 @@ sub update { $out .= 'msgid ' . fmt($_) . "msgstr \"$Lexicon{$_}\"\n\n"; } - open PO, ">$file" or die "Couldn't open '$file' for writing: $!"; + open( PO, '>', $file ) or die "Couldn't open '$file' for writing: $!"; print PO $out; close PO; |
