MB-820 · Question #18
A company uses Business Central. The company plans to use a translation file in an extension. The extension has a caption that should not be translated. You need to prevent the caption from being…
The correct answer is C. Add the Locked = true parameter to the Caption. To prevent a caption from being translated in an extension for Microsoft Dynamics 365 Business Central, you should add the Locked = true parameter to the Caption (C). This parameter explicitly marks the caption as locked for translation, ensuring that it remains unchanged…
Question
A company uses Business Central. The company plans to use a translation file in an extension. The extension has a caption that should not be translated. You need to prevent the caption from being translated. What should you do?
Options
- AUse the CaptionML property and copy the same caption for each language used.
- BSet the GenerateLockedTranslations feature in the app.json file.
- CAdd the Locked = true parameter to the Caption.
- DDelete the Caption property.
- ECopy the same caption for each language in the translation file.
How the community answered
(50 responses)- B4% (2)
- C94% (47)
- D2% (1)
Explanation
To prevent a caption from being translated in an extension for Microsoft Dynamics 365 Business Central, you should add the Locked = true parameter to the Caption (C). This parameter explicitly marks the caption as locked for translation, ensuring that it remains unchanged across different language versions of the extension. This approach is useful for specific terms, brand names, or other elements within the application that should remain consistent regardless of the user's language settings. Unlike the other options, which involve manual manipulation of the translation file or properties, setting Locked = true directly in the AL code provides a clear, maintainable, and error-proof method to exclude specific captions from the translation process.
Topics
Community Discussion
No community discussion yet for this question.