Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

How to translate a text constant in Nav

(1) ShareShare
ReportReport
Posted on by

Hello Team,

 

I need your quick help to show me how I could do translation for a text constant; step by step is appreciated.

 

Now, I can create a translation by myself in C/AL code; but it works well for variable because I can edit/assign new value to it. However, for a text constant, I cannot assign a new value to it.

 

Can you suggest how I can change the value for a text constant  or step by step I can translate a text constant for a language to another language?

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 76,149 Super User 2024 Season 2 on at
    How to translate a text constant in Nav
    Hi, it looks the same as the question below, and the text of the question is exactly the same. . .
     
     
    Thanks.
    ZHU
  • Suggested answer
    KasparsSemjonovs Profile Picture
    KasparsSemjonovs 4,032 Super User 2024 Season 2 on at
    How to translate a text constant in Nav
    Check how Item translations or Unit of Measure translations are created. You can do it the same way - that there is a separate table where You provide primary key of Code and Language code and the translation in this language, then wherever You fill in the name field for this Code, you check the language code and take the correct text. 

    Otherwise if it is a caption for a field, You can provide the translation in C/Al code directly for the field, and on reports just provide the language code, so that the caption of the field is printed out in correct language.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,885 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans