...
Code Block | ||
---|---|---|
| ||
private String myAuthor; public String getAuthor() { return myAuthor; } public void setAuthor(String author) { myAuthor = author; } |
Language Label
See Adding a Language Label for a complete description of adding language labels. The following snippet should be added to each language file:
Code Block | ||
---|---|---|
| ||
helloworldmediaitem.author=Author |
When adding language labels, be sure that they conform to the WCB Development Guidelines (G027 and G028 in particular).
Adding a Field to the Edit JSP
See Adding a Field to the Edit JSP for a complete description of adding fields to the edit JSP. The following snippet should be added to the editMetadata.jspf
:
...
Code Block | ||
---|---|---|
| ||
<fmt:message key="helloworldmediaitem.author" />: <wmedit:input path="author"/> |
...
Language Label
The language label "helloworldmediaitem.author should" be present in both messages_en_US.properties
and messages_en_US.properties
files as e.g.:
Code Block | ||||
---|---|---|---|---|
| ||||
helloworldmediaitem.author=Author |
or
Code Block | ||
---|---|---|
| ||
helloworldmediaitem.author=Auteur |
See Adding a Language Label for a complete description of adding language labels. The following snippet should be added to each language file:
When adding language labels, be sure that they conform to the WCB Development Guidelines (G027 and G028 in particular).
...
Anchor | ||||
---|---|---|---|---|
|
...