AL icon indicating copy to clipboard operation
AL copied to clipboard

The multilanguage syntax is being deprecated. Please update to the new syntax.

Open srinivasdes opened this issue 8 years ago • 6 comments

Hello,

Facing this warning with CaptionML property and TextConstants.

Warning : The multilanguage syntax is being deprecated. Please update to the new syntax.

Existing Syntax :

CaptionML=ENU= 'Mail Templates',ESM='&Plantillas correo', FRC='&Modèles de courriel', ENC='&Mail Templates';

Text001 : TextConst ENU='Item No %1 does not exists.';

Can anyone please help me to fix this.

Thanks.

srinivasdes avatar Mar 02 '18 12:03 srinivasdes

Translations are now stored in xliff files, so there are no ML properties anymore. Use Caption and Label and activate the xliff function in your app.json Look at this example: GetAddressService

Gallimathias avatar Mar 02 '18 12:03 Gallimathias

Hi Gallimathias,

Thanks for you r reply.

I didn't get the activate the Xliff function in our app.json

Can you explain bit more

Thanks

srinivasdes avatar Mar 02 '18 12:03 srinivasdes

After you have created a project, you have to add the following in your app.json in your workfolder:

"features": "TranslationFile",

After you build your app, a standard xliff file will be created automatically. It already contains all your standard translations as source.

For each language you now make a copy of this file in this automatically created folder. Name them after the language and insert your translation.

The final result should look like the example above.

Gallimathias avatar Mar 02 '18 13:03 Gallimathias

Here's a link about that: https://docs.microsoft.com/en-gb/dynamics-nav/developer/devenv-work-with-translation-files

Use Label to replace text constants

TheDenSter avatar Mar 02 '18 18:03 TheDenSter

Hi @srinivasdes . This warning only appears if you have the compiler feature for translating turned on. By having it on you are signalling that you are moving to the label syntax so we warn you where you have used the deprecated syntax

image

If you remove the value from app.json you will stop seeing the error but we encourage you to rather update your code

doivosevic avatar Mar 05 '18 10:03 doivosevic

@srinivasdes I hope that we have resolved your issues. If you have more questions please open a new issue

doivosevic avatar Mar 12 '18 13:03 doivosevic