From 218a8a35d6e06cf8d388036442ae5db51cddfb53 Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Wed, 21 Sep 2016 20:45:59 +0200
Subject: [PATCH] Fixed a few missing translation strings

---
 templates/login.phtml | 6 +++---
 translations/de.json  | 5 ++++-
 translations/en.json  | 5 ++++-
 3 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/templates/login.phtml b/templates/login.phtml
index ecf7084..4686ee6 100644
--- a/templates/login.phtml
+++ b/templates/login.phtml
@@ -19,9 +19,9 @@
 <h2><?php $t('login.description'); ?></h2>
 
 <form method="post" action="login.php?action=login">
-    <input name="username" type="text" placeholder="Username">
-    <input name="password" type="password" placeholder="Password">
-    <input type="submit" value="Login">
+    <input name="username" type="text" placeholder="<?php $t('login.username'); ?>">
+    <input name="password" type="password" placeholder="<?php $t('login.password'); ?>">
+    <input type="submit" value="<?php $t('login.submit'); ?>">
 </form>
 
 </body>
diff --git a/translations/de.json b/translations/de.json
index e834c6a..2ba1b89 100644
--- a/translations/de.json
+++ b/translations/de.json
@@ -11,7 +11,10 @@
     "error_unavailable": "No search history available"
   },
   "login": {
-    "description": "You have to login to access this page"
+    "description": "You have to login to access this page",
+    "username": "Benutzername",
+    "password": "Passwort",
+    "submit": "Anmelden"
   },
   "search": "Suchen",
   "logout": "Abmelden",
diff --git a/translations/en.json b/translations/en.json
index 2008ab3..be43c3c 100644
--- a/translations/en.json
+++ b/translations/en.json
@@ -11,7 +11,10 @@
     "error_unavailable": "No search history available"
   },
   "login": {
-    "description": "You have to login to access this page"
+    "description": "You have to login to access this page",
+    "username": "Username",
+    "password": "Password",
+    "submit": "Login"
   },
   "search": "Search",
   "logout": "Logout",
-- 
GitLab