display thank-you page in correct language
svn path=/branches/test/; revision=24244
This commit is contained in:
parent
61d9de8887
commit
647672e997
|
@ -15,6 +15,7 @@ my $email = $query->param("email");
|
||||||
my $address = $query->param("address");
|
my $address = $query->param("address");
|
||||||
my $specifics = $query->param("specifics");
|
my $specifics = $query->param("specifics");
|
||||||
my $comment = $query->param("comment");
|
my $comment = $query->param("comment");
|
||||||
|
my $lang = $query->param("language");
|
||||||
|
|
||||||
if (
|
if (
|
||||||
# validate input (more or less)
|
# validate input (more or less)
|
||||||
|
@ -46,15 +47,17 @@ $specifics
|
||||||
Comments:
|
Comments:
|
||||||
$comments
|
$comments
|
||||||
|
|
||||||
|
Preferred language was: $lang
|
||||||
|
|
||||||
KTHXBYE
|
KTHXBYE
|
||||||
Your friendly automatic web order program.
|
Your friendly automatic web order program.
|
||||||
";
|
";
|
||||||
close MAIL;
|
close MAIL;
|
||||||
|
|
||||||
print "Location: /order/orderpromo-thanks.en.html\n\n";
|
print "Location: /order/orderpromo-thanks.$lang.html\n\n";
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
#something was wrong with the input
|
#something was wrong with the input
|
||||||
print "Location: /order/orderpromo-error.en.html\n\n";
|
print "Location: /order/orderpromo-error.$lang.html\n\n";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Free Software Foundation Europe - Ooops, there is something wrong with your input!</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h1>Ooops, there is something wrong with your input!</h1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Please make sure you entered your name, email, address, and the order itself. Comments are optional.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
<timestamp>$Date$ $Author$</timestamp>
|
||||||
|
</html>
|
||||||
|
<!--
|
||||||
|
Local Variables: ***
|
||||||
|
mode: xml ***
|
||||||
|
End: ***
|
||||||
|
-->
|
|
@ -0,0 +1,23 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Free Software Foundation Europe - Thank you for your order!</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h1>Thank you for your order!</h1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Our team will see to it that the promotional material is sent to you. You may receive further questions and querys in this matter via mail.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
<timestamp>$Date$ $Author$</timestamp>
|
||||||
|
</html>
|
||||||
|
<!--
|
||||||
|
Local Variables: ***
|
||||||
|
mode: xml ***
|
||||||
|
End: ***
|
||||||
|
-->
|
|
@ -33,6 +33,8 @@ in general we just send packages up to 1kg. If you need more, please ask.</p>
|
||||||
|
|
||||||
|
|
||||||
<form class="highlight" id="orderpromo" method="post" action="/cgi-bin/orderpromo.pl" accept-charset="utf-8">
|
<form class="highlight" id="orderpromo" method="post" action="/cgi-bin/orderpromo.pl" accept-charset="utf-8">
|
||||||
|
<!-- Translators: please set the value for the language to your language code -->
|
||||||
|
<input type="hidden" name="language" value="en" />
|
||||||
<h3>Please send promotional material to:</h3>
|
<h3>Please send promotional material to:</h3>
|
||||||
<span class="formlabel">First name, Last name:</span>
|
<span class="formlabel">First name, Last name:</span>
|
||||||
<input type="text" name="firstname" placeholder="First Name" size="20" />
|
<input type="text" name="firstname" placeholder="First Name" size="20" />
|
||||||
|
@ -55,6 +57,7 @@ Some stickers:
|
||||||
<span class="formlabel">Any comment:</span>
|
<span class="formlabel">Any comment:</span>
|
||||||
<textarea name="comment" rows="4" cols="40"></textarea><br/>
|
<textarea name="comment" rows="4" cols="40"></textarea><br/>
|
||||||
<input type="submit" name="url" value="I am a spam robot" style="display:none;" />
|
<input type="submit" name="url" value="I am a spam robot" style="display:none;" />
|
||||||
|
<!-- Translators: please translate the label of this button (the value field) -->
|
||||||
<input type="submit" name="dothis" value="Order now!"/>
|
<input type="submit" name="dothis" value="Order now!"/>
|
||||||
<input type="submit" name="url" value="I am a spam robot" style="display:none;" /><br/>
|
<input type="submit" name="url" value="I am a spam robot" style="display:none;" /><br/>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue