From 67c06db23652d03bc3626fc501dd27cce80e0bb7 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Thu, 13 Aug 2015 17:23:12 +0200 Subject: [PATCH] German translation --- README.md | 7 +++---- config.php | 2 +- index.php | 2 +- install.php | 36 ++++++++++++++++++------------------ ucp.php | 16 ++++++++-------- views/footer.html | 2 +- views/inbox.html | 6 +++--- views/index.html | 14 +++++++------- views/login.html | 6 +++--- views/navbar.html | 2 +- views/settings.html | 22 +++++++++++----------- 11 files changed, 57 insertions(+), 58 deletions(-) diff --git a/README.md b/README.md index a23a844..250e363 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file +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`. \ No newline at end of file diff --git a/config.php b/config.php index 3dccfe5..d3d1cb7 100644 --- a/config.php +++ b/config.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. diff --git a/index.php b/index.php index 6b55855..7549dd5 100644 --- a/index.php +++ b/index.php @@ -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(); } diff --git a/install.php b/install.php index e091dfa..c4b5e4d 100644 --- a/install.php +++ b/install.php @@ -54,23 +54,23 @@ SQL ; if (!$sql->multi_query($sql_str)) { ?> -

An error occurred

+

Ein Fehler ist aufgetreten

error; ?>
- +
-

Step 1: Login details

+

Schritt 1: Login Daten

-
-
-
-
+
+
+
+
- +
"INSERT INTO `config` (`key`, `value`) VALUES ('recent_public', 'false'); " . "INSERT INTO `config` (`key`, `value`) VALUES ('recent_count', '5');"; if (!$sql->multi_query($sql_str)) { ?> -

An error occurred

+

Ein Fehler ist aufgetreten

error; ?>
-
-
-
-
+
+
+
+
- +
-

Step 3: Enjoy!

-You now should delete this file. Have fun. +

Schritt 3: Viel Spaß!

+Bitte lösche nun die install.php -

Step 0: Click the damn button to start

+

Schritt 0: Klick auf den Button um zu starten!

- +
diff --git a/ucp.php b/ucp.php index 8549b06..b5af4e7 100644 --- a/ucp.php +++ b/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; diff --git a/views/footer.html b/views/footer.html index cde2e3d..d213aa4 100644 --- a/views/footer.html +++ b/views/footer.html @@ -1,6 +1,6 @@ diff --git a/views/inbox.html b/views/inbox.html index 2e01104..ce6aa23 100644 --- a/views/inbox.html +++ b/views/inbox.html @@ -8,16 +8,16 @@
-

Words sent to you:

+

Worte an dich gesendet:

{loop="$words"} - + {/loop} diff --git a/views/index.html b/views/index.html index a1c7512..a456add 100644 --- a/views/index.html +++ b/views/index.html @@ -6,21 +6,21 @@ {/if}

{$site_name}!

-

Want to tell them who you are?

+

Wer bist du?

- +
- +
- +
- +
@@ -28,12 +28,12 @@ {if="$recent_public"}
-

Recent Answers by others:

+

Was andere denken:

{$value.author} thinks that you are {$value.word1}, {$value.word2} and {$value.word3}{$value.author} findet, dass du {$value.word1}, {$value.word2} und {$value.word3} bist.
{loop="$words"} - + {/loop} diff --git a/views/login.html b/views/login.html index 4a6f77f..c3b6c16 100644 --- a/views/login.html +++ b/views/login.html @@ -8,11 +8,11 @@
- +
- - + +
diff --git a/views/navbar.html b/views/navbar.html index a9d1726..00caa43 100644 --- a/views/navbar.html +++ b/views/navbar.html @@ -21,7 +21,7 @@
{$value.author} wrote that {$user_name} is {$value.word1}, {$value.word2} and {$value.word3}{$value.author} schrieb, dass {$user_name} {$value.word1}, {$value.word2} und {$value.word3} ist.