Change rendering→building in translatable strings, to ease translations.

master
Jonas Smedegaard 2009-07-23 00:53:23 +02:00
parent 28b572a61e
commit 27071f0ba9
2 changed files with 8 additions and 8 deletions

View File

@ -376,11 +376,11 @@ sub change (@) {
&& exists $config{meta_overrides_page_title} && exists $config{meta_overrides_page_title}
&& defined $config{meta_overrides_page_title} && defined $config{meta_overrides_page_title}
&& $config{meta_overrides_page_title}) { && $config{meta_overrides_page_title}) {
debug(sprintf(gettext("re-rendering all pages to fix meta titles"))); debug(sprintf(gettext("rebuilding all pages to fix meta titles")));
resetalreadyfiltered(); resetalreadyfiltered();
require IkiWiki::Render; require IkiWiki::Render;
foreach my $file (@rendered) { foreach my $file (@rendered) {
debug(sprintf(gettext("rendering %s"), $file)); debug(sprintf(gettext("building %s"), $file));
IkiWiki::render($file); IkiWiki::render($file);
} }
} }

View File

@ -412,7 +412,7 @@ sub refresh () {
} }
calculate_backlinks(); calculate_backlinks();
foreach my $file (@needsbuild) { foreach my $file (@needsbuild) {
debug(sprintf(gettext("rendering %s"), $file)); debug(sprintf(gettext("building %s"), $file));
render($file); render($file);
$rendered{$file}=1; $rendered{$file}=1;
} }
@ -433,7 +433,7 @@ sub refresh () {
foreach my $page (keys %{$backlinks{$p}}) { foreach my $page (keys %{$backlinks{$p}}) {
my $file=$pagesources{$page}; my $file=$pagesources{$page};
next if $rendered{$file}; next if $rendered{$file};
debug(sprintf(gettext("rendering %s, which links to %s"), $file, $p)); debug(sprintf(gettext("building %s, which links to %s"), $file, $p));
render($file); render($file);
$rendered{$file}=1; $rendered{$file}=1;
} }
@ -454,7 +454,7 @@ sub refresh () {
next if $f eq $file; next if $f eq $file;
my $page=pagename($file); my $page=pagename($file);
if (pagespec_match($page, $depends{$p}, location => $p)) { if (pagespec_match($page, $depends{$p}, location => $p)) {
debug(sprintf(gettext("rendering %s, which depends on %s"), $f, $page)); debug(sprintf(gettext("building %s, which depends on %s"), $f, $page));
render($f); render($f);
$rendered{$f}=1; $rendered{$f}=1;
last; last;
@ -493,7 +493,7 @@ sub refresh () {
my $linkfile=$pagesources{$link}; my $linkfile=$pagesources{$link};
if (defined $linkfile) { if (defined $linkfile) {
next if $rendered{$linkfile}; next if $rendered{$linkfile};
debug(sprintf(gettext("rendering %s, to update its backlinks"), $linkfile)); debug(sprintf(gettext("building %s, to update its backlinks"), $linkfile));
render($linkfile); render($linkfile);
$rendered{$linkfile}=1; $rendered{$linkfile}=1;
} }
@ -505,7 +505,7 @@ sub refresh () {
my $page=pagename($src); my $page=pagename($src);
foreach my $file (@{$oldrenderedfiles{$page}}) { foreach my $file (@{$oldrenderedfiles{$page}}) {
if (! grep { $_ eq $file } @{$renderedfiles{$page}}) { if (! grep { $_ eq $file } @{$renderedfiles{$page}}) {
debug(sprintf(gettext("removing %s, no longer rendered by %s"), $file, $page)); debug(sprintf(gettext("removing %s, no longer built by %s"), $file, $page));
prune($config{destdir}."/".$file); prune($config{destdir}."/".$file);
} }
} }
@ -529,7 +529,7 @@ sub commandline_render () {
$file=~s/\Q$config{srcdir}\E\/?//; $file=~s/\Q$config{srcdir}\E\/?//;
my $type=pagetype($file); my $type=pagetype($file);
die sprintf(gettext("ikiwiki: cannot render %s"), $srcfile)."\n" unless defined $type; die sprintf(gettext("ikiwiki: cannot build %s"), $srcfile)."\n" unless defined $type;
my $content=readfile($srcfile); my $content=readfile($srcfile);
my $page=pagename($file); my $page=pagename($file);
$pagesources{$page}=$file; $pagesources{$page}=$file;