- foreach my $page (keys %pagestate) {
- if (exists $pagestate{$page}{po}{translatable}) {
- if (exists $pagesources{$page} &&
- grep { $_ eq $pagesources{$page} } @$needsbuild) {
- # remove state, it will be re-added
- # if the preprocessor directive is still
- # there during the rebuild
- delete $pagestate{$page}{po}{translatable};
- }
- }
- }
+ # FIXME: cache (or memoize) the list of translatable/translation pages,
+ # and/or istranslation/istranslated results