Bug 1566358 - Update releases page to include 64-bit Windows and Linux platforms - use xml sources for downloads table and fieldset r=me
authorIan Neal <iann_cvs@blueyonder.co.uk>
Wed, 24 Jul 2019 19:44:18 +0100
changeset 1359 d828626954167b59f9e35b01497c14893b0cf0a2
parent 1358 1fab9916b903441aa0fca73bf72c7eb5b16b2ed4
child 1360 b13d1e95b37f724df3614690f5a7d8742dc0f9cd
push id133
push useriann_cvs@blueyonder.co.uk
push dateWed, 24 Jul 2019 18:48:46 +0000
reviewersme
bugs1566358
Bug 1566358 - Update releases page to include 64-bit Windows and Linux platforms - use xml sources for downloads table and fieldset r=me
lib/downloads_fieldset.en.xml
lib/downloads_table.en.xml
lib/release.tmpl
src/index-new.en.html
src/releases/index-new.en.html
new file mode 100644
--- /dev/null
+++ b/lib/downloads_fieldset.en.xml
@@ -0,0 +1,31 @@
+<dropdowns>
+  <dropdown id="download_platform" label="Which operating system are you using?" aria="download_info">
+    <option value="win64" label="Windows 64-bit" />
+    <option value="win" label="Windows 32-bit" />
+    <option value="osx" label="macOS" />
+    <option value="linux64" label="Linux 64-bit" />
+    <option value="linux" label="Linux 32-bit" />
+  </dropdown>
+  <dropdown id="download_language" label="Would you like to select a different language?" aria="download_info">
+    <option value="zh-CN" label="Chinese (Simplified) — 中文 (简体)" />
+    <option value="zh-TW" label="Chinese (Traditional) — 正體中文 (繁體)" />
+    <option value="cs" label="Czech — Čeština" />
+    <option value="nl" label="Dutch — Nederlands" />
+    <option value="en-GB" label="English (British)" />
+    <option value="en-US" label="English (US)" />
+    <option value="fr" label="French — Français" />
+    <option value="de" label="German — Deutsch" />
+    <option value="hu" label="Hungarian — magyar" />
+    <option value="it" label="Italian — Italiano" />
+    <option value="ja" label="Japanese — 日本語" />
+    <option value="lt" label="Lithuanian — Lietuvių" />
+    <option value="nb-NO" label="Norwegian (Bokmål) — Norsk bokmål" />
+    <option value="pl" label="Polish — Polski" />
+    <option value="pt-PT" label="Portuguese (Portugal) — Português (Europeu)" />
+    <option value="ru" label="Russian — Русский" />
+    <option value="sk" label="Slovak — slovenčina" />
+    <option value="es-AR" label="Spanish (Argentina) — Español (de Argentina)" />
+    <option value="es-ES" label="Spanish (Spain) — Español (de España)" />
+    <option value="sv-SE" label="Swedish — Svenska" />
+  </dropdown>
+</dropdowns>
new file mode 100644
--- /dev/null
+++ b/lib/downloads_table.en.xml
@@ -0,0 +1,209 @@
+<downloads summary="SeaMonkey builds available for download.">
+  <header name="Language" colspan="2" class="top-left"/>
+  <header name="Version" />
+  <header name="Windows" second="64-bit" spanclass="download-win" />
+  <header name="Windows" second="32-bit" spanclass="download-win" />
+  <header name="macOS" spanclass="download-mac" />
+  <header name="Linux" second="64-bit" class="top-right" spanclass="download-linux" />
+  <header name="Linux" second="32-bit" class="top-right" spanclass="download-linux" />
+  <language id="zh-CN">
+    <cell name="Chinese (Simplified)" />
+    <cell lang="zh-CN" native="中文 (简体)" />
+    <cell version="" />
+    <cell locale="zh-CN" class="download-win" platform="win64" content="Download" />
+    <cell locale="zh-CN" class="download-win" platform="win" content="Download" />
+    <cell locale="zh-CN" class="download-mac" platform="osx" content="Download" />
+    <cell locale="zh-CN" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="zh-CN" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="zh-TW">
+    <cell name="Chinese (Traditional)" />
+    <cell lang="zh-TW" native="正體中文 (繁體)" />
+    <cell version="" />
+    <cell locale="zh-TW" class="download-win" platform="win64" content="Download" />
+    <cell locale="zh-TW" class="download-win" platform="win" content="Download" />
+    <cell locale="zh-TW" class="download-mac" platform="osx" content="Download" />
+    <cell locale="zh-TW" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="zh-TW" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="cs">
+    <cell name="Czech" />
+    <cell lang="cs" native="Čeština" />
+    <cell version="" />
+    <cell locale="cs" class="download-win" platform="win64" content="Download" />
+    <cell locale="cs" class="download-win" platform="win" content="Download" />
+    <cell locale="cs" class="download-mac" platform="osx" content="Download" />
+    <cell locale="cs" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="cs" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="nl">
+    <cell name="Dutch" />
+    <cell lang="nl" native="Nederlands" />
+    <cell version="" />
+    <cell locale="nl" class="download-win" platform="win64" content="Download" />
+    <cell locale="nl" class="download-win" platform="win" content="Download" />
+    <cell locale="nl" class="download-mac" platform="osx" content="Download" />
+    <cell locale="nl" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="nl" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="en-US">
+    <cell name="English (US)" />
+    <cell lang="en-US" native="English (US)" />
+    <cell version="" />
+    <cell locale="en-US" class="download-win" platform="win64" content="Download" />
+    <cell locale="en-US" class="download-win" platform="win" content="Download" />
+    <cell locale="en-US" class="download-mac" platform="osx" content="Download" />
+    <cell locale="en-US" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="en-US" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="en-GB">
+    <cell name="English (British)" />
+    <cell lang="en-GB" native="English (British)" />
+    <cell version="" />
+    <cell locale="en-GB" class="download-win" platform="win64" content="Download" />
+    <cell locale="en-GB" class="download-win" platform="win" content="Download" />
+    <cell locale="en-GB" class="download-mac" platform="osx" content="Download" />
+    <cell locale="en-GB" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="en-GB" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="fr">
+    <cell name="French" />
+    <cell lang="fr" native="Français" />
+    <cell version="" />
+    <cell locale="fr" class="download-win" platform="win64" content="Download" />
+    <cell locale="fr" class="download-win" platform="win" content="Download" />
+    <cell locale="fr" class="download-mac" platform="osx" content="Download" />
+    <cell locale="fr" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="fr" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="de">
+    <cell name="German" />
+    <cell lang="de" native="Deutsch" />
+    <cell version="" />
+    <cell locale="de" class="download-win" platform="win64" content="Download" />
+    <cell locale="de" class="download-win" platform="win" content="Download" />
+    <cell locale="de" class="download-mac" platform="osx" content="Download" />
+    <cell locale="de" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="de" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="hu">
+    <cell name="Hungarian" />
+    <cell lang="hu" native="Magyar" />
+    <cell version="" />
+    <cell locale="hu" class="download-win" platform="win64" content="Download" />
+    <cell locale="hu" class="download-win" platform="win" content="Download" />
+    <cell locale="hu" class="download-mac" platform="osx" content="Download" />
+    <cell locale="hu" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="hu" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="it">
+    <cell name="Italian" />
+    <cell lang="it" native="Italiano" />
+    <cell version="" />
+    <cell locale="it" class="download-win" platform="win64" content="Download" />
+    <cell locale="it" class="download-win" platform="win" content="Download" />
+    <cell locale="it" class="download-mac" platform="osx" content="Download" />
+    <cell locale="it" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="it" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="ja">
+    <cell name="Japanese" />
+    <cell lang="ja" native="日本語" />
+    <cell version="" />
+    <cell locale="ja" class="download-win" platform="win64" content="Download" />
+    <cell locale="ja" class="download-win" platform="win" content="Download" />
+    <cell locale="ja-JP-mac" class="download-mac" platform="osx" content="Download" />
+    <cell locale="ja" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="ja" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="lt">
+    <cell name="Lithuanian" />
+    <cell lang="lt" native="lietuvių kalba" />
+    <cell version="" />
+    <cell locale="lt" class="download-win" platform="win64" content="Download" />
+    <cell locale="lt" class="download-win" platform="win" content="Download" />
+    <cell locale="lt" class="download-mac" platform="osx" content="Download" />
+    <cell locale="lt" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="lt" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="nb-NO">
+    <cell name="Norwegian (Bokmål)" />
+    <cell lang="nb-NO" native="Norsk bokmål" />
+    <cell version="" />
+    <cell locale="nb-NO" class="download-win" platform="win64" content="Download" />
+    <cell locale="nb-NO" class="download-win" platform="win" content="Download" />
+    <cell locale="nb-NO" class="download-mac" platform="osx" content="Download" />
+    <cell locale="nb-NO" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="nb-NO" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="pl">
+    <cell name="Polish" />
+    <cell lang="pl" native="Polski" />
+    <cell version="" />
+    <cell locale="pl" class="download-win" platform="win64" content="Download" />
+    <cell locale="pl" class="download-win" platform="win" content="Download" />
+    <cell locale="pl" class="download-mac" platform="osx" content="Download" />
+    <cell locale="pl" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="pl" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="pt-PT">
+    <cell name="Portuguese (Portugal)" />
+    <cell lang="pt-PT" native="Português (Europeu)" />
+    <cell version="" />
+    <cell locale="pt-PT" class="download-win" platform="win64" content="Download" />
+    <cell locale="pt-PT" class="download-win" platform="win" content="Download" />
+    <cell locale="pt-PT" class="download-mac" platform="osx" content="Download" />
+    <cell locale="pt-PT" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="pt-PT" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="ru">
+    <cell name="Russian" />
+    <cell lang="ru" native="Русский" />
+    <cell version="" />
+    <cell locale="ru" class="download-win" platform="win64" content="Download" />
+    <cell locale="ru" class="download-win" platform="win" content="Download" />
+    <cell locale="ru" class="download-mac" platform="osx" content="Download" />
+    <cell locale="ru" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="ru" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="sk">
+    <cell name="Slovak" />
+    <cell lang="sk" native="slovenčina" />
+    <cell version="" />
+    <cell locale="sk" class="download-win" platform="win64" content="Download" />
+    <cell locale="sk" class="download-win" platform="win" content="Download" />
+    <cell locale="sk" class="download-mac" platform="osx" content="Download" />
+    <cell locale="sk" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="sk" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="es-AR">
+    <cell name="Spanish (Argentina)" />
+    <cell lang="es-AR" native="Español (de Argentina)" />
+    <cell version="" />
+    <cell locale="es-AR" class="download-win" platform="win64" content="Download" />
+    <cell locale="es-AR" class="download-win" platform="win" content="Download" />
+    <cell locale="es-AR" class="download-mac" platform="osx" content="Download" />
+    <cell locale="es-AR" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="es-AR" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="es-ES">
+    <cell name="Spanish (Spain)" />
+    <cell lang="es-ES" native="Español (de España)" />
+    <cell version="" />
+    <cell locale="es-ES" class="download-win" platform="win64" content="Download" />
+    <cell locale="es-ES" class="download-win" platform="win" content="Download" />
+    <cell locale="es-ES" class="download-mac" platform="osx" content="Download" />
+    <cell locale="es-ES" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="es-ES" class="download-linux" platform="linux" content="Download" />
+  </language>
+  <language id="sv-SE">
+    <cell name="Swedish" />
+    <cell lang="sv-SE" native="Svenska" />
+    <cell version="" />
+    <cell locale="sv-SE" class="download-win" platform="win64" content="Download" />
+    <cell locale="sv-SE" class="download-win" platform="win" content="Download" />
+    <cell locale="sv-SE" class="download-mac" platform="osx" content="Download" />
+    <cell locale="sv-SE" class="download-linux" platform="linux64" content="Download" />
+    <cell locale="sv-SE" class="download-linux" platform="linux" content="Download" />
+  </language>
+</downloads>
--- a/lib/release.tmpl
+++ b/lib/release.tmpl
@@ -72,8 +72,104 @@
 # releases.mozilla.org disabled, see bug 871120
 #     IF mirrorred AND NOT smversion.match('a|b');
 #       "http://releases.mozilla.org/pub/seamonkey/releases/$smversion/$path";
 #     ELSE;
        INCLUDE direct_download_file;
 #     END;
    END;
 %]
