From 0c770daa94be44fe5be244fadd43685bc3010b51 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sat, 24 Feb 2024 20:29:23 +0100 Subject: stattrans: Do not include index.wml for news/consultants/users in general If the specific pages for news/consultants/users are not to be translated, doing so for their main index pages seems not much useful anyway. Relegate them to their own sections, so that translators can focus their attention on specific parts of the web site. --- stattrans.pl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'stattrans.pl') diff --git a/stattrans.pl b/stattrans.pl index c9db9fda803..6b9551d661b 100755 --- a/stattrans.pl +++ b/stattrans.pl @@ -542,12 +542,10 @@ foreach $lang (@search_in) { ($file !~ /international\/index.wml$/) && ($file !~ /international\/l10n\//)) { $ui_body .=$u_tmp; - } elsif ((($file =~ /(News|events|security|vote)\/[0-9]{4}\//) && - ($file !~ /index.wml$/)) || + } elsif (($file =~ /(News|events|security|vote)\/[0-9]{4}\//) || ($file =~ /(News\/weekly\/[0-9]{4}\/|security\/undated)/)) { $un_body .= $u_tmp; - } elsif (($file =~ /(consultants|users\/(com|edu|gov|org))\//) && - ($file !~ /index.wml$/)) { + } elsif ($file =~ /(consultants|users\/(com|edu|gov|org))\//) { $uu_body .=$u_tmp; } else { $u_body .= $u_tmp; -- cgit v1.2.3