campaign: Fix language form elements.
authorWerner Koch <wk@gnupg.org>
Tue, 23 May 2017 07:29:27 +0000 (09:29 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 23 May 2017 07:29:27 +0000 (09:29 +0200)
We can't use <!--LANG--> in attributes because
a) these are invalid attribute values
b) procdonate won't substitute tem
c) Calling donate.LL.html directly won't have them substituted
   anyway.

web/donate/donate.de.org
web/donate/donate.fr.org
web/donate/donate.ja.org

index 63b5e24..b24439c 100644 (file)
@@ -21,7 +21,7 @@
   <script defer src="/share/campaign/campaign.js"></script>
 
 </head>
-<body lang="<!--LANG-->">
+<body lang="de">
   <!-- Fixed navbar -->
   <nav class="navbar navbar-default navbar-fixed-top">
     <div class="container">
@@ -41,7 +41,7 @@
 
       <div id="navbar" class="navbar-collapse collapse">
         <ul class="nav navbar-nav">
-          <li><a href="/donate/index.<!--LANG-->.html">Zurück</a></li>
+          <li><a href="/donate/index.de.html">Zurück</a></li>
         </ul>
       </div><!--/.nav-collapse -->
     </div>
@@ -67,7 +67,7 @@
     <form class="form-horizontal" role="form"
           action="/cgi-bin/procdonate.cgi" method="POST">
       <input type="hidden" name="mode" value="main" />
-      <input type="hidden" name="lang" value="<!--LANG-->" />
+      <input type="hidden" name="lang" value="de" />
 
       <!-- Amount and currency input field -->
       <div class="form-group">
         <div class="col-sm-offset-2 col-sm-6">
           <div class="btn-group btn-group-xs" role="group"
                aria-label="vorgeschlagene Beträge">
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=500&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=500&s_cur=eur&lang=de"
                class="btn btn-default amount-btn-500">500&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=200&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=200&s_cur=eur&lang=de"
                class="btn btn-default amount-btn-200">200&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=100&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=100&s_cur=eur&lang=de"
                class="btn btn-default amount-btn-100">100&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=50&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=50&s_cur=eur&lang=de"
                class="btn btn-default amount-btn-50">50&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=20&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=20&s_cur=eur&lang=de"
                class="btn btn-default amount-btn-20">20&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=10&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=10&s_cur=eur&lang=de"
                class="btn btn-default amount-btn-10">10&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=5&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=5&s_cur=eur&lang=de"
                class="btn btn-default amount-btn-5">5&#x202f;€</a>
           </div>
           <span class="help-block">
index 31709d3..6030186 100644 (file)
@@ -21,7 +21,7 @@
   <script defer src="/share/campaign/campaign.js"></script>
 
 </head>
-<body lang="<!--LANG-->">
+<body lang="fr">
   <!-- Fixed navbar -->
   <nav class="navbar navbar-default navbar-fixed-top">
     <div class="container">
@@ -41,7 +41,7 @@
 
       <div id="navbar" class="navbar-collapse collapse">
         <ul class="nav navbar-nav">
-          <li><a href="/donate/index.<!--LANG-->.html">Précédent</a></li>
+          <li><a href="/donate/index.fr.html">Précédent</a></li>
         </ul>
       </div><!--/.nav-collapse -->
     </div>
@@ -71,7 +71,7 @@
     <form class="form-horizontal" role="form"
           action="/cgi-bin/procdonate.cgi" method="POST">
       <input type="hidden" name="mode" value="main" />
-      <input type="hidden" name="lang" value="<!--LANG-->" />
+      <input type="hidden" name="lang" value="fr" />
 
       <!-- Amount and currency input field -->
       <div class="form-group">
         <div class="col-sm-offset-2 col-sm-6">
           <div class="btn-group btn-group-xs" role="group"
                aria-label="suggested amounts">
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=500&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=500&s_cur=eur&lang=fr"
                class="btn btn-default amount-btn-500">500&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=200&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=200&s_cur=eur&lang=fr"
                class="btn btn-default amount-btn-200">200&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=100&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=100&s_cur=eur&lang=fr"
                class="btn btn-default amount-btn-100">100&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=50&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=50&s_cur=eur&lang=fr"
                class="btn btn-default amount-btn-50">50&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=20&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=20&s_cur=eur&lang=fr"
                class="btn btn-default amount-btn-20">20&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=10&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=10&s_cur=eur&lang=fr"
                class="btn btn-default amount-btn-10">10&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=5&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=5&s_cur=eur&lang=fr"
                class="btn btn-default amount-btn-5">5&#x202f;€</a>
           </div>
           <span class="help-block">
index f01e2b0..54f1384 100644 (file)
@@ -21,7 +21,7 @@
   <script defer src="/share/campaign/campaign.js"></script>
 
 </head>
-<body lang="<!--LANG-->">
+<body lang="ja">
   <!-- Fixed navbar -->
   <nav class="navbar navbar-default navbar-fixed-top">
     <div class="container">
@@ -41,7 +41,7 @@
 
       <div id="navbar" class="navbar-collapse collapse">
         <ul class="nav navbar-nav">
-          <li><a href="/donate/index.<!--LANG-->.html">戻る</a></li>
+          <li><a href="/donate/index.ja.html">戻る</a></li>
         </ul>
       </div><!--/.nav-collapse -->
     </div>
@@ -66,7 +66,7 @@
     <form class="form-horizontal" role="form"
           action="/cgi-bin/procdonate.cgi" method="POST">
       <input type="hidden" name="mode" value="main" />
-      <input type="hidden" name="lang" value="<!--LANG-->" />
+      <input type="hidden" name="lang" value="ja" />
 
       <!-- Amount and currency input field -->
       <div class="form-group">
         <div class="col-sm-offset-2 col-sm-6">
           <div class="btn-group btn-group-xs" role="group"
                aria-label="suggested amounts">
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=500&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=500&s_cur=eur&lang=ja"
                class="btn btn-default amount-btn-500">500&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=200&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=200&s_cur=eur&lang=ja"
                class="btn btn-default amount-btn-200">200&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=100&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=100&s_cur=eur&lang=ja"
                class="btn btn-default amount-btn-100">100&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=50&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=50&s_cur=eur&lang=ja"
                class="btn btn-default amount-btn-50">50&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=20&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=20&s_cur=eur&lang=ja"
                class="btn btn-default amount-btn-20">20&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=10&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=10&s_cur=eur&lang=ja"
                class="btn btn-default amount-btn-10">10&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=5&s_cur=eur&lang=<!--LANG-->"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=5&s_cur=eur&lang=ja"
                class="btn btn-default amount-btn-5">5&#x202f;€</a>
           </div>
           <span class="help-block">