diff --git a/ihtml/themes/breezy/login.tpl b/ihtml/themes/breezy/login.tpl
index 3b39193d2afb00e38a2c6fa52799ed260d5e69d1..754d858fed34ec250d585cb7c07be9c738ee9138 100644
--- a/ihtml/themes/breezy/login.tpl
+++ b/ihtml/themes/breezy/login.tpl
@@ -53,7 +53,7 @@
         if (document.cookie.indexOf( "fdtest=") > -1 )
           document.cookie = "fdtest=empty;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT";
         else
-          document.write("{$cookies}");
+          document.write("<b>{t}Warning{/t}</b> {t}Your browser has cookies disabled. Please enable cookies and reload this page before logging in!{/t}");
         -->
        </script>
       </p>
diff --git a/ihtml/themes/legacy/login.tpl b/ihtml/themes/legacy/login.tpl
index 349b312d37de0e08edba768efe3f2e73fca098ef..3cf3a9f5433a27bd3b6edb4c6d46ceacf8536648 100644
--- a/ihtml/themes/legacy/login.tpl
+++ b/ihtml/themes/legacy/login.tpl
@@ -53,7 +53,7 @@
         if (document.cookie.indexOf( "fdtest=") > -1 )
           document.cookie = "fdtest=empty;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT";
         else
-          document.write("{$cookies}");
+          document.write("<b>{t}Warning{/t}</b> {t}Your browser has cookies disabled. Please enable cookies and reload this page before logging in!{/t}");
         -->
        </script>
       </p>
diff --git a/include/login/class_LoginPost.inc b/include/login/class_LoginPost.inc
index a90d331387ece22291e8970e3f45d24c967abdd0..6389fb88c2855f422b868e294732a271186f9233 100644
--- a/include/login/class_LoginPost.inc
+++ b/include/login/class_LoginPost.inc
@@ -84,9 +84,6 @@ class LoginPost extends LoginMethod
       }
     }
 
-    /* Translation of cookie-warning. Whether to display it, is determined by JavaScript */
-    $smarty->assign('cookies', '<b>'._('Warning').':</b> '._('Your browser has cookies disabled. Please enable cookies and reload this page before logging in!'));
-
     static::displayLogin();
   }