This post is especially interesting for the people whose native language is not English. Do you know the feeling? You are looking at the source code of some .al object and you come across a field name that means absolutely nothing to you. It would be helpful for you if you could see the translation of this field name into your native language. Often this is already sufficient. In the old C/SIDE client we had the field “Caption” in the table designer to see the translation.
To bring the functionality back to you a bit, I added 2 new commands to my Visual Studio Code Extension AL Navigator 2 years ago:
- AL Navigator: Show Microsoft Translation (English -> Target Language)
- AL Navigator: Show Microsoft Translation (Target Language-> English)
With the version 0.5.1 of the AL Navigator, I take this a step further and enable users to see the translations when hovering over table fields like shown below.
It is not only possible to translate field names with these commands. In principle, you can translate any term that is contained in the Microsoft Dynamics Base app and for which a translation exists in the translation files.
Of course, the target language can be changed by the user. To do this, open your settings in Visual Studio Code (Ctrl + ,).
By default, the translation on hover is disabled. You can enable it in the settings by checking off “Enable Hover Providers”.
Select the “Translation Target Language” and you’re good to go. The setting “Max. No. Of Shown Translations” specifies how many translations should be shown when there is more than 1 possible translation.
I hope this helps you. Have fun with it.