removes stupid thead prefix from every resource file

Sat, 30 May 2020 15:28:27 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 30 May 2020 15:28:27 +0200
changeset 82
4ec7f2600c83
parent 81
1a2e7b5d48f7
child 83
24a3596b8f98

removes stupid thead prefix from every resource file

src/main/resources/localization/projects.properties file | annotate | diff | comparison | revisions
src/main/resources/localization/projects_de.properties file | annotate | diff | comparison | revisions
src/main/resources/localization/users.properties file | annotate | diff | comparison | revisions
src/main/resources/localization/users_de.properties file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/jsp/issue-form.jsp file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/jsp/issues.jsp file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/jsp/project-details.jsp file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/jsp/project-form.jsp file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/jsp/projects.jsp file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/jsp/user-form.jsp file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/jsp/users.jsp file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/jsp/version-form.jsp file | annotate | diff | comparison | revisions
--- a/src/main/resources/localization/projects.properties	Sat May 30 15:26:15 2020 +0200
+++ b/src/main/resources/localization/projects.properties	Sat May 30 15:28:27 2020 +0200
@@ -35,18 +35,18 @@
 
 menu.issues=Issues
 
-thead.name=Name
-thead.description=Description
-thead.repoUrl=Repository
-thead.owner=Project Lead
-thead.issues.open=Open
-thead.issues.active=In Progress
-thead.issues.done=Done
+name=Name
+description=Description
+repoUrl=Repository
+owner=Project Lead
+issues.open=Open
+issues.active=In Progress
+issues.done=Done
 
-thead.version.project=Project
-thead.version.name=Version
-thead.version.status=Status
-thead.version.ordinal=Custom Ordering
+version.project=Project
+version.name=Version
+version.status=Status
+version.ordinal=Custom Ordering
 tooltip.ordinal=Use to override lexicographic ordering.
 
 placeholder.null-owner=Unassigned
@@ -64,21 +64,21 @@
 version.statistics.resolved=Resolved Issues
 version.statistics.total=Total
 
-thead.issue.project=Project
-thead.issue.subject=Subject
-thead.issue.description=Description
-thead.issue.assignee=Assignee
-thead.issue.affected-version=Affected Version
-thead.issue.affected-versions=Affected Versions
-thead.issue.scheduled-version=Scheduled for Version
-thead.issue.scheduled-versions=Scheduled for Versions
-thead.issue.resolved-version=Resolved in Version
-thead.issue.resolved-versions=Resolved in Versions
-thead.issue.category=Category
-thead.issue.status=Status
-thead.issue.created=Created
-thead.issue.updated=Updated
-thead.issue.eta=ETA
+issue.project=Project
+issue.subject=Subject
+issue.description=Description
+issue.assignee=Assignee
+issue.affected-version=Affected Version
+issue.affected-versions=Affected Versions
+issue.scheduled-version=Scheduled for Version
+issue.scheduled-versions=Scheduled for Versions
+issue.resolved-version=Resolved in Version
+issue.resolved-versions=Resolved in Versions
+issue.category=Category
+issue.status=Status
+issue.created=Created
+issue.updated=Updated
+issue.eta=ETA
 
 issue.category.Feature=Feature
 issue.category.Improvement=Improvement
--- a/src/main/resources/localization/projects_de.properties	Sat May 30 15:26:15 2020 +0200
+++ b/src/main/resources/localization/projects_de.properties	Sat May 30 15:28:27 2020 +0200
@@ -35,18 +35,18 @@
 
 menu.issues=Vorg\u00e4nge
 
-thead.name=Name
-thead.description=Beschreibung
-thead.repoUrl=Repository
-thead.owner=Projektleitung
-thead.issues.open=Offen
-thead.issues.active=In Arbeit
-thead.issues.done=Erledigt
+name=Name
+description=Beschreibung
+repoUrl=Repository
+owner=Projektleitung
+issues.open=Offen
+issues.active=In Arbeit
+issues.done=Erledigt
 
-thead.version.project=Projekt
-thead.version.name=Version
-thead.version.status=Status
-thead.version.ordinal=Sequenznummer
+version.project=Projekt
+version.name=Version
+version.status=Status
+version.ordinal=Sequenznummer
 tooltip.ordinal=\u00dcbersteuert die lexikographische Sortierung.
 
 placeholder.null-owner=Nicht Zugewiesen
@@ -64,21 +64,21 @@
 version.statistics.resolved=Gel\u00f6ste Vorg\u00e4nge
 version.statistics.total=Summe
 
-thead.issue.project=Projekt
-thead.issue.subject=Thema
-thead.issue.description=Beschreibung
-thead.issue.assignee=Zugewiesen
-thead.issue.affected-version=Betroffene Version
-thead.issue.affected-versions=Betroffene Versionen
-thead.issue.scheduled-version=Zielversion
-thead.issue.scheduled-versions=Zielversionen
-thead.issue.resolved-version=Gel\u00f6st in Version
-thead.issue.resolved-versions=Gel\u00f6st in Versionen
-thead.issue.category=Kategorie
-thead.issue.status=Status
-thead.issue.created=Erstellt
-thead.issue.updated=Aktualisiert
-thead.issue.eta=Zieldatum
+issue.project=Projekt
+issue.subject=Thema
+issue.description=Beschreibung
+issue.assignee=Zugewiesen
+issue.affected-version=Betroffene Version
+issue.affected-versions=Betroffene Versionen
+issue.scheduled-version=Zielversion
+issue.scheduled-versions=Zielversionen
+issue.resolved-version=Gel\u00f6st in Version
+issue.resolved-versions=Gel\u00f6st in Versionen
+issue.category=Kategorie
+issue.status=Status
+issue.created=Erstellt
+issue.updated=Aktualisiert
+issue.eta=Zieldatum
 
 issue.category.Feature=Feature
 issue.category.Improvement=Verbesserung
--- a/src/main/resources/localization/users.properties	Sat May 30 15:26:15 2020 +0200
+++ b/src/main/resources/localization/users.properties	Sat May 30 15:28:27 2020 +0200
@@ -27,9 +27,9 @@
 
 no-users=No developers have been configured yet.
 
-thead.username=User Name
-thead.givenname=Given Name
-thead.lastname=Last Name
-thead.mail=E-Mail
+username=User Name
+givenname=Given Name
+lastname=Last Name
+mail=E-Mail
 
-thead.displayname=Developer
+displayname=Developer
--- a/src/main/resources/localization/users_de.properties	Sat May 30 15:26:15 2020 +0200
+++ b/src/main/resources/localization/users_de.properties	Sat May 30 15:28:27 2020 +0200
@@ -27,9 +27,9 @@
 
 no-users=Bislang wurden keine Entwickler hinterlegt.
 
-thead.username=Benutzername
-thead.givenname=Vorname
-thead.lastname=Nachname
-thead.mail=E-Mail
+username=Benutzername
+givenname=Vorname
+lastname=Nachname
+mail=E-Mail
 
-thead.displayname=Entwickler
+displayname=Entwickler
--- a/src/main/webapp/WEB-INF/jsp/issue-form.jsp	Sat May 30 15:26:15 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/issue-form.jsp	Sat May 30 15:28:27 2020 +0200
@@ -42,7 +42,7 @@
         </colgroup>
         <tbody>
         <tr>
-            <th><fmt:message key="thead.issue.project"/></th>
+            <th><fmt:message key="issue.project"/></th>
             <td>
                 <select name="pid" required>
                     <c:forEach var="project" items="${projects}">
@@ -54,7 +54,7 @@
             </td>
         </tr>
         <tr>
-            <th><fmt:message key="thead.issue.category"/></th>
+            <th><fmt:message key="issue.category"/></th>
             <td>
                 <select name="category">
                     <c:forEach var="category" items="${issueCategoryEnum}">
@@ -68,7 +68,7 @@
             </td>
         </tr>
         <tr>
-            <th><fmt:message key="thead.issue.status"/></th>
+            <th><fmt:message key="issue.status"/></th>
             <td>
                 <select name="status">
                     <c:forEach var="status" items="${issueStatusEnum}">
@@ -82,17 +82,17 @@
             </td>
         </tr>
         <tr>
-            <th><fmt:message key="thead.issue.subject"/></th>
+            <th><fmt:message key="issue.subject"/></th>
             <td><input name="subject" type="text" maxlength="20" required value="<c:out value="${issue.subject}"/>" /></td>
         </tr>
         <tr>
-            <th class="vtop"><fmt:message key="thead.issue.description"/></th>
+            <th class="vtop"><fmt:message key="issue.description"/></th>
             <td>
                 <textarea name="description"><c:out value="${issue.description}"/></textarea>
             </td>
         </tr>
         <tr>
-            <th><fmt:message key="thead.issue.assignee"/></th>
+            <th><fmt:message key="issue.assignee"/></th>
             <td>
                 <select name="assignee">
                     <option value="-1"><fmt:message key="placeholder.null-assignee"/></option>
@@ -108,10 +108,10 @@
             <th>
                 <c:choose>
                     <c:when test="${issue.affectedVersions.size() gt 1}">
-                        <fmt:message key="thead.issue.affected-versions"/>
+                        <fmt:message key="issue.affected-versions"/>
                     </c:when>
                     <c:otherwise>
-                        <fmt:message key="thead.issue.affected-version"/>
+                        <fmt:message key="issue.affected-version"/>
                     </c:otherwise>
                 </c:choose>
             </th>
