aboutsummaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2014-03-05 10:11:04 +0000
committerSimon McVittie <smcv@debian.org>2014-03-05 10:42:19 +0000
commita9fc30b19cfb68c1bd326e0088a677fc87c7dca5 (patch)
tree920c0949467e359a62e8c02ace24b730c0470d12 /po
parent236c46a3f7e5e62296484dc47b4882f7f4327a06 (diff)
downloadikiwiki-a9fc30b19cfb68c1bd326e0088a677fc87c7dca5.tar
ikiwiki-a9fc30b19cfb68c1bd326e0088a677fc87c7dca5.tar.gz
Track whether we're in the scan or render phase
In the scan phase, it's too early to match pagespecs or sort pages; in the render phase, both of those are OK. It would be possible to add phases later, renumbering them if necessary to maintain numerical order.
Diffstat (limited to 'po')
-rwxr-xr-xpo/po2wiki2
1 files changed, 2 insertions, 0 deletions
diff --git a/po/po2wiki b/po/po2wiki
index 126aa8e17..862aa9d97 100755
--- a/po/po2wiki
+++ b/po/po2wiki
@@ -22,6 +22,8 @@ foreach my $file (@$files) {
$pagesources{$page}=$file; # used by po plugin functions
}
+$IkiWiki::phase = IkiWiki::PHASE_RENDER;
+
foreach my $lang (@{$config{po_slave_languages}}) {
my ($ll, $name)=IkiWiki::Plugin::po::splitlangpair($lang);
$config{destdir}="../underlays/locale/$ll";