if ($config{po_link_to} eq "negotiated") {
$res =~ s!/\Qindex.$config{po_master_language}{code}.$config{htmlext}\E$!/!;
$res =~ s!/\Qindex.$config{htmlext}\E$!/!;
if ($config{po_link_to} eq "negotiated") {
$res =~ s!/\Qindex.$config{po_master_language}{code}.$config{htmlext}\E$!/!;
$res =~ s!/\Qindex.$config{htmlext}\E$!/!;
return 0 unless (defined $file
&& defined pagetype($file)
&& pagetype($file) eq 'po');
return 0 unless (defined $file
&& defined pagetype($file)
&& pagetype($file) eq 'po');
} #}}}
sub istranslation ($) { #{{{
my $page=shift;
if (1 < (my ($masterpage, $lang) = _istranslation($page))) {
} #}}}
sub istranslation ($) { #{{{
my $page=shift;
if (1 < (my ($masterpage, $lang) = _istranslation($page))) {
code => $lang,
language => languagename($lang),
percent => percenttranslated($otherpage),
code => $lang,
language => languagename($lang),
percent => percenttranslated($otherpage),