@@ -121,10 +121,10 @@
             <th>
                 <c:choose>
                     <c:when test="${issue.scheduledVersions.size() gt 1}">
-                        <fmt:message key="thead.issue.scheduled-versions"/>
+                        <fmt:message key="issue.scheduled-versions"/>
                     </c:when>
                     <c:otherwise>
-                        <fmt:message key="thead.issue.scheduled-version"/>
+                        <fmt:message key="issue.scheduled-version"/>
                     </c:otherwise>
                 </c:choose>
             </th>
@@ -134,25 +134,25 @@
             <th>
                 <c:choose>
                     <c:when test="${issue.resolvedVersions.size() gt 1}">
-                        <fmt:message key="thead.issue.resolved-versions"/>
+                        <fmt:message key="issue.resolved-versions"/>
                     </c:when>
                     <c:otherwise>
-                        <fmt:message key="thead.issue.resolved-version"/>
+                        <fmt:message key="issue.resolved-version"/>
                     </c:otherwise>
                 </c:choose>
             </th>
             <td>TODO</td>
         </tr>
         <tr>
-            <th><fmt:message key="thead.issue.eta"/></th>
+            <th><fmt:message key="issue.eta"/></th>
             <td><input name="eta" type="date" value="<fmt:formatDate value="${issue.eta}" pattern="YYYY-MM-dd" />" /> </td>
         </tr>
         <tr>
-            <th><fmt:message key="thead.issue.created"/></th>
+            <th><fmt:message key="issue.created"/></th>
             <td><fmt:formatDate value="${issue.created}" /></td>
         </tr>
         <tr>
-            <th><fmt:message key="thead.issue.updated"/></th>
+            <th><fmt:message key="issue.updated"/></th>
             <td><fmt:formatDate value="${issue.updated}" /></td>
         </tr>
         </tbody>
--- a/src/main/webapp/WEB-INF/jsp/issues.jsp	Sat May 30 15:26:15 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/issues.jsp	Sat May 30 15:28:27 2020 +0200
@@ -39,13 +39,13 @@
 <table id="issue-list" class="datatable medskip">
     <thead>
     <tr>
-        <th><fmt:message key="thead.issue.subject"/></th>
-        <th><fmt:message key="thead.issue.assignee"/></th>
-        <th><fmt:message key="thead.issue.category"/></th>
-        <th><fmt:message key="thead.issue.status"/></th>
-        <th><fmt:message key="thead.issue.created"/></th>
-        <th><fmt:message key="thead.issue.updated"/></th>
-        <th><fmt:message key="thead.issue.eta"/></th>
+        <th><fmt:message key="issue.subject"/></th>
+        <th><fmt:message key="issue.assignee"/></th>
+        <th><fmt:message key="issue.category"/></th>
+        <th><fmt:message key="issue.status"/></th>
+        <th><fmt:message key="issue.created"/></th>
+        <th><fmt:message key="issue.updated"/></th>
+        <th><fmt:message key="issue.eta"/></th>
     </tr>
     </thead>
     <tbody>
--- a/src/main/webapp/WEB-INF/jsp/project-details.jsp	Sat May 30 15:26:15 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/project-details.jsp	Sat May 30 15:28:27 2020 +0200
@@ -39,17 +39,17 @@
 
 <div id="project-attributes">
     <div class="row">
-        <div class="caption"><fmt:message key="thead.name"/>:</div>
+        <div class="caption"><fmt:message key="name"/>:</div>
         <div><c:out value="${project.name}"/></div>
-        <div class="caption"><fmt:message key="thead.description"/>:</div>
+        <div class="caption"><fmt:message key="description"/>:</div>
         <div><c:out value="${project.description}"/></div>
     </div>
     <div class="row">
-        <div class="caption"><fmt:message key="thead.owner"/>:</div>
+        <div class="caption"><fmt:message key="owner"/>:</div>
         <div>
             <c:if test="${not empty project.owner}"><c:out value="${project.owner.displayname}"/></c:if>
         </div>
-        <div class="caption"><fmt:message key="thead.repoUrl"/>:</div>
+        <div class="caption"><fmt:message key="repoUrl"/>:</div>
         <div>
             <c:if test="${not empty project.repoUrl}">
                 <a target="_blank" href="<c:out value="${project.repoUrl}"/>"><c:out
--- a/src/main/webapp/WEB-INF/jsp/project-form.jsp	Sat May 30 15:26:15 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/project-form.jsp	Sat May 30 15:28:27 2020 +0200
@@ -39,19 +39,19 @@
         </colgroup>
         <tbody>
         <tr>
-            <th><fmt:message key="thead.name"/></th>
+            <th><fmt:message key="name"/></th>
             <td><input name="name" type="text" maxlength="20" required value="<c:out value="${project.name}"/>" /></td>
         </tr>
         <tr>
