Skip to content
This repository has been archived by the owner on Jul 25, 2021. It is now read-only.

Eliminare mesaje harcodate in controllere. #8

Closed
aburghelea opened this issue Dec 17, 2012 · 0 comments
Closed

Eliminare mesaje harcodate in controllere. #8

aburghelea opened this issue Dec 17, 2012 · 0 comments

Comments

@aburghelea
Copy link
Owner

In controlere exista apeluri de genul

message(code: 'order.delivered.message', args: [params.orderId])

trebuie sa verifici ca in messages.properties exista o linkie care are inainte de egal
codul cal specificat in apelul de functie.
Daca apulul lui message are si args aia sunt marcati ca {0}, {1} in mesajul din messages.properties.

Exemplu de mai jos ar fi in bundle in felul urmator:

order.delivered.message = The order with the id {0} was delivered.

In cazul in care nu exista o astfel de cheie in messages.properties trebuie introdusa.
Alege mesaje cat mai sugestive te rog.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants