Reputation: 2105
I have a tapestry 5.4 project, and I want to override one element of the default core.properties file.
I tried to add to login_en.properties
and login_hu.properties
a new line (core-default-error-banner=...
) but it do not override it.
Is there any way to overwrite it?
Thanks for the answers in advance.
Upvotes: 1
Views: 296
Reputation: 36
If you intend to overwrite the header line of the Errors component, just specify your own message id in the page/component template like this:
<t:errors banner="message:your-translated-error-msg-id" />
Upvotes: 2
Reputation: 2228
To support other locales, just translate the built-in message catalog (property) files yourself: To have Tapestry use these new files, just put them in the corresponding package-named directory within your own app (for example, src/main/resources/org/apache/tapestry5/core.properties
). More informtation can be found from Tapestry
site.
Upvotes: 1