Closed etiennedaspe closed 9 years ago
It seems that this problem is fixed in the current version on Github. But it hasn't been deployed yet. Indeed, I have the lastest version of JHipster on my computer (I downloaded it last Monday). But I compared the _entities.html file on my computer with the one on Github and I noticed a difference at the bug's location.
My file _entities.html line 110 :
<th translate="<%= keyPrefix + otherEntityName%>"><%=relationships[relationshipId].otherEntityName%></th><% } } %>
(so temporarily I just changed "keyPrefix + otherEntityName" to "keyPrefix + relationships[relationshipId].otherEntityName" to correct the bug)
The current _entities.html file on Github line 110 :
<th translate="<%= keyPrefix + relationships[relationshipId].relationshipName%>"><%=relationships[relationshipId].relationshipName%></th><% } } %>
\```
After using jhipster:entity generator, wrong translate keys have been put in html. You can find below the trace of entities generated, and the wrong html code generated. ----------------------- Entities Generated -----------------------
----------------------- Wrong Table Headers (translate keys) in entities/acl/acls.html -----------------------