How to Manage Translation Files (multilanguage) in Business Central 2019 release wave 2 (MSDYN365BC)

I have been writing many blogs on the new feature of 2019 Wave 2 release , so this is additional to previous blogs

Dynamics 365 Business Central is multilanguage enabled, which means that you can display the user interface (UI) in different languages. The next feature we will talk about is Translation. It has gone through a bit of change as the translation was used to be part of object definition till Dynamics NAV 2018 when we import a new language layer which used to make changes in the objects automatically.

In Microsoft Dynamics 365 Business Central the translations are taken out of the object definitions completely and we have to create the Translation file which is separated from the object files

Let’s get into more details.

New Label Syntax in Dynamics 365 Business Central

The New Translation process has been separated from the object definition and can be extracted into an external file that can then be translated for multiple languages.

Instead of multi-language syntax Dynamics 365 Business Central has new label syntax which is shown in below screenshot.

Label in MSDYN365BC

Text is no longer text constant and its called Label. So now we have to define Text001 is the name of the Label. Translation Text is the value of that Label and we have additional attributes like the comment MaxLength and Locked.The same Syntax applies for captions and labels.

Generate Standard Format translation file (XLIFF) in Dynamics 365 Business Central

In this we generate a Standard format translation file i.e XLIFF which build the package inside the VS Code and that generated standard format translation file is regenerated every single time the package is built so that file is not to be used for the actual translation but it’s more intended to be the template upon which the real translation file is built upon.

Translation file can be combined with the extensions to support multilanguage, so you can have multiple XLIFF files for multiple languages. So if you want to publish the extension in German then you have to create a translation file for German to be able to be accepted for that market.

In order to enable the transalation you have to set the feature for the translation file which is shown in the screenshot.

“features”: [“TranslationFile”,”GenerateCaptions”]

Add this in app.json and press Ctrl + Shift + B which will invoke the package command and generate the new package to get the XLIFF file or press F5 which will regenerate the package.

In the above Screen shot there is file name BC150TEST.g.xlf is generated. The part g.xlf stands for generated translation file

In the next blog i will explain how to use XLIFF file in external tool to translate and i will show you the external tool as well.

To get new updates and learn about Microsoft Dynamics 365 Business Central Microsoft Learn

One thought on “How to Manage Translation Files (multilanguage) in Business Central 2019 release wave 2 (MSDYN365BC)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s