-            <th><fmt:message key="thead.description"/></th>
+            <th><fmt:message key="description"/></th>
             <td><input type="text" name="description" maxlength="200" value="<c:out value="${project.description}"/>" /></td>
         </tr>
         <tr>
-            <th><fmt:message key="thead.repoUrl"/></th>
+            <th><fmt:message key="repoUrl"/></th>
             <td><input name="repoUrl" type="url" maxlength="50" value="<c:out value="${project.repoUrl}"/>" /></td>
         </tr>
         <tr>
-            <th><fmt:message key="thead.owner"/></th>
+            <th><fmt:message key="owner"/></th>
             <td>
                 <select name="owner">
                     <option value="-1"><fmt:message key="placeholder.null-owner"/></option>
--- a/src/main/webapp/WEB-INF/jsp/projects.jsp	Sat May 30 15:26:15 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/projects.jsp	Sat May 30 15:28:27 2020 +0200
@@ -56,11 +56,11 @@
         <thead>
         <tr>
             <th></th>
-            <th><fmt:message key="thead.name"/></th>
-            <th><fmt:message key="thead.repoUrl"/></th>
-            <th><fmt:message key="thead.issues.open"/></th>
-            <th><fmt:message key="thead.issues.active"/></th>
-            <th><fmt:message key="thead.issues.done"/></th>
+            <th><fmt:message key="name"/></th>
+            <th><fmt:message key="repoUrl"/></th>
+            <th><fmt:message key="issues.open"/></th>
+            <th><fmt:message key="issues.active"/></th>
+            <th><fmt:message key="issues.done"/></th>
         </tr>
         </thead>
         <tbody>
--- a/src/main/webapp/WEB-INF/jsp/user-form.jsp	Sat May 30 15:26:15 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/user-form.jsp	Sat May 30 15:28:27 2020 +0200
@@ -38,20 +38,20 @@
         </colgroup>
         <tbody>
         <tr>
-            <th><fmt:message key="thead.username"/></th>
+            <th><fmt:message key="username"/></th>
             <td><input name="username" type="text" maxlength="50" required value="<c:out value="${user.username}"/>"
                        <c:if test="${user.id ge 0}">readonly</c:if> /></td>
         </tr>
         <tr>
-            <th><fmt:message key="thead.givenname"/></th>
+            <th><fmt:message key="givenname"/></th>
             <td><input name="givenname" type="text" maxlength="50" value="<c:out value="${user.givenname}"/>" /></td>
         </tr>
         <tr>
-            <th><fmt:message key="thead.lastname"/></th>
+            <th><fmt:message key="lastname"/></th>
             <td><input name="lastname" type="text" maxlength="50" value="<c:out value="${user.lastname}"/>" /></td>
         </tr>
         <tr>
-            <th><fmt:message key="thead.mail"/></th>
+            <th><fmt:message key="mail"/></th>
             <td><input name="mail" type="email" maxlength="50" value="<c:out value="${user.mail}"/>" /></td>
         </tr>
         </tbody>
--- a/src/main/webapp/WEB-INF/jsp/users.jsp	Sat May 30 15:26:15 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/users.jsp	Sat May 30 15:28:27 2020 +0200
@@ -45,7 +45,7 @@
         <thead>
         <tr>
             <th></th>
-            <th><fmt:message key="thead.displayname"/></th>
+            <th><fmt:message key="displayname"/></th>
         </tr>
         </thead>
         <tbody>
--- a/src/main/webapp/WEB-INF/jsp/version-form.jsp	Sat May 30 15:26:15 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/version-form.jsp	Sat May 30 15:28:27 2020 +0200
@@ -45,7 +45,7 @@
         </colgroup>
         <tbody>
         <tr>
-            <th><fmt:message key="thead.version.project"/></th>
+            <th><fmt:message key="version.project"/></th>
             <td>
                 <select name="pid" required>
                     <c:forEach var="project" items="${projects}">
@@ -57,11 +57,11 @@
             </td>
         </tr>
         <tr>
-            <th><fmt:message key="thead.version.name"/></th>
+            <th><fmt:message key="version.name"/></th>
             <td><input name="name" type="text" maxlength="20" required value="<c:out value="${version.name}"/>" /></td>
         </tr>
         <tr>
-            <th><fmt:message key="thead.version.status"/></th>
+            <th><fmt:message key="version.status"/></th>
             <td>
                 <select name="status" required>
                     <c:forEach var="elem" items="${versionStatusEnum}">
@@ -73,7 +73,7 @@
             </td>
         </tr>
         <tr title="<fmt:message key="tooltip.ordinal" />">
-            <th><fmt:message key="thead.version.ordinal"/></th>
+            <th><fmt:message key="version.ordinal"/></th>
             <td>
                 <input name="ordinal" type="number" min="0" value="${version.ordinal}"/>
             </td>

mercurial