Skip to content
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

label Localization for Delete Tool Fails in Sirius #519

Open
hoajie opened this issue Nov 28, 2024 · 0 comments
Open

label Localization for Delete Tool Fails in Sirius #519

hoajie opened this issue Nov 28, 2024 · 0 comments

Comments

@hoajie
Copy link

hoajie commented Nov 28, 2024

Description:

When trying to localize strings for various tools in Sirius, I encountered an issue with the delete tool. While I can successfully translate the label attribute for tools like the create tool and Diagram Creation (following the documentation from ), the localization of the label for the delete tool does not work as expected.

Steps to Reproduce:

In the .odesign file, define a delete tool with a label attribute set to a translated key:

Define the appropriate translations in the plugin.properties file:

properties
TreeElementItemDelete=Delete Tree Item
Switch the language to a different locale (e.g., French, Chinese, etc.).

Expected Behavior:

The label for the delete tool should be correctly localized, similar to other tools such as create.

Actual Behavior:

The label for the delete tool remains untranslated and is displayed as %TreeElementItemDelete instead of the expected translated value.

Additional Information:

I have verified that the translations for other tools (e.g., create, Diagram Creation) work as expected with the same localization setup.
The issue seems specific to the delete tool, which doesn't reflect the localized label.
I have followed the documentation and the correct steps to define the translations, but the delete tool doesn't adhere to the same localization behavior.
Environment:

Sirius version: [7.4.5]
Eclipse version: [2024-09 (4.33.0)]

Suggested Solution:

It would be helpful if there is additional guidance or a known workaround for making the delete tool's label localizable in the same way as other tools in Sirius. If this is a bug, it may need further investigation or a patch.

Snipaste_2024-11-27_17-41-48

Snipaste_2024-11-27_17-42-33

Snipaste_2024-11-28_10-45-08

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

No branches or pull requests

1 participant