+
+[% BLOCK downloads_table;
+     # vars that need to be set by caller or document:
+     # languages: set of languages containing information for the table
+     # smversion: version number (2.0a1, 2.0.1, ...)
+     "  <table class=\"downloads\" cellpadding=\"0\" cellspacing=\"0\" summary=\"$languages.summary\">\n";
+     "    <thead>\n";
+     "      <tr>\n";
+     FOREACH header IN languages.header;
+       table_header = "<th";
+       IF header.colspan;
+         table_header = "$table_header colspan=\"$header.colspan\"";
+       END;
+       IF header.class;
+         table_header = "$table_header class=\"$header.class\">";
+       ELSE;
+         table_header = "$table_header>";
+       END;
+       IF header.spanclass;
+         table_header = "$table_header<span class=\"$header.spanclass\">$header.name";
+         IF header.second;
+           table_header = "$table_header<br>$header.second</span>";
+         ELSE;
+           table_header = "$table_header</span>";
+         END;
+       ELSE;
+         table_header = "$table_header$header.name";
+       END;
+       "        $table_header</th>\n";
+     END;
+     "      </tr>\n";
+     "    </thead>\n";
+     "    <tfoot>\n";
+     "      <tr>\n";
+     "        <td class=\"bottom-left\"></td>\n";
+     "        <td colspan=\"6\"></td>\n";
+     "        <td class=\"bottom-right\"></td>\n";
+     "      </tr>\n";
+     "    </tfoot>\n";
+     "    <tbody>\n";
+
+     class = "odd";
+     FOREACH language IN languages.language;
+       "      <tr id=\"$language.id\" class=\"$class\">\n";
+
+       IF class == "odd";
+         class = "even";
+       ELSE;
+         class = "odd";
+       END;
+
+       FOREACH cell IN language.cell;
+         IF cell.name;
+           "        <td>$cell.name</td>\n";
+         END;
+         IF cell.lang;
+           "        <td lang=\"$cell.lang\">$cell.native</td>\n";
+         END;
+         IF cell.version;
+           "        <td class=\"curVersion\">$smversion</td>\n";
+         END;
+         IF cell.locale;
+           "        <td><a href=\"";
+           INCLUDE download_build platform=cell.platform locale=cell.locale;
+           "\" class=\"$cell.class\" data-platform=\"$cell.platform\">$cell.content</a></td>\n";
+         END;
+       END;
+
+       "      </tr>\n";
+     END;
+
+     "    </tbody>\n";
+     "  </table>\n";
+
+   END;
+%]
+
+[% BLOCK downloads_fieldset;
+     # vars that need to be set by caller or document:
+     # dropdowns: set of dropdowns containing information for the selects
+
+     "  <fieldset>\n";
+     FOREACH dropdown IN dropdowns.dropdown;
+       "    <label for=\"$dropdown.id\" class=\"select-label\">$dropdown.label</label>\n";
+       "    <select id=\"$dropdown.id\" class=\"select-input\" aria-controls=\"$dropdown.aria\">\n";
+
+       FOREACH option IN dropdown.option;
+         "      <option value=\"$option.value\">$option.label</option>\n";
+       END;
+
+       "    </select>\n";
+     END;
+
+     "  </fieldset>\n";
+   END;
+%]
--- a/src/index-new.en.html
+++ b/src/index-new.en.html
@@ -43,277 +43,35 @@
       <ul>
         <li id="download_icon" class="download-win"><a href="[% INCLUDE download_build platform='win' locale='en-US' %]" id="download_link" data-title="Download [% releasename %] for %platform in %language" class="main" data-display-name="[% releasename %]" data-version="[% smversion %]" data-platform="win64" data-language="en-US">
         Download Now
       </a></li>
        <li id="download-other" class="other"><a href="[% download_more %]">Other
            Systems &amp; Languages</a></li>
       </ul>
     </div>
-    <div id="download_fieldset" style="display: none;">
-      <fieldset>
-        <label for="download_platform" class="select-label">Which operating system are you using?</label>
-        <select id="download_platform" class="select-input" aria-controls="download_info">
-          <option value="win64">Windows 64-bit</option>
-          <option value="win">Windows 32-bit</option>
-          <option value="osx">macOS</option>
-          <option value="linux64">Linux 64-bit</option>
-          <option value="linux">Linux 32-bit</option>
-        </select>
-        <label for="download_language" class="select-label">Would you like to select a different language?</label>
-        <select id="download_language" class="select-input" aria-controls="download_info">
-          <option value="zh-CN">Chinese (Simplified) — 中文 (简体)</option>
-          <option value="zh-TW">Chinese (Traditional) — 正體中文 (繁體)</option>
-          <option value="cs">Czech — Čeština</option>
-          <option value="nl">Dutch — Nederlands</option>
-          <option value="en-GB">English (British)</option>
-          <option value="en-US">English (US)</option>
-          <option value="fr">French — Français</option>
-          <option value="de">German — Deutsch</option>
-          <option value="hu">Hungarian — magyar</option>
-          <option value="it">Italian — Italiano</option>
-          <option value="ja">Japanese — 日本語</option>
-          <option value="lt">Lithuanian — Lietuvių</option>
-          <option value="nb-NO">Norwegian (Bokmål) — Norsk bokmål</option>
-          <option value="pl">Polish — Polski</option>
-          <option value="pt-PT">Portuguese (Portugal) — Português (Europeu)</option>
-          <option value="ru">Russian — Русский</option>
-          <option value="sk">Slovak — slovenčina</option>
-          <option value="es-AR">Spanish (Argentina) — Español (de Argentina)</option>
-          <option value="es-ES">Spanish (Spain) — Español (de España)</option>
-          <option value="sv-SE">Swedish — Svenska</option>
-        </select>
-      </fieldset>
-    </div>
   </div>
 </div>
