web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Xlf file from txt2al

(0) ShareShare
ReportReport
Posted on by 10

Hello

We are upgrading one vertical from BC14 to BC19 and we used txt2al to help us with the job. Now we trying to use generated portuguese xlf file on that process on a AL Project, with source files also generated in this transformation. I already added the lines:

"features": ["TranslationFile","GenerateCaptions"],
  "supportedLocales": ["pt-PT", "en-US"]
to app.json and this change created a folder Translations, with the file Project.g.xlf. I copied the xlf file generated from the txt2al execution to that folder and changed the name to Project.pt-PT.xlf.
However, after the publication of the extension, captions remain in english and not on portuguese. My user has language definitions on BC to portuguese. Also the standard and localized captions are in portuguese, because we loaded portuguese localization package.
If I create the Project.pt-PT.xlf. file based on the copy of Project.g.xlf and after that I add target lines, portuguese captions appear on the browser. I already checked that trans-unit ids that I'm testing are the same on both files. We have hundreds of translated terms and it will take a long time to create a PT xlf file based on Project.g.xlf with all the translations. 
What I'm doing wrong?
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    Please check the header of the XLIFF file (source language, target language).

  • Suggested answer
    YUN ZHU Profile Picture
    104,090 Super User 2026 Season 2 on at

    Hi, As Stefano mentioned, you need to confirm the Header information of the Xlf file.

    Below is the standard translation file from Microsoft.

    target-language is your target language, original is your app name.

    pastedimage1649722958853v1.png

    More details: https://yzhums.com/2684/

    Hope this will help.

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 677 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 430 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 280 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans