Skip to content

Create an entity - The translation function is not call on the buttons label #1227

Closed
@VincentMarmiesse

Description

@VincentMarmiesse

Describe the bug (*)

When I use the plugin to create a new entity, the translation function (__()) is not called on the buttons label (back, delete and save).

To Reproduce (*)

Steps to reproduce the behavior:

  1. Create a new entity using this plugin
  2. Change the current admin language to another language than english
  3. Create a translation in i18n folder for Save, Delete and Back to grid
  4. The translation is not used and the buttons labels are displayed in english

Expected behavior (*)

The buttons labels should be translated.

Screenshots

In a button class, we can see the translation function is not called:

Or maybe the GenericButton class should called it in the wrapButtonSettings function.

Please complete the following information: (*)

  • OS: Fedora 36
  • PhpStorm/Intellij version: 2022.2.1
  • Plugin Version: 4.4.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions