Make hardcoded strings translatable and a few minor changes

This commit is contained in:
2022-12-27 20:20:39 +01:00
parent 560cd9c72c
commit aa5264cd3b
16 changed files with 753 additions and 582 deletions

View File

@ -8,7 +8,7 @@ echo "<title>"._('Online-Test')."</title>";
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
echo '<meta name="author" content="Daniel Winzen">';
echo '<meta name="viewport" content="width=device-width, initial-scale=1">';
echo '<meta name="description" content="Test whether a Tor hidden service onion is online or offline">';
echo '<meta name="description" content="'._('Test whether a Tor hidden service onion is online or offline').'">';
echo '<link rel="canonical" href="' . CANONICAL_URL . $_SERVER['SCRIPT_NAME'] . '">';
echo '<link rel="alternate" href="' . CANONICAL_URL . $_SERVER['SCRIPT_NAME'] . '" hreflang="x-default">';
alt_links();
@ -16,7 +16,7 @@ echo '<style>'.$style.'</style>';
echo '</head><body><main>';
echo "<h1>"._('Online-Test')."</h1>";
print_langs();
echo "<p>"._('Here an onion address can be tested, for whether it is online or not.')."</p>";
echo "<p>"._('Test whether a Tor hidden service onion is online or offline')."</p>";
echo "<form action=\"$_SERVER[SCRIPT_NAME]\" method=\"POST\">";
echo "<input type=\"hidden\" name=\"lang\" value=\"$language\">";
echo "<p><label for=\"addr\">"._('Onion link:')."</label><br><input id=\"addr\" name=\"addr\" size=\"30\" value=\"";