New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I18N of caption and messages #23
Comments
Which buttons? For the ones in the main layout, you can set the captions by getting the button. For example: crud.getFindAllButton().setCaption("Update the list"); For the ones in the forms, you can use the formFactory.setButtonCaption(CrudOperation.ADD, "Add new user"); Error handling can be custumized with |
Hi Yes, for the buttons of the form you're right. The buttons of the crud aren't reachable througt Crud interface, they are only available on the GridCrud implementation. I think that could be very useful if the setFieldCaption and setButtonCaption for form and crud are place in the main interface or in the abstract implementation. There are other messages that not support i18n, for example: GridCrud.rowCountCaption, the buttons and label in EditableGridCrud.deleteButtonClicked, .... bye |
Because Field captions, on the other hand, are common to all implementations because all forms by definition have input fields. But I'm open to continuing this discussion, feel free to challenge my point of view.
Same as before, a
|
Yes, can be useful to build form without button. What about a new interface CrudButtonFormFactory, that extends CrudFormFactory, to add better support to standard buttons caption (add, update, cancel). The implementation actually present can inplement this new interface. Usually in B2B applications there are hundreds of crud UI all with save button, .... |
Good point. I think there are currently some others flaws in the design. Let me have a look at it and then I'll post my findings here before implementing. |
How I can change DefaultCrudFormFactory caption |
With the |
@alejandro-du Not button caption |
In that case, use the |
Thanks! |
But how i can change it in real time?
Something like |
Just like you did with the reference of type |
|
Please, let's use the forum for questions instead of using issues which are intended to be identified bugs or feature requests. |
Closing this for now. If there's any text in the UI that cannot be changed via API, please open a new issue. |
The buttons caption need to support I18N, and also error messages.
I can help on this.
The text was updated successfully, but these errors were encountered: