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

Tooltips on table field level are not displayed correctly #15

Closed
jthoerner-tso opened this issue Aug 22, 2024 · 4 comments
Closed

Tooltips on table field level are not displayed correctly #15

jthoerner-tso opened this issue Aug 22, 2024 · 4 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@jthoerner-tso
Copy link

jthoerner-tso commented Aug 22, 2024

Hi, small issue.
If you add a tooltip with translation to a table field in BC24, this translation is currently not displayed in the UI, i.e. on the page.

I have found out that the problem is caused by the attribute ‘original’, which contains the file name of the .g.xlf.

Currently this line is generated like this.
<file datatype="xml" source-language="en-US" target-language="de-CH" original="General">

However, it only works if the line is set up like this:
<file datatype="xml" source-language="en-US" target-language="de-CH" original="General.g.xlf">

The other translations still work as expected. Maybe this is also a bug in my BC24 version..

@DanielNT
Copy link
Owner

Hi @jthoerner-tso, thanks for reporting the issue.

I think that your issue may be related to your VS Code extension for translation (I suppose that is AL Translation Center), not AL Translation Snippets itself.

I created a new project, using AL Language extension for Microsoft Dynamics 365 Business Central v14.0.1108692 (pre-release), and last version of AL Translation Center (v2.6.2) with a table with one field that have a table tooltip.

The result was OK, as stated by the picture below, without the need of add "g.xlf":

image

I attach my test project below. Feel free to modify to replicate the issue.
General.zip

I suspected at first that the name "General" could be source of the issue (after seeing your modification), but at the moment, as I say, I need more information.
image

@jthoerner-tso
Copy link
Author

Hi Daniel,
yes, this topic actually belongs to the AL Translation Center .

Thank you for the project. I tested your demo project with the latest version of AL Translation Centre in a BC24.4 environment, and it works as expected even without “g.xlf”.

Thank you for the project. I have tested your demo project with the latest version of AL Translation Center in a BC24.4 environment, and it works as you say, even without “g.xlf”.

Interestingly, for fields that are created via table extension, the tooltips do not seem to work without the addition of “g.xlf”.

image

I have extended your project to reflect this behavior. Please also feel free to try out the extended project.
General2.zip

@DanielNT
Copy link
Owner

I'm going to transfer the issue to the right repository, for keeping a eye on it.

Maybe an AL Extension bug? microsoft/AL#7790 (comment)

@DanielNT DanielNT transferred this issue from DanielNT/ALTranslationSnippets Aug 26, 2024
@DanielNT DanielNT added bug Something isn't working question Further information is requested labels Aug 26, 2024
@DanielNT DanielNT self-assigned this Aug 26, 2024
@DanielNT
Copy link
Owner

As stated in microsoft/AL#7790 (comment) is technically fixed at server side for BC24/25, and probably the logic of object extensions will be modified in the future.

I am going to close the issue for now. Thanks for your feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants