diff options
author | Guillem Jover <guillem@debian.org> | 2024-02-24 20:29:23 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2024-03-23 03:03:13 +0100 |
commit | 0c770daa94be44fe5be244fadd43685bc3010b51 (patch) | |
tree | 520832d42c07a1cc932e7d99e6939f3a89d12fe0 | |
parent | 5afd2e445a244d78f8c2dbc4a9aa6be292bd2f9d (diff) |
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.
-rwxr-xr-x | stattrans.pl | 6 |
1 files changed, 2 insertions, 4 deletions
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; |