+<div id="download_fieldset" style="display: none;">
+[% USE dropdowns = XML::Simple(
+       'downloads_fieldset.en.xml'
+       ForceArray = ['dropdown']
+       KeyAttr = ['' ]
+   )
+%]
+[% INCLUDE downloads_fieldset %]
+</div>
 <div style="display: none;">
-<table class="downloads" cellpadding="0" cellspacing="0"
-       summary="SeaMonkey builds available for download.">
-  <thead>
-    <tr>
-      <th colspan="2" class="top-left">Language</th>
-      <th>Version</th>
-      <th><span class="download-win">Windows<br>64-bit</span></th>
-      <th><span class="download-win">Windows<br>32-bit</span></th>
-      <th><span class="download-mac">macOS</span></th>
-      <th class="top-right"><span class="download-linux">Linux<br>64-bit</span></th>
-      <th class="top-right"><span class="download-linux">Linux<br>32-bit</span></th>
-    </tr>
-  </thead>
-  <tfoot>
-    <tr>
-      <td class="bottom-left"></td>
-      <td colspan="6"></td>
-      <td class="bottom-right"></td>
-    </tr>
-  </tfoot>
-  <tbody>
-    <tr id="zh-CN" class="odd">
-      <td>Chinese (Simplified)</td>
-      <td lang="zh-CN">中文 (简体)</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='zh-CN' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='zh-CN' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='zh-CN' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='zh-CN' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='zh-CN' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="zh-TW" class="even">
-      <td>Chinese (Traditional)</td>
-      <td lang="zh-TW">正體中文 (繁體)</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='zh-TW' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='zh-TW' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='zh-TW' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='zh-TW' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='zh-TW' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="cs" class="odd">
-      <td>Czech</td>
-      <td lang="cs">Čeština</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='cs' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='cs' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='cs' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='cs' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='cs' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="nl" class="even">
-      <td>Dutch</td>
-      <td lang="nl">Nederlands</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='nl' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='nl' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='nl' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='nl' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='nl' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="en-US" class="odd">
-      <td>English (US)</td>
-      <td lang="en-US">English (US)</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='en-US' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='en-US' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='en-US' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='en-US' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='en-US' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="en-GB" class="even">
-      <td>English (British)</td>
-      <td lang="en-GB">English (British)</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='en-GB' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='en-GB' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='en-GB' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='en-GB' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='en-GB' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="fr" class="odd">
-      <td>French</td>
-      <td lang="fr">Français</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='fr' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='fr' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='fr' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='fr' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='fr' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="de" class="even">
-      <td>German</td>
-      <td lang="de">Deutsch</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='de' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='de' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='de' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='de' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='de' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="hu" class="odd">
-     <td>Hungarian</td>
-     <td lang="hu">Magyar</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='hu' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='hu' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='hu' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='hu' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='hu' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="it" class="even">
-      <td>Italian</td>
-      <td lang="it">Italiano</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='it' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='it' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='it' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='it' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='it' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="ja" class="odd">
-      <td>Japanese</td>
-      <td lang="ja">日本語</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='ja' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='ja' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='ja-JP-mac' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='ja' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='ja' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="lt" class="even">
-      <td>Lithuanian</td>
-      <td lang="lt">lietuvių kalba</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='lt' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='lt' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='lt' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='lt' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='lt' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="nb-NO" class="odd">
-      <td>Norwegian (Bokmål)</td>
-      <td lang="nb-NO">Norsk bokmål</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='nb-NO' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='nb-NO' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='nb-NO' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='nb-NO' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='nb-NO' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="pl" class="even">
-      <td>Polish</td>
-      <td lang="pl">Polski</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='pl' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='pl' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='pl' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='pl' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='pl' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="pt-PT" class="odd">
-      <td>Portuguese (Portugal)</td>
-      <td lang="pt-PT">Português (Europeu)</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='pt-PT' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='pt-PT' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='pt-PT' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='pt-PT' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='pt-PT' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="ru" class="even">
-      <td>Russian</td>
-      <td lang="ru">Русский</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='ru' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='ru' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='ru' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='ru' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='ru' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="sk" class="odd">
-      <td>Slovak</td>
-      <td lang="sk">slovenčina</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='sk' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='sk' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='sk' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='sk' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='sk' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="es-AR" class="even">
-      <td>Spanish (Argentina)</td>
-      <td lang="es-AR">Español (de Argentina)</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='es-AR' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='es-AR' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='es-AR' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='es-AR' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='es-AR' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="es-ES" class="odd">
-      <td>Spanish (Spain)</td>
-      <td lang="es-ES">Español (de España)</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='es-ES' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='es-ES' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='es-ES' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='es-ES' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='es-ES' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="sv-SE" class="even">
-      <td>Swedish</td>
-      <td lang="sv-SE">Svenska</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='sv-SE' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='sv-SE' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='sv-SE' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='sv-SE' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='sv-SE' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-  </tbody>
-</table>
+[% USE languages = XML::Simple(
+       'downloads_table.en.xml'
+       ForceArray = ['language']
+       KeyAttr = ['' ]
+   )
+%]
+[% INCLUDE downloads_table %]
 </div>
 <script type="text/javascript">
   <!--
   init();
   // -->
 </script>
 
 <h1>The SeaMonkey<sup>&reg;</sup> Project</h1>
--- a/src/releases/index-new.en.html
+++ b/src/releases/index-new.en.html
@@ -48,53 +48,23 @@
         <b class="download-content" id="info_language"></b>
       </p>
       <ul><li id="download_icon" class="download-win"><a href="[% INCLUDE download_build platform='win' locale='en-US' %]" id="download_link" data-title="Download [% releasename %] for %platform in %language" class="main" data-display-name="[% releasename %]" data-version="[% smversion %]" data-platform="win64" data-language="en-US">
         Download Now
       </a></li></ul>
     </form>
   </div>
   <div id="download_fieldset" class="download-div">
-    <fieldset>
-      <p class="select-platform">
-        <label for="download_platform" class="select-label">Which operating system are you using?</label>
-        <select id="download_platform" class="select-input" aria-controls="download_info">
-          <option value="win64">Windows 64-bit</option>
-          <option value="win">Windows 32-bit</option>
-          <option value="osx">macOS</option>
-          <option value="linux64">Linux 64-bit</option>
-          <option value="linux">Linux 32-bit</option>
-        </select>
-      </p>
-      <p class="select-language">
-        <label for="download_language" class="select-label">Would you like to select a different language?</label>
-        <select id="download_language" class="select-input" aria-controls="download_info">
-          <option value="zh-CN">Chinese (Simplified) — 中文 (简体)</option>
-          <option value="zh-TW">Chinese (Traditional) — 正體中文 (繁體)</option>
-          <option value="cs">Czech — Čeština</option>
-          <option value="nl">Dutch — Nederlands</option>
-          <option value="en-GB">English (British)</option>
-          <option value="en-US">English (US)</option>
-          <option value="fr">French — Français</option>
-          <option value="de">German — Deutsch</option>
-          <option value="hu">Hungarian — magyar</option>
-          <option value="it">Italian — Italiano</option>
-          <option value="ja">Japanese — 日本語</option>
-          <option value="lt">Lithuanian — Lietuvių</option>
-          <option value="nb-NO">Norwegian (Bokmål) — Norsk bokmål</option>
-          <option value="pl">Polish — Polski</option>
-          <option value="pt-PT">Portuguese (Portugal) — Português (Europeu)</option>
-          <option value="ru">Russian — Русский</option>
-          <option value="sk">Slovak — slovenčina</option>
-          <option value="es-AR">Spanish (Argentina) — Español (de Argentina)</option>
-          <option value="es-ES">Spanish (Spain) — Español (de España)</option>
-          <option value="sv-SE">Swedish — Svenska</option>
-        </select>
-      </p>
-    </fieldset>
+[% USE dropdowns = XML::Simple(
+       'downloads_fieldset.en.xml'
+       ForceArray = ['dropdown']
+       KeyAttr = ['' ]
+   )
+%]
+[% INCLUDE downloads_fieldset %]
   </div>
 </div>
 
 <ul class="toc">
 <li><a href="#[% smversion %]">SeaMonkey [% prettyversion %]</a>
   <ul>
   <li><a href="#official">Official Builds</a></li>
   <li><a href="#source">Source Code</a></li>
