~jan0sch/smederee

Showing details for patch ecc825cd5c6b3fe48907fa45a7290cb917adc8ab.
2022-08-06 (Sat), 2:02 PM - Jens Grassel - ecc825cd5c6b3fe48907fa45a7290cb917adc8ab

i18n: translate all fields in signup form

Summary of changes
1 files modified with 3 lines added and 3 lines removed
  • modules/hub/src/main/twirl/de/smederee/hub/views/signup.scala.html with 3 added and 3 removed lines
diff -rN -u old-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/signup.scala.html new-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/signup.scala.html
--- old-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/signup.scala.html	2025-02-02 23:17:21.709136656 +0000
+++ new-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/signup.scala.html	2025-02-02 23:17:21.709136656 +0000
@@ -21,9 +21,9 @@
           <form action="@createFullPath(pathPrefix)(action)" method="POST" accept-charset="UTF-8" class="pure-form pure-form-aligned" autocomplete="on">
             <fieldset id="signup-data">
               <div class="pure-control-group">
-                <label for="@{fieldName}">Username</label>
-                <input class="pure-input-1-2" id="@{fieldName}" name="@{fieldName}" placeholder="Please choose your username." maxlength="31" required="" type="text" value="@{formData.get(fieldName)}" autocomplete="username">
-                <small class="pure-form-message" id="@{fieldName}.help">A username is required because it will be used to group your projects and other stuff. It must be between 2 and 31 characters long and contain only lowercase alphanumeric characters and start with a character (letter).</small>
+                <label for="@{fieldName}">@Messages("form.signup.username")</label>
+                <input class="pure-input-1-2" id="@{fieldName}" name="@{fieldName}" placeholder="@Messages("form.signup.username.placeholder")" maxlength="31" required="" type="text" value="@{formData.get(fieldName)}" autocomplete="username">
+                <small class="pure-form-message" id="@{fieldName}.help">@Messages("form.signup.username.help")</small>
                 @renderFormErrors(fieldName, formErrors)
               </div>
               <div class="pure-control-group">