gnucash-htdocs master: Unify currently supported OSes

Frank H.Ellenberger fell at code.gnucash.org
Sun Dec 19 14:36:52 EST 2021


Updated	 via  https://github.com/Gnucash/gnucash-htdocs/commit/afc0cf91 (commit)
	from  https://github.com/Gnucash/gnucash-htdocs/commit/caee8002 (commit)



commit afc0cf91e29b1321fcaa93c6e00c9b88fe11cccc
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date:   Sun Dec 19 19:16:33 2021 +0100

    Unify currently supported OSes

diff --git a/download.phtml b/download.phtml
index 3b3ee93..808b899 100644
--- a/download.phtml
+++ b/download.phtml
@@ -21,8 +21,8 @@
 
   <h3><?php echo T_("Installers")?></h3>
   <ul class="imagelist">
-    <li class="imagelistitem" style="background-image: url(<?=$top_dir?>/images/icons/windows.png);"><?php printf (T_("GnuCash %s for"), $latest_stable)?> <a href="<?php echo $latest_stable_path.$latest_stable_win;?>">Microsoft Windows 8/10</a></li>
-    <li class="imagelistitem" style="background-image: url(<?=$top_dir?>/images/icons/macosx.png);"><?php printf (T_("GnuCash %s for"), $latest_stable)?> <a href="<?php echo $latest_stable_path.$latest_stable_mac_intel;?>">Apple macOS >= 10.13 "High Sierra"</a></li>
+    <li class="imagelistitem" style="background-image: url(<?=$top_dir?>/images/icons/windows.png);"><?php printf (T_("GnuCash %s for"), $latest_stable)?> <a href="<?php echo $latest_stable_path.$latest_stable_win;?>">\SUPPORTED_WIN</a></li>
+    <li class="imagelistitem" style="background-image: url(<?=$top_dir?>/images/icons/macosx.png);"><?php printf (T_("GnuCash %s for"), $latest_stable)?> <a href="<?php echo $latest_stable_path.$latest_stable_mac_intel;?>">\SUPPORTED_MAC</a></li>
   </ul>
 
   <a id="distribution"></a><h3>Linux</h3>
@@ -65,8 +65,8 @@
       <p class="justify"><?php printf (T_("The latest unstable release of <span class=\"gnucash\">GnuCash</span> is %s.  Choose the download for your operating system below."), $latest_unstable)?></p>
       
       <ul>
-        <li><?php printf (T_("GnuCash %s for"), $latest_unstable)?> <a href="<?php echo $latest_unstable_path.$latest_unstable_win;?>">Microsoft Windows 7/8/10</a></li>
-        <li><?php printf (T_("GnuCash %s for"), $latest_unstable)?> Mac OS X <a href="<?php echo $latest_unstable_path.$latest_unstable_mac_intel;?>">Intel >= 10.9 (Mavericks)</a></li>
+        <li><?php printf (T_("GnuCash %s for"), $latest_unstable)?> <a href="<?php echo $latest_unstable_path.$latest_unstable_win;?>">\SUPPORTED_WIN</a></li>
+        <li><?php printf (T_("GnuCash %s for"), $latest_unstable)?> Mac OS X <a href="<?php echo $latest_unstable_path.$latest_unstable_mac_intel;?>">\SUPPORTED_MAC</a></li>
         <li><a href="<?php echo $latest_unstable_path.$latest_unstable_source;?>">bzip2 compressed tarball</a> <?php printf (T_("for GnuCash %s"), $latest_unstable)?></li>
       </ul>
   <?php } ?>
diff --git a/externals/global_params.php b/externals/global_params.php
index a9da0d1..2860dcc 100644
--- a/externals/global_params.php
+++ b/externals/global_params.php
@@ -32,6 +32,9 @@
      $old_stable_win        = $old_stable;
      $old_stable_mac_intel  = $old_stable."-1";
 
+     // Supported targets:
+     define("SUPPORTED_WIN", "Microsoft Windows 8/10/11");
+     define("SUPPORTED_MAC", "Apple macOS  ≥ 10.13—\"High Sierra\"");
      // Frozen versions:
      $show_historical = True;
      $last_win7_version = "3.11"; //Still used in download block on index.phtml
diff --git a/index.phtml b/index.phtml
index 0a05422..fc94b65 100644
--- a/index.phtml
+++ b/index.phtml
@@ -17,12 +17,11 @@ include ("externals/menu.phtml");
             Linux <a href="<?=$latest_stable_path.$latest_stable_source?>"><?=T_("Source code")?></a>
             | <a href="<?=$home?>/download.phtml#distribution"><?=T_("Via distribution")?></a></li>
           <li><img alt="windows" src="<?=$top_dir?>/images/icons/windows.png" />
-            Microsoft Windows <a
-            href="<?=$latest_stable_path.$latest_stable_win?>">8/10</a></li>
+            <a
+            href="<?=$latest_stable_path.$latest_stable_win?>">\SUPPORTED_WIN</a></li>
           <li><img alt="macosx" src="<?=$top_dir?>/images/icons/macosx.png" />
-            Apple macOS <a
-            href="<?=$latest_stable_path.$latest_stable_mac_intel?>"> ≥ 10.13
-              "High Sierra"</a></li>
+            <a
+            href="<?=$latest_stable_path.$latest_stable_mac_intel?>">\SUPPORTED_MAC</a></li>
           <li><a href="<?=$home?>/download.phtml" style="font-size: 80%;"><?=T_("More downloads (Source code, Development …)")?></a></li>
         </ul>
       </div>



Summary of changes:
 download.phtml              | 8 ++++----
 externals/global_params.php | 3 +++
 index.phtml                 | 9 ++++-----
 3 files changed, 11 insertions(+), 9 deletions(-)



More information about the gnucash-changes mailing list