@@ -129,239 +99,23 @@
 
 <h3 id="official">Official builds</h3>
 <div class="section">
 <p class="note"><a href="[% INCLUDE download_file path='MD5SUMS' %]">MD5
   sums</a> and <a href="[% INCLUDE download_file path='SHA1SUMS' %]">SHA1
   sums</a> are available for official packages and source tarballs.
 </p>
 
-<table class="downloads" cellpadding="0" cellspacing="0"
-       summary="SeaMonkey builds available for download.">
-  <thead>
-    <tr>
-      <th colspan="2" class="top-left">Language</th>
-      <th>Version</th>
-      <th><span class="download-win">Windows<br>64-bit</span></th>
-      <th><span class="download-win">Windows<br>32-bit</span></th>
-      <th><span class="download-mac">macOS</span></th>
-      <th class="top-right"><span class="download-linux">Linux<br>64-bit</span></th>
-      <th class="top-right"><span class="download-linux">Linux<br>32-bit</span></th>
-    </tr>
-  </thead>
-  <tfoot>
-    <tr>
-      <td class="bottom-left"></td>
-      <td colspan="6"></td>
-      <td class="bottom-right"></td>
-    </tr>
-  </tfoot>
-  <tbody>
-    <tr id="zh-CN" class="odd">
-      <td>Chinese (Simplified)</td>
-      <td lang="zh-CN">中文 (简体)</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='zh-CN' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='zh-CN' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='zh-CN' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='zh-CN' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='zh-CN' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="zh-TW" class="even">
-      <td>Chinese (Traditional)</td>
-      <td lang="zh-TW">正體中文 (繁體)</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='zh-TW' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='zh-TW' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='zh-TW' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='zh-TW' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='zh-TW' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="cs" class="odd">
-      <td>Czech</td>
-      <td lang="cs">Čeština</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='cs' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='cs' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='cs' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='cs' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='cs' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="nl" class="even">
-      <td>Dutch</td>
-      <td lang="nl">Nederlands</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='nl' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='nl' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='nl' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='nl' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='nl' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="en-US" class="odd">
-      <td>English (US)</td>
-      <td lang="en-US">English (US)</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='en-US' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='en-US' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='en-US' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='en-US' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='en-US' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="en-GB" class="even">
-      <td>English (British)</td>
-      <td lang="en-GB">English (British)</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='en-GB' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='en-GB' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='en-GB' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='en-GB' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='en-GB' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="fr" class="odd">
-      <td>French</td>
-      <td lang="fr">Français</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='fr' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='fr' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='fr' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='fr' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='fr' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="de" class="even">
-      <td>German</td>
-      <td lang="de">Deutsch</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='de' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='de' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='de' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='de' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='de' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="hu" class="odd">
-     <td>Hungarian</td>
-     <td lang="hu">Magyar</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='hu' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='hu' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='hu' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='hu' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='hu' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="it" class="even">
-      <td>Italian</td>
-      <td lang="it">Italiano</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='it' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='it' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='it' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='it' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='it' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="ja" class="odd">
-      <td>Japanese</td>
-      <td lang="ja">日本語</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='ja' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='ja' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='ja-JP-mac' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='ja' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='ja' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="lt" class="even">
-      <td>Lithuanian</td>
-      <td lang="lt">lietuvių kalba</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='lt' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='lt' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='lt' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='lt' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='lt' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="nb-NO" class="odd">
-      <td>Norwegian (Bokmål)</td>
-      <td lang="nb-NO">Norsk bokmål</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='nb-NO' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='nb-NO' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='nb-NO' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='nb-NO' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='nb-NO' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="pl" class="even">
-      <td>Polish</td>
-      <td lang="pl">Polski</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='pl' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='pl' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='pl' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='pl' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='pl' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="pt-PT" class="odd">
-      <td>Portuguese (Portugal)</td>
-      <td lang="pt-PT">Português (Europeu)</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='pt-PT' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='pt-PT' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='pt-PT' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='pt-PT' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='pt-PT' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="ru" class="even">
-      <td>Russian</td>
-      <td lang="ru">Русский</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='ru' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='ru' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='ru' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='ru' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='ru' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="sk" class="odd">
-      <td>Slovak</td>
-      <td lang="sk">slovenčina</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='sk' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='sk' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='sk' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='sk' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='sk' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="es-AR" class="even">
-      <td>Spanish (Argentina)</td>
-      <td lang="es-AR">Español (de Argentina)</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='es-AR' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='es-AR' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='es-AR' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='es-AR' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='es-AR' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="es-ES" class="odd">
-      <td>Spanish (Spain)</td>
-      <td lang="es-ES">Español (de España)</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='es-ES' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='es-ES' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='es-ES' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='es-ES' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='es-ES' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-    <tr id="sv-SE" class="even">
-      <td>Swedish</td>
-      <td lang="sv-SE">Svenska</td>
-      <td class="curVersion">[% smversion %]</td>
-      <td><a href="[% INCLUDE download_build platform='win64' locale='sv-SE' %]" class="download-win" data-platform="win64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='win' locale='sv-SE' %]" class="download-win" data-platform="win">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='osx' locale='sv-SE' %]" class="download-mac" data-platform="osx">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux64' locale='sv-SE' %]" class="download-linux" data-platform="linux64">Download</a></td>
-      <td><a href="[% INCLUDE download_build platform='linux' locale='sv-SE' %]" class="download-linux" data-platform="linux">Download</a></td>
-    </tr>
-  </tbody>
-</table>
+[% USE languages = XML::Simple(
+       'downloads_table.en.xml'
+       ForceArray = ['language']
+       KeyAttr = ['' ]
+   )
+%]
+[% INCLUDE downloads_table %]
 </div>
 
 <script type="text/javascript">
   <!--
   if (isSupportedOS(navigator.userAgent)) {
     init();
   } else {
     displayElement("download", false);