Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Translating a custom report to a new language

(0) ShareShare
ReportReport
Posted on by 25

Hi all

We are currently having some difficulty translating a custom report we made in Business Central to our native language (Afrikaans) which is not a default language with Microsoft.

We created a translation (xlf) file for Afrikaans using the file that was automatically generated saved it separately. We added Afrikaans as a language to business central and called the language using the code :

CurrReport.Language := Language.GetLanguageId(LanguageCode);
Where
 Language: codeunit Language
 LanguageCode := the code for the Afrikaans language (1078 if I remember correctly)
The code was called in the OnAfterGetRecord trigger.
 
At this stage I dont understand how the system know what translation file to call based on the language set. Is there a connection I should have made that I missed?
Any help would be greatly appreciated
  • Shravani Kunduru Profile Picture
    6 on at
    Translating a custom report to a new language
    Hi 
    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?
  • Ralf Pi Profile Picture
    29 on at
    RE: Translating a custom report to a new language

    To translate a custom report to a new language in Dynamics 365 Business Central, you can follow these steps:

    1. Open the custom report that you want to translate in Visual Studio Code.
    2. Navigate to the report's properties by right-clicking on the report file and selecting "Properties".
    3. In the report properties, select the "Translations" tab.
    4. Click on the "New" button to create a new translation.
    5. Select the language that you want to translate the report into.
    6. Translate the report elements, such as captions and labels, by clicking on each element and entering the translated text in the "Translated Text" field.
    7. Save the translation and close the properties window.
    8. Publish the report with the translated text by building and deploying the extension that contains the report.
    9. Once the extension is deployed, change the user's language in Business Central to the new language to view the translated report.

    Technology solutions for business can greatly simplify the process of translating reports in Dynamics 365 Business Central. By using Visual Studio Code and the translation feature built into the platform, businesses can quickly and easily translate custom reports into multiple languages, allowing them to better serve their global customer base. With the ability to translate report elements such as captions and labels, businesses can provide a more localized experience for their users, ultimately leading to increased satisfaction and engagement. Additionally, by automating the translation process through technology solutions for business, companies can save time and resources that would otherwise be spent on manual translation efforts.

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Translating a custom report to a new language

    Thank you for sharing workaround. It may help others, so it is highly appreciated.

  • Verified answer
    Vincent Wilson Profile Picture
    25 on at
    RE: Translating a custom report to a new language

    Hi Marco,

    Thank you for replying. We managed to "bypass" our problem by adding a translation file for English(Canada) and just adding the translated terms for Afrikaans to that file. Now when we switch the system to English(Canada) it is actually in Afrikaans.

    This way we did not have to struggle with adding a language that was not supported.

    Thanks again.

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Translating a custom report to a new language

    Hello,

    This may help:

    docs.microsoft.com/.../devenv-work-with-translation-files

    Hopefully other partners that have done this before can contribute here. Typically these questions do not end up with CSS.

    Thanks.

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 Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
YUN ZHU Profile Picture

YUN ZHU 374 Super User 2025 Season 1

#2
Sagar Dangar, MCP Profile Picture

Sagar Dangar, MCP 249

#3
Mansi Soni Profile Picture

Mansi Soni 247

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans