German translation
This commit is contained in:
parent
65e5b02f47
commit
67c06db236
@ -2,7 +2,6 @@
|
||||
|
||||
## Installation
|
||||
|
||||
Edit `config.php` to your needs. Afterwards, run `install.php`. Make sure to
|
||||
delete this file after installation.
|
||||
|
||||
Don't forget to make the `tmp` directory writable for the webserver user.
|
||||
Füge in die `config.php` deine Daten ein.
|
||||
Rufe dann die `install.php` in einem Browser auf.
|
||||
Lösche nach der Installation die `install.php`.
|
@ -9,7 +9,7 @@ $MYSQL_USERNAME = "";
|
||||
$MYSQL_PASSWORD = "";
|
||||
|
||||
// Please comment or delete the next line.
|
||||
die('Please edit config.php!');
|
||||
die('Bitte config.php bearbeiten!');
|
||||
|
||||
// Don't touch anything below here.
|
||||
|
||||
|
@ -41,7 +41,7 @@ if (isset($_POST['words'])) {
|
||||
$word2 = check_word("word2");
|
||||
$word3 = check_word("word3");
|
||||
if ($word1 === false || $word2 === false || $word3 === false) {
|
||||
$_SESSION['flash'] = "Not all words entered are valid.";
|
||||
$_SESSION['flash'] = "Nicht alle eingegebenen Wörter sind gültig.";
|
||||
header("Location: index.php");
|
||||
exit();
|
||||
}
|
||||
|
36
install.php
36
install.php
@ -54,23 +54,23 @@ SQL
|
||||
;
|
||||
|
||||
if (!$sql->multi_query($sql_str)) { ?>
|
||||
<h2>An error occurred</h2>
|
||||
<h2>Ein Fehler ist aufgetreten</h2>
|
||||
<pre><?php echo $sql->error; ?></pre>
|
||||
<form method="POST">
|
||||
<input type="hidden" name="step1" value="1">
|
||||
<button type="submit">Retry</button>
|
||||
<button type="submit">Nochmal</button>
|
||||
</form>
|
||||
<?php } else {
|
||||
hell: ?>
|
||||
|
||||
<h2>Step 1: Login details</h2>
|
||||
<h2>Schritt 1: Login Daten</h2>
|
||||
<form method="POST">
|
||||
<label>Site name: <input type="text" name="sitename" value="3words"></label><br />
|
||||
<label>User name: <input type="text" name="username"></label><br />
|
||||
<label>Password: <input type="password" id="p1" name="password"></label><br />
|
||||
<label>Password (again): <input type="password" id="p2" name="passwordconfirm"></label><br />
|
||||
<label>Seiten Name: <input type="text" name="sitename" value="3words"></label><br />
|
||||
<label>User Name: <input type="text" name="username"></label><br />
|
||||
<label>Passwort: <input type="password" id="p1" name="password"></label><br />
|
||||
<label>Passwort wiederholen: <input type="password" id="p2" name="passwordconfirm"></label><br />
|
||||
<input type="hidden" name="step2" value="2">
|
||||
<button type="submit">Submit</button>
|
||||
<button type="submit">Weiter</button>
|
||||
</form>
|
||||
|
||||
<?php }} else if (isset($_POST['step2'])) { // step2: create user
|
||||
@ -84,24 +84,24 @@ hell: ?>
|
||||
"INSERT INTO `config` (`key`, `value`) VALUES ('recent_public', 'false'); " .
|
||||
"INSERT INTO `config` (`key`, `value`) VALUES ('recent_count', '5');";
|
||||
if (!$sql->multi_query($sql_str)) { ?>
|
||||
<h2>An error occurred</h2>
|
||||
<h2>Ein Fehler ist aufgetreten</h2>
|
||||
<pre><?php echo $sql->error; ?></pre>
|
||||
<form method="POST">
|
||||
<label>Site name: <input type="text" name="sitename" value="<?php echo htmlspecialchars($_POST['sitename']); ?>"></label><br />
|
||||
<label>User name: <input type="text" name="username" value="<?php echo htmlspecialchars($_POST['username']); ?>"></label><br />
|
||||
<label>Password: <input type="password" id="p1" name="password"></label><br />
|
||||
<label>Password (again): <input type="password" id="p2" name="passwordconfirm"></label><br />
|
||||
<label>Seiten Name: <input type="text" name="sitename" value="<?php echo htmlspecialchars($_POST['sitename']); ?>"></label><br />
|
||||
<label>User Name: <input type="text" name="username" value="<?php echo htmlspecialchars($_POST['username']); ?>"></label><br />
|
||||
<label>Passwort: <input type="password" id="p1" name="password"></label><br />
|
||||
<label>Passwort wiederholen: <input type="password" id="p2" name="passwordconfirm"></label><br />
|
||||
<input type="hidden" name="step2" value="2">
|
||||
<button type="submit">Retry</button>
|
||||
<button type="submit">Nochmal</button>
|
||||
</form>
|
||||
<?php } else { ?>
|
||||
<h2>Step 3: Enjoy!</h2>
|
||||
You now should delete this file. Have fun.
|
||||
<h2>Schritt 3: Viel Spaß!</h2>
|
||||
Bitte lösche nun die install.php
|
||||
<?php }} else { // step 0: click next to continue ?>
|
||||
<h2>Step 0: Click the damn button to start</h2>
|
||||
<h2>Schritt 0: Klick auf den Button um zu starten!</h2>
|
||||
<form method="POST">
|
||||
<input type="hidden" name="step1" value="1">
|
||||
<button type="submit">Click me hard!</button>
|
||||
<button type="submit">Klick mich!</button>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
|
16
ucp.php
16
ucp.php
@ -25,7 +25,7 @@ function check_privileges($ajax = false) {
|
||||
if ($ajax) {
|
||||
echo json_encode(array("success" => false));
|
||||
} else {
|
||||
$_SESSION['flash'] = "Log in to continue.";
|
||||
$_SESSION['flash'] = "Einloggen um fortzufahren.";
|
||||
header('Location: ucp.php?page=login');
|
||||
}
|
||||
exit();
|
||||
@ -55,7 +55,7 @@ switch ($_GET['page']) {
|
||||
}
|
||||
case "login": {
|
||||
if ($_SESSION['logged_in']) {
|
||||
$_SESSION['flash'] = "You're already logged in.";
|
||||
$_SESSION['flash'] = "Du bist bereits eingeloggt.";
|
||||
header('Location: ucp.php');
|
||||
exit();
|
||||
}
|
||||
@ -70,12 +70,12 @@ switch ($_GET['page']) {
|
||||
if (($_POST['username'] === $username) && ($post_pass === $password)) {
|
||||
// successful login
|
||||
$_SESSION['logged_in'] = true;
|
||||
$_SESSION['flash'] = "You are now logged in.";
|
||||
$_SESSION['flash'] = "Erfolgreich eingeloggt.";
|
||||
header('Location: ucp.php');
|
||||
exit();
|
||||
} else {
|
||||
// failed login
|
||||
$_SESSION['flash'] = "Wrong user name or password";
|
||||
$_SESSION['flash'] = "Falscher Name oder Passwort";
|
||||
header('Location: ucp.php?page=login');
|
||||
exit();
|
||||
}
|
||||
@ -87,7 +87,7 @@ switch ($_GET['page']) {
|
||||
|
||||
session_destroy();
|
||||
session_start();
|
||||
$_SESSION['flash'] = "Sucessfully logged out";
|
||||
$_SESSION['flash'] = "Erfolgreich ausgeloggt.";
|
||||
header('Location: index.php');
|
||||
exit();
|
||||
break;
|
||||
@ -113,7 +113,7 @@ switch ($_GET['page']) {
|
||||
$sql->query("UPDATE `config` SET `value`='" . (int) $_POST['recent_count'] . "' WHERE `key`='recent_count'");
|
||||
}
|
||||
}
|
||||
$_SESSION['flash'] = "Successfully saved changes.";
|
||||
$_SESSION['flash'] = "Änderungen erfolgreich gespeichert.";
|
||||
header('Location: ucp.php?page=settings');
|
||||
exit();
|
||||
break;
|
||||
@ -123,13 +123,13 @@ switch ($_GET['page']) {
|
||||
if ($_POST['password_change'] === $_POST['password_verify']) {
|
||||
if (strlen($_POST['password_change']) > 3) {
|
||||
$sql->query("UPDATE `config` SET `value`='" . $sql->real_escape_string(crypt_password($_POST['password_change'], gen_salt(22))) . "' WHERE `key`='password';");
|
||||
$_SESSION['flash'] = "Successfully changed password.";
|
||||
$_SESSION['flash'] = "Passwort erfolgreich geändert.";
|
||||
header('Location: ucp.php?page=settings');
|
||||
exit();
|
||||
}
|
||||
}
|
||||
}
|
||||
$_SESSION['flash'] = "The passwords did not match or your password is shorter than 3 characters.";
|
||||
$_SESSION['flash'] = "Das Passwort stimmt nicht überein oder ist zu kurz.";
|
||||
header('Location: ucp.php?page=settings');
|
||||
exit();
|
||||
break;
|
||||
|
@ -1,6 +1,6 @@
|
||||
<footer>
|
||||
<hr/>
|
||||
<span class="text-muted footer-lm">{$words_total} words sent in!</span> <span class="float-right footer-rm"><a href="https://github.com/Leafcat/3words">3words</a> by <a href="http://leafc.at">Leafcat Coding</a> © 2014</span>
|
||||
<span class="text-muted footer-lm">{$words_total} Worte wurden schon eingesendet!</span> <span class="float-right footer-rm">3words by <a href="http://leafc.at">Leafcat Coding</a> © 2014 and forked by <a href="http://akamaru.de/">Akamaru</a>. <a href="https://github.com/Akamaru/3words">Code on GitHub</a></span>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -8,16 +8,16 @@
|
||||
<div class="col-md-3">
|
||||
<ul class="nav nav-pills nav-stacked">
|
||||
<li class="active"><a href="ucp.php?page=inbox">Inbox</a></li>
|
||||
<li><a href="ucp.php?page=settings">Settings</a></li>
|
||||
<li><a href="ucp.php?page=settings">Einstellungen</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<h4>Words sent to you:</h4>
|
||||
<h4>Worte an dich gesendet:</h4>
|
||||
<table class="table table-responsive table-bordered table-condensed">
|
||||
<tbody>
|
||||
{loop="$words"}
|
||||
<tr>
|
||||
<td id="words-{$value.id}"><b>{$value.author}</b> thinks that you are <span class="label label-default">{$value.word1}</span>, <span class="label label-default">{$value.word2}</span> and <span class="label label-default">{$value.word3}</span><a class="float-right" href="#" class="text-danger" onclick="b(this)" data-word-id="{$value.id}"><i class="glyphicon glyphicon-remove"></i></a></td>
|
||||
<td id="words-{$value.id}"><b>{$value.author}</b> findet, dass du <span class="label label-default">{$value.word1}</span>, <span class="label label-default">{$value.word2}</span> und <span class="label label-default">{$value.word3}</span> bist. <a class="float-right" href="#" class="text-danger" onclick="b(this)" data-word-id="{$value.id}"><i class="glyphicon glyphicon-remove"></i></a></td>
|
||||
</tr>
|
||||
{/loop}
|
||||
</tbody>
|
||||
|
@ -6,21 +6,21 @@
|
||||
{/if}
|
||||
<h1 class="text-center">{$site_name}!</h1>
|
||||
<form method="POST">
|
||||
<p class="text-center">Want to tell them who you are? <input name="author" type="text" class="input-xs" placeholder="Anonymous"></p>
|
||||
<p class="text-center">Wer bist du? <input name="author" type="text" class="input-xs" placeholder="Ein Äffchen"></p>
|
||||
<div class="row">
|
||||
<div class="col-sm-4 rowm">
|
||||
<input name="word1" type="text" class="form-control" placeholder="First Word">
|
||||
<input name="word1" type="text" class="form-control" placeholder="Erstes Wort">
|
||||
</div>
|
||||
<div class="col-sm-4 rowm">
|
||||
<input name="word2" type="text" class="form-control" placeholder="Second Word">
|
||||
<input name="word2" type="text" class="form-control" placeholder="Zweites Wort">
|
||||
</div>
|
||||
<div class="col-sm-4 rowm">
|
||||
<input name="word3" type="text" class="form-control" placeholder="Third Word">
|
||||
<input name="word3" type="text" class="form-control" placeholder="Drittes Wort">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-4 col-sm-offset-4">
|
||||
<button type="submit" class="btn btn-primary btn-block btn-lg">Submit</button>
|
||||
<button type="submit" class="btn btn-primary btn-block btn-lg">Absenden</button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="words">
|
||||
@ -28,12 +28,12 @@
|
||||
{if="$recent_public"}
|
||||
<div class="row recent-margin">
|
||||
<div class="col-md-offset-2 col-md-8">
|
||||
<h4>Recent Answers by others:</h4>
|
||||
<h4>Was andere denken:</h4>
|
||||
<table class="table table-responsive table-bordered table-condensed">
|
||||
<tbody>
|
||||
{loop="$words"}
|
||||
<tr>
|
||||
<td><b>{$value.author}</b> wrote that {$user_name} is <span class="label label-default">{$value.word1}</span>, <span class="label label-default">{$value.word2}</span> and <span class="label label-default">{$value.word3}</span></td>
|
||||
<td><b>{$value.author}</b> schrieb, dass {$user_name} <span class="label label-default">{$value.word1}</span>, <span class="label label-default">{$value.word2}</span> und <span class="label label-default">{$value.word3}</span> ist.</td>
|
||||
</tr>
|
||||
{/loop}
|
||||
</tbody>
|
||||
|
@ -8,11 +8,11 @@
|
||||
<form role="form" method="POST" action="ucp.php?page=login">
|
||||
<div class="form-group">
|
||||
<label for="InputUsername">Username</label>
|
||||
<input type="text" class="form-control" id="InputUsername" name="username" placeholder="Enter username">
|
||||
<input type="text" class="form-control" id="InputUsername" name="username" placeholder="Username eingeben">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="InputPassword">Password</label>
|
||||
<input type="password" class="form-control" id="InputUsername" name="password" placeholder="Enter password">
|
||||
<label for="InputPassword">Passwort</label>
|
||||
<input type="password" class="form-control" id="InputUsername" name="password" placeholder="Passwort eingeben">
|
||||
</div>
|
||||
<input type="hidden" name="login">
|
||||
<button type="submit" class="btn btn-default btn-block">Login</button>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{$user_name}<b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="ucp.php?page=settings">Settings</a></li>
|
||||
<li><a href="ucp.php?page=settings">Einstellungen</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="ucp.php?page=logout">Logout</a></li>
|
||||
{else}
|
||||
|
@ -8,38 +8,38 @@
|
||||
<div class="col-md-3">
|
||||
<ul class="nav nav-pills nav-stacked">
|
||||
<li><a href="ucp.php?page=inbox">Inbox</a></li>
|
||||
<li class="active"><a href="ucp.php?page=settings">Settings</a></li>
|
||||
<li class="active"><a href="ucp.php?page=settings">Einstellungen</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<form role="form" action="ucp.php?page=settings" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="sitename">Site name</label>
|
||||
<input type="text" class="form-control" name="sitename" placeholder="3 words about your mom" value="{$site_name}">
|
||||
<label for="sitename">Seiten Name</label>
|
||||
<input type="text" class="form-control" name="sitename" placeholder="3 Worte über deiner Mutter" value="{$site_name}">
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input id="recent_check" name="recent_check" type="checkbox" onchange="a(!this.checked)"{if="$recent_public"} checked{/if}> Show recent words
|
||||
<input id="recent_check" name="recent_check" type="checkbox" onchange="a(!this.checked)"{if="$recent_public"} checked{/if}> Zeige letzte Worte
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="recent">Recent words</label>
|
||||
<label for="recent">Letzte Worte</label>
|
||||
<input type="number" class="form-control" id="recent-count" name="recent_count" value="{$recent_count}"{if="!$recent_public"} disabled{/if}>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default" id="recent-btn">Submit</button>
|
||||
<button type="submit" class="btn btn-default" id="recent-btn">Speichern</button>
|
||||
<input type="hidden" name="action" value="generic">
|
||||
</form>
|
||||
<hr/>
|
||||
<form role="form" action="ucp.php?page=settings" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="password_change">New password</label>
|
||||
<input type="password" class="form-control" name="password_change" placeholder="Password">
|
||||
<label for="password_change">Neues Passwort</label>
|
||||
<input type="password" class="form-control" name="password_change" placeholder="Passwort">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password_verify">Repeat new password</label>
|
||||
<input type="password" class="form-control" name="password_verify" placeholder="Password">
|
||||
<label for="password_verify">Neues Passwort wiederholen</label>
|
||||
<input type="password" class="form-control" name="password_verify" placeholder="Passwort">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default">Change password</button>
|
||||
<button type="submit" class="btn btn-default">Passwort ändern</button>
|
||||
<input type="hidden" name="action" value="password">
|
||||
</form>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user