fix: add message parameters to create/update success messages that were missing authored by Vítor E. Silva Souza's avatar Vítor E. Silva Souza
...@@ -1043,12 +1043,12 @@ manageWorkshops.field.year = Year ...@@ -1043,12 +1043,12 @@ manageWorkshops.field.year = Year
manageWorkshops.title = Manage Workshops manageWorkshops.title = Manage Workshops
manageWorkshops.title.description = Create, retrieve, update and delete data about workshops. manageWorkshops.title.description = Create, retrieve, update and delete data about workshops.
manageWorkshops.title.detail = Workshop Details manageWorkshops.title.detail = Workshop Details
manageWorkshops.text.createSucceeded = Workshop created: manageWorkshops.text.createSucceeded = Workshop created: {0}
manageWorkshops.text.deleteConfirmation = Delete the selected workshops? manageWorkshops.text.deleteConfirmation = Delete the selected workshops?
manageWorkshops.text.deleteSucceeded = Successfully deleted {0,choice,0#no workshops|1#one workshop|1<{0,number,integer} workshops} manageWorkshops.text.deleteSucceeded = Successfully deleted {0,choice,0#no workshops|1#one workshop|1<{0,number,integer} workshops}
manageWorkshops.text.emptyMessage = There are no Workshops in the system. Click New to create the first one! manageWorkshops.text.emptyMessage = There are no Workshops in the system. Click New to create the first one!
manageWorkshops.text.entities = Workshops manageWorkshops.text.entities = Workshops
manageWorkshops.text.updateSucceeded = Workshop updated: manageWorkshops.text.updateSucceeded = Workshop updated: {0}
``` ```
Other than providing the messages in the bundle, we need to tell JSF that this bundle exists and we would like to call it `msgsCore`. Hence, add to `src/main/webapp/WEB-INF/faces-config.xml` the following configuration (next to the other resource bundle configuration already there): Other than providing the messages in the bundle, we need to tell JSF that this bundle exists and we would like to call it `msgsCore`. Hence, add to `src/main/webapp/WEB-INF/faces-config.xml` the following configuration (next to the other resource bundle configuration already there):
... ...
......