Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 2.0-M5
-
Fix Version/s: None
-
Component/s: Tools - AppGen
-
Labels:None
-
Environment:Basic Struts
Description
no code generated on file ApplicationResources_fr.properties for example
Activity
Matt Raible
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Resolution | Won't Fix [ 2 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
This is not something we plan on fixing, unless someone provides a patch. Unfortunately, I only speak English.
The FreeMarker template (ApplicationResources.ftl) can be viewed at http://tinyurl.com/2x9r66. The getFieldDescription() method in DataHelper handles creating the field labels:
/**
*/
public String getFieldDescription(String fieldName) {
StringBuffer buffer = new StringBuffer();
boolean nextUpper = false;
for (int i = 0; i < fieldName.length(); i++) {
char c = fieldName.charAt
if (i == 0)
{ buffer.append(Character.toUpperCase(c)); continue; }if (Character.isUpperCase(c))
{ buffer.append(' '); buffer.append(c); continue; }if (c == '.')
{ buffer.delete(0, buffer.length()); nextUpper = true; continue; }char x = nextUpper ? Character.toUpperCase(c) : c;
;
buffer.append
nextUpper = false;
}
return buffer.toString();
}