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?
- A. Use the CaptionML property and copy the same caption for each language used.
- B. Set the GenerateLockedTranslations feature in the app.json file.
- C. Add the Locked = true parameter to the Caption. Correct
- D. Delete the Caption property.
- E. Copy the same caption for each language in the translation file.
Explanation
Adding Locked = true to the Caption label marks the text as one that must not be translated, and locked labels are left out of the generated XLIFF file by default. GenerateLockedTranslations does the opposite of what is needed: it makes the compiler generate translation units for locked labels. CaptionML values are not part of the XLIFF workflow, and copying the same text per language still leaves the caption translatable. Deleting the Caption property removes the caption rather than protecting it.