Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Language Change in Customized Report in Business Central

(0) ShareShare
ReportReport
Posted on by 137

Hi Members,

Please do help me to change the language in the Custom Report (Sales and Purchase order ) where I need the labels to be printed in Japanese. Please guide me with the steps to change the language of the report.

Thanks and Regards,

Lakshmanan

  • Shravani Kunduru Profile Picture
    6 on at
    Language Change in Customized Report in Business Central
    Hi YUN ZHU  
     
    I followed the same procedure for translating the label into Spanish (es-ES). Here’s what I did:
    1. Added `"features": [ "TranslationFile" ]` in the app.json file of my extension.
    2. Built and published the extension, which generated an XLIFF file.
    3. Copied the XLIFF file and renamed it in the Translations folder.
    4. Modified the target-language to es-ES.
    5. In the report object, I added the code `CurrReport.Language := LanguageMgt.GetLanguageIdOrDefault("Language Code");` in the OnAfterGetRecord() trigger.
    However, I still can't see the changes reflected in the Report Layout. Am I missing something, or why are the translation changes not appearing in my package?
  • Lakshmanan.R Profile Picture
    137 on at
    RE: Language Change in Customized Report in Business Central

    Dear Mahesh U,

         Thank you for your reponse. Let me check and update you regarding this.

    Thanks and Regards,

    Lakshmanan R

  • Suggested answer
    Lakshmanan.R Profile Picture
    137 on at
    RE: Language Change in Customized Report in Business Central

    Dear ZHU,

            Thank you for your response. Following your Blog, I had successfully completed the translation in Business Central.

    Thanks and Regards,

    Lakshmanan R

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,021 Moderator on at
    RE: Language Change in Customized Report in Business Central

    Just to add to the other replies here.

    This tool is great for working with translations in AL

    github.com/.../README.md

  • Suggested answer
    YUN ZHU Profile Picture
    81,415 Super User 2025 Season 1 on at
    RE: Language Change in Customized Report in Business Central

    Hi, I agree with Mahesh, This seems to be a problem with your xlf file.

    Please delete the original translation file, regenerate and try again.

    I think you may have modified the report object, which caused some ids to change when regenerating the translation file.

    pastedimage1658379835438v1.png

    I did a test.

    Copy standard report.

    pastedimage1658380311628v2.png

    Add "features": ["TranslationFile"], to app.json and package.

    pastedimage1658380359751v3.png

    pastedimage1658380401006v4.png

    Copy it into a new file, then modify the Target language. For example, ja-JP

    pastedimage1658380441143v5.png

    Translate some contents

    pastedimage1658380848976v9.png

    Change language to Japanese.

    pastedimage1658380714391v7.png

    Note: For some field use the standard FieldCaption method, you need to translate that table first.

    pastedimage1658380819105v8.png

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Mahesh U Profile Picture
    425 on at
    RE: Language Change in Customized Report in Business Central

    Hi Laxmana,

    Do you have the Xliff translated file for Japanees language. If yes, what about the other captions in your custom extension. If nothing is translated from the custom extension then there is a issue in your xliff file. I would suggest to compare both(japaness and english) translation files and see if any syntax error exist. If there is any syntax missing then whole translation file will not work. Please let me know if it helps. Thanks!

    Regards,

    Mahesh U.

  • Lakshmanan.R Profile Picture
    137 on at
    RE: Language Change in Customized Report in Business Central

    Dear ZHU,

    I would like to make it even more clear that the custom report ( Sales Order / Purchase Order) which I made could not be translated in to Japanese language. Even in the role center, few fields remain in English even after the language is translated to Japanese. Also, even in the report the labels had not changed, i.e report still gets printed in English. Please suggest me an alternative solution so that the report gets printed in Japanese language.

    Thanks and Regards

    Lakshmanan R

  • Verified answer
    YUN ZHU Profile Picture
    81,415 Super User 2025 Season 1 on at
    RE: Language Change in Customized Report in Business Central

    Hi, hope the following helps.

    https://yzhums.com/2684/

    But there is a precondition. Your labels must be added to the Report as variables. If they are directly appended to the Layout, they cannot be translated.

    For example, 

    pastedimage1658367048956v1.png

    Hope this helps.

    Thanks.

    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,125 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans