diff options
author | intrigeri <intrigeri@boum.org> | 2008-11-06 14:17:33 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2008-11-06 14:17:33 +0100 |
commit | 802be941044a1ba3caa8dc3cea9e8932472c3a02 (patch) | |
tree | 4e503ed7846170ac72c7b3b1db0a5ea08d3b519a /IkiWiki/Plugin | |
parent | a4cbfce7639282aa8211d98bc909480db66f9af7 (diff) |
po: use prep_writefile before creating any files in refreshpot and refreshpo
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/po.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 9dc4061ef..cfba83995 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -164,6 +164,7 @@ sub refreshpot ($) { #{{{ $doc->{TT}{po_out}->set_charset('utf-8'); # do the actual work $doc->parse; + IkiWiki::prep_writefile(basename($potfile),dirname($potfile)); $doc->writepo($potfile); } #}}} @@ -175,6 +176,7 @@ sub refreshpofiles ($@) { #{{{ error("[po/refreshpofiles] POT file ($potfile) does not exist") unless (-e $potfile); foreach my $pofile (@pofiles) { + IkiWiki::prep_writefile(basename($pofile),dirname($pofile)); if (-e $pofile) { system("msgmerge", "-U", "--backup=none", $pofile, $potfile) == 0 or error("[po/refreshpofiles:$pofile] failed to update"); |