Cleanup of old stuff.
[shipsimu.git] / application / shipsimu / templates / de / code / login_form.ctp
index 9de613a0dfc59841286574ccc7b203593304a43c..b8a52e2aa89b7ae1771d4d97b0b9fd90e5f70e6c 100644 (file)
@@ -4,29 +4,30 @@
 // BaseHelper.
 $helperInstance = ObjectFactory::createObjectByConfiguredName('html_form_helper_class', array($this, 'shipsimu_user_login'));
 
-// Formular deaktiviert?
+// Is the form enabled?
 if ($helperInstance->ifLoginIsEnabled()) {
-       // Formular ist aktiv
+       // Form is active
        $helperInstance->addFormGroup('login', "Gebe hier deine Logindaten ein:");
 
-       // Welches Loginverfahren wurde konfiguriert?
+       // Which login method has been configured?
        if ($helperInstance->ifLoginWithUsername()) {
-               // Login mit Username
+               // Login with user name only
                $helperInstance->addFormSubGroup('username', "Bitte mit deinem Nickname einloggen.");
                $helperInstance->addFieldText('username', "Dein Nickname:");
                $helperInstance->addInputTextField('username');
        } elseif ($helperInstance->ifLoginWithEmail()) {
-               // Login mit Email
+               // Login with email address only
                $helperInstance->addFormSubGroup('email', "Bitte mit deiner Email-Adresse einloggen.");
                $helperInstance->addFieldText('email', "Deine Email-Addresse:");
                $helperInstance->addInputTextField('email');
        } else {
-               // Login mit Email/Username
+               // Login with email address or user name
                $helperInstance->addFormSubGroup('user_email', "Bitte mit deinem Nickname oder Email-Adresse einloggen.");
                $helperInstance->addFieldText('user_email', "Dein Nickname/Email:");
                $helperInstance->addInputTextField('user_email');
        }
 
+       // Add password input field
        $helperInstance->addFormSubGroup('pass', "Gebe dein Passwort von der Anmeldung ein.");
        $helperInstance->addFieldText('pass', "Dein Passwort:");
        $helperInstance->addInputPasswordField('pass');
@@ -42,7 +43,7 @@ if ($helperInstance->ifLoginIsEnabled()) {
        $helperInstance->addInputResetButton("Formular leeren");
        $helperInstance->addInputSubmitButton("Zum Spiel einloggen");
 } else {
-       // Formular deaktiviert
+       // Form is inactive
        $helperInstance->addFormNote('form_deactivated', "Einloggen in's Spiel ist derzeit administrativ deaktiviert worden. Bitte komme später noch mal wieder.");
        $helperInstance->addFormNote('admin_notice', "Nachricht vom Admin: <span id=\"disabled_reason\">".$this->getConfigInstance()->readConfig('login_disabled_reason')."</span>");
 }