This is an automated email from the ASF dual-hosted git repository.

marcus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openoffice-org.git


The following commit(s) were added to refs/heads/main by this push:
     new 9da2075  Reworked the entries for 'brand.html' to use the general 
English text when no translation is available, to lower the effort for updating 
the website for new releases
9da2075 is described below

commit 9da2075b0fac4b31d0d3bece751811184febec54
Author: Marcus <mar...@apache.org>
AuthorDate: Thu May 13 14:52:48 2021 +0200

    Reworked the entries for 'brand.html' to use the general English text when 
no translation is available, to lower the effort for updating the website for 
new releases
---
 templates/ssi_paths.gsp | 63 ++++++++++++++++++++++++++++++++-----------------
 1 file changed, 41 insertions(+), 22 deletions(-)

diff --git a/templates/ssi_paths.gsp b/templates/ssi_paths.gsp
index 8bc9a1f..8fa9a85 100644
--- a/templates/ssi_paths.gsp
+++ b/templates/ssi_paths.gsp
@@ -37,8 +37,7 @@
        brand["/he/"] = "/he/brand.html"
        brand["/hi/"] = "/hi/brand.html"
        brand["/hu/"] = "/hu/brand.html"
-//     brand["/hy/"] = "/hy/brand.html"
-       brand["/hy/"] = "/brand.html"
+       brand["/hy/"] = "/hy/brand.html"
 //     brand["/is/"] = "/is/brand.html"
        brand["/is/"] = "/brand.html"
        brand["/it/"] = "/it/brand.html"
@@ -76,20 +75,27 @@
        brand["/uk/"] = "/brand.html"
 //     brand["/vi/"] = "/vi/brand.html"
        brand["/vi/"] = "/brand.html"
-//     brand["/xx/"] = "/xx/brand.html"
-       brand["/xx/"] = "/brand.html"
+       brand["/xx/"] = "/xx/brand.html"
        brand["/zh-cn/"] = "/zh-cn/brand.html"
        brand["/zh-tw/"] = "/zh-tw/brand.html"
        brand["/zh/"] = "/zh/brand.html"
 
+// As long as we have no translation for a specific language, we will use the 
general English text to keep the website updates as low as possible for new 
releases.
+// Therefore some of the following languages are commented out and in the next 
line the general "brand.html" will be used.
+
   def topnav = [:]
        topnav["/"] = "/topnav.html"
-       topnav["/af/"] = "/af/topnav.html"
-       topnav["/am/"] = "/am/topnav.html"
-       topnav["/ar/"] = "/ar/topnav.html"
+//     topnav["/af/"] = "/af/topnav.html"
+       topnav["/af/"] = "/topnav.html"
+//     topnav["/am/"] = "/am/topnav.html"
+       topnav["/am/"] = "/topnav.html"
+//     topnav["/ar/"] = "/ar/topnav.html"
+       topnav["/ar/"] = "/topnav.html"
        topnav["/ast/"] = "/ast/topnav.html"
-       topnav["/bg/"] = "/bg/topnav.html"
-       topnav["/ca/"] = "/ca/topnav.html"
+//     topnav["/bg/"] = "/bg/topnav.html"
+       topnav["/bg/"] = "/topnav.html"
+//     topnav["/ca/"] = "/ca/topnav.html"
+       topnav["/ca/"] = "/topnav.html"
        topnav["/cs/"] = "/cs/topnav.html"
        topnav["/da/"] = "/da/topnav.html"
        topnav["/de/"] = "/de/topnav.html"
@@ -99,37 +105,50 @@
        topnav["/eu/"] = "/eu/topnav.html"
        topnav["/fi/"] = "/fi/topnav.html"
        topnav["/fr/"] = "/fr/topnav.html"
-       topnav["/gd/"] = "/gd/topnav.html"
-       topnav["/gl/"] = "/gl/topnav.html"
+//     topnav["/gd/"] = "/gd/topnav.html"
+       topnav["/gd/"] = "/topnav.html"
+//     topnav["/gl/"] = "/gl/topnav.html"
+       topnav["/gl/"] = "/topnav.html"
        topnav["/he/"] = "/he/topnav.html"
        topnav["/hi/"] = "/hi/topnav.html"
        topnav["/hu/"] = "/hu/topnav.html"
        topnav["/hy/"] = "/hy/topnav.html"
-       topnav["/is/"] = "/is/topnav.html"
+//     topnav["/is/"] = "/is/topnav.html"
+       topnav["/is/"] = "/topnav.html"
        topnav["/it/"] = "/it/topnav.html"
-       topnav["/ja/"] = "/ja/topnav.html"
-       topnav["/kab/"] = "/kab/topnav.html"
-       topnav["/km/"] = "/km/topnav.html"
+//     topnav["/ja/"] = "/ja/topnav.html"
+       topnav["/ja/"] = "/topnav.html"
+//     topnav["/kab/"] = "/kab/topnav.html"
+       topnav["/kab/"] = "/topnav.html"
+//     topnav["/km/"] = "/km/topnav.html"
+       topnav["/km/"] = "/topnav.html"
        topnav["/ko/"] = "/ko/topnav.html"
        topnav["/l10n/"] = "/l10n/topnav.html"
        topnav["/lt/"] = "/lt/topnav.html"
        topnav["/nl/"] = "/nl/topnav.html"
        topnav["/no/"] = "/no/topnav.html"
-       topnav["/om/"] = "/om/topnav.html"
+//     topnav["/om/"] = "/om/topnav.html"
+       topnav["/om/"] = "/topnav.html"
        topnav["/pl/"] = "/pl/topnav.html"
        topnav["/pt-br/"] = "/pt-br/topnav.html"
        topnav["/pt/"] = "/pt/topnav.html"
-       topnav["/ru/"] = "/ru/topnav.html"
+//     topnav["/ru/"] = "/ru/topnav.html"
+       topnav["/ru/"] = "/topnav.html"
        topnav["/sk/"] = "/sk/topnav.html"
-       topnav["/sl/"] = "/sl/topnav.html"
+//     topnav["/sl/"] = "/sl/topnav.html"
+       topnav["/sl/"] = "/topnav.html"
        topnav["/sr-cyrl/"] = "/sr-cyrl/topnav.html"
        topnav["/sr-latn/"] = "/sr-latn/topnav.html"
-       topnav["/sr/"] = "/sr/topnav.html"
+//     topnav["/sr/"] = "/sr/topnav.html"
+       topnav["/sr/"] = "/topnav.html"
        topnav["/sv/"] = "/sv/topnav.html"
-       topnav["/ta/"] = "/ta/topnav.html"
-       topnav["/th/"] = "/th/topnav.html"
+//     topnav["/ta/"] = "/ta/topnav.html"
+       topnav["/ta/"] = "/topnav.html"
+//     topnav["/th/"] = "/th/topnav.html"
+       topnav["/th/"] = "/topnav.html"
        topnav["/tr/"] = "/tr/topnav.html"
-       topnav["/uk/"] = "/uk/topnav.html"
+//     topnav["/uk/"] = "/uk/topnav.html"
+       topnav["/uk/"] = "/topnav.html"
        topnav["/vi/"] = "/vi/topnav.html"
        topnav["/xx/"] = "/xx/topnav.html"
        topnav["/zh-cn/"] = "/zh-cn/topnav.html"

Reply via email to