campaign: fix tracking languages, improve diffability by using LANG
authorJustus Winter <justus@g10code.com>
Mon, 22 May 2017 15:13:38 +0000 (17:13 +0200)
committerJustus Winter <justus@g10code.com>
Mon, 22 May 2017 15:13:38 +0000 (17:13 +0200)
19 files changed:
web/donate/checkout-bc.de.org
web/donate/checkout-bc.fr.org
web/donate/checkout-bc.ja.org
web/donate/checkout-bc.org
web/donate/checkout-cc.de.org
web/donate/checkout-cc.fr.org
web/donate/checkout-cc.ja.org
web/donate/checkout-cc.org
web/donate/checkout-pp.de.org
web/donate/checkout-pp.fr.org
web/donate/checkout-pp.ja.org
web/donate/checkout-pp.org
web/donate/checkout-se.de.org
web/donate/checkout-se.fr.org
web/donate/checkout-se.org
web/donate/donate.de.org
web/donate/donate.fr.org
web/donate/donate.ja.org
web/donate/donate.org

index b27e14b..0f15178 100644 (file)
@@ -13,7 +13,7 @@
   <script defer src="/share/3rdparty/bootstrap/bootstrap.min.js"></script>
 
 </head>
-  <body lang="de">
+  <body lang="<!--LANG-->">
     <!-- Fixed navbar -->
     <nav class="navbar navbar-default navbar-fixed-top">
       <div class="container">
index 9d1d3cf..1c70513 100644 (file)
@@ -13,7 +13,7 @@
   <script defer src="/share/3rdparty/bootstrap/bootstrap.min.js"></script>
 
 </head>
-  <body lang="fr">
+  <body lang="<!--LANG-->">
     <!-- Fixed navbar -->
     <nav class="navbar navbar-default navbar-fixed-top">
       <div class="container">
index ddca91c..082fc33 100644 (file)
@@ -13,7 +13,7 @@
   <script defer src="/share/3rdparty/bootstrap/bootstrap.min.js"></script>
 
 </head>
-  <body lang="ja">
+  <body lang="<!--LANG-->">
     <!-- Fixed navbar -->
     <nav class="navbar navbar-default navbar-fixed-top">
       <div class="container">
index cb0d305..bc45ecf 100644 (file)
@@ -13,7 +13,7 @@
   <script defer src="/share/3rdparty/bootstrap/bootstrap.min.js"></script>
 
 </head>
-  <body lang="en">
+  <body lang="<!--LANG-->">
     <!-- Fixed navbar -->
     <nav class="navbar navbar-default navbar-fixed-top">
       <div class="container">
index 42c6bc3..c19493e 100644 (file)
@@ -13,7 +13,7 @@
   <script defer src="/share/3rdparty/bootstrap/bootstrap.min.js"></script>
 
 </head>
-  <body lang="de">
+  <body lang="<!--LANG-->">
 <style>
 .control-label {
   padding-top: 0 !important;
index a30a1f5..43d2db0 100644 (file)
@@ -13,7 +13,7 @@
   <script defer src="/share/3rdparty/bootstrap/bootstrap.min.js"></script>
 
 </head>
-  <body lang="fr">
+  <body lang="<!--LANG-->">
 <style>
 .control-label {
   padding-top: 0 !important;
index 93774ca..e47cf5c 100644 (file)
@@ -13,7 +13,7 @@
   <script defer src="/share/3rdparty/bootstrap/bootstrap.min.js"></script>
 
 </head>
-  <body lang="ja">
+  <body lang="<!--LANG-->">
 <style>
 .control-label {
   padding-top: 0 !important;
index c593e68..ab0f848 100644 (file)
@@ -13,7 +13,7 @@
   <script defer src="/share/3rdparty/bootstrap/bootstrap.min.js"></script>
 
 </head>
-  <body lang="en">
+  <body lang="<!--LANG-->">
 <style>
 .control-label {
   padding-top: 0 !important;
index e81e5bb..7f6ce9c 100644 (file)
@@ -13,7 +13,7 @@
   <script defer src="/share/3rdparty/bootstrap/bootstrap.min.js"></script>
 
 </head>
-  <body lang="de">
+  <body lang="<!--LANG-->">
 <style>
 .control-label {
   padding-top: 0 !important;
index 69da215..eac368c 100644 (file)
@@ -13,7 +13,7 @@
   <script defer src="/share/3rdparty/bootstrap/bootstrap.min.js"></script>
 
 </head>
-  <body lang="fr">
+  <body lang="<!--LANG-->">
 <style>
 .control-label {
   padding-top: 0 !important;
index 1ab7760..9dea4f1 100644 (file)
@@ -13,7 +13,7 @@
   <script defer src="/share/3rdparty/bootstrap/bootstrap.min.js"></script>
 
 </head>
-  <body lang="ja">
+  <body lang="<!--LANG-->">
 <style>
 .control-label {
   padding-top: 0 !important;
index 4a4f87a..54357b4 100644 (file)
@@ -13,7 +13,7 @@
   <script defer src="/share/3rdparty/bootstrap/bootstrap.min.js"></script>
 
 </head>
-  <body lang="en">
+  <body lang="<!--LANG-->">
 <style>
 .control-label {
   padding-top: 0 !important;
index 908ca07..2748212 100644 (file)
@@ -13,7 +13,7 @@
   <script defer src="/share/3rdparty/bootstrap/bootstrap.min.js"></script>
 
 </head>
-  <body lang="de">
+  <body lang="<!--LANG-->">
     <style>
 .control-label {
   padding-top: 0 !important;
index ae6cec4..1f05e36 100644 (file)
@@ -13,7 +13,7 @@
   <script defer src="/share/3rdparty/bootstrap/bootstrap.min.js"></script>
 
 </head>
-  <body lang="fr">
+  <body lang="<!--LANG-->">
     <style>
 .control-label {
   padding-top: 0 !important;
index e037827..56f079a 100644 (file)
@@ -13,7 +13,7 @@
   <script defer src="/share/3rdparty/bootstrap/bootstrap.min.js"></script>
 
 </head>
-  <body lang="en">
+  <body lang="<!--LANG-->">
     <style>
 .control-label {
   padding-top: 0 !important;
index e4a4fc5..63b5e24 100644 (file)
@@ -21,7 +21,7 @@
   <script defer src="/share/campaign/campaign.js"></script>
 
 </head>
-<body lang="de">
+<body lang="<!--LANG-->">
   <!-- 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.de.html">Zurück</a></li>
+          <li><a href="/donate/index.<!--LANG-->.html">Zurück</a></li>
         </ul>
       </div><!--/.nav-collapse -->
     </div>
@@ -66,8 +66,8 @@
 
     <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="de">
+      <input type="hidden" name="mode" value="main" />
+      <input type="hidden" name="lang" value="<!--LANG-->" />
 
       <!-- 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=de"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=500&s_cur=eur&lang=<!--LANG-->"
                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=de"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=200&s_cur=eur&lang=<!--LANG-->"
                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=de"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=100&s_cur=eur&lang=<!--LANG-->"
                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=de"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=50&s_cur=eur&lang=<!--LANG-->"
                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=de"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=20&s_cur=eur&lang=<!--LANG-->"
                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=de"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=10&s_cur=eur&lang=<!--LANG-->"
                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=de"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=5&s_cur=eur&lang=<!--LANG-->"
                class="btn btn-default amount-btn-5">5&#x202f;€</a>
           </div>
           <span class="help-block">
index d2b40d9..31709d3 100644 (file)
@@ -21,7 +21,7 @@
   <script defer src="/share/campaign/campaign.js"></script>
 
 </head>
-<body lang="fr">
+<body lang="<!--LANG-->">
   <!-- 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">Précédent</a></li>
+          <li><a href="/donate/index.<!--LANG-->.html">Précédent</a></li>
         </ul>
       </div><!--/.nav-collapse -->
     </div>
@@ -71,6 +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-->" />
 
       <!-- 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"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=500&s_cur=eur&lang=<!--LANG-->"
                class="btn btn-default amount-btn-500">500&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=200&s_cur=eur"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=200&s_cur=eur&lang=<!--LANG-->"
                class="btn btn-default amount-btn-200">200&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=100&s_cur=eur"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=100&s_cur=eur&lang=<!--LANG-->"
                class="btn btn-default amount-btn-100">100&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=50&s_cur=eur"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=50&s_cur=eur&lang=<!--LANG-->"
                class="btn btn-default amount-btn-50">50&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=20&s_cur=eur"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=20&s_cur=eur&lang=<!--LANG-->"
                class="btn btn-default amount-btn-20">20&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=10&s_cur=eur"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=10&s_cur=eur&lang=<!--LANG-->"
                class="btn btn-default amount-btn-10">10&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=5&s_cur=eur"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=5&s_cur=eur&lang=<!--LANG-->"
                class="btn btn-default amount-btn-5">5&#x202f;€</a>
           </div>
           <span class="help-block">
index b4566c1..5cced39 100644 (file)
@@ -21,7 +21,7 @@
   <script defer src="/share/campaign/campaign.js"></script>
 
 </head>
-<body lang="ja">
+<body lang="<!--LANG-->">
   <!-- 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">戻る</a></li>
+          <li><a href="/donate/index.<!--LANG-->.html">戻る</a></li>
         </ul>
       </div><!--/.nav-collapse -->
     </div>
@@ -66,6 +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-->" />
 
       <!-- 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"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=500&s_cur=eur&lang=<!--LANG-->"
                class="btn btn-default amount-btn-500">500&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=200&s_cur=eur"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=200&s_cur=eur&lang=<!--LANG-->"
                class="btn btn-default amount-btn-200">200&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=100&s_cur=eur"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=100&s_cur=eur&lang=<!--LANG-->"
                class="btn btn-default amount-btn-100">100&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=50&s_cur=eur"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=50&s_cur=eur&lang=<!--LANG-->"
                class="btn btn-default amount-btn-50">50&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=20&s_cur=eur"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=20&s_cur=eur&lang=<!--LANG-->"
                class="btn btn-default amount-btn-20">20&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=10&s_cur=eur"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=10&s_cur=eur&lang=<!--LANG-->"
                class="btn btn-default amount-btn-10">10&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=5&s_cur=eur"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=5&s_cur=eur&lang=<!--LANG-->"
                class="btn btn-default amount-btn-5">5&#x202f;€</a>
           </div>
           <span class="help-block">
index cb0ade5..8b647f4 100644 (file)
@@ -21,7 +21,7 @@
   <script defer src="/share/campaign/campaign.js"></script>
 
 </head>
-<body lang="en">
+<body lang="<!--LANG-->">
   <!-- Fixed navbar -->
   <nav class="navbar navbar-default navbar-fixed-top">
     <div class="container">