Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

How to translate a text constant in Nav

Posted on by Microsoft Employee

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?

*This post is locked for comments

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: How to translate a text constant in Nav

    As you mentioned, we can do it only using variable and not possible via text constant.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to translate a text constant in Nav

    Hi Mohana,

    thanks for your quick answer: I know that functionality. However, I want to make a table where users can just go and maintain their language code, text in english, and the text in their language. The report then just run and translate the text to expected language.

    We can do it for variables as we can change the value of variables; but for text constant we cannot change the value in run time. so I seek for your help.

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: How to translate a text constant in Nav

    Hey Hugto,

    In the Text Constant ConstValue you will find a assist trigger to select for the language you want. There you can define for any of the language.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to translate a text constant in Nav

    You can go to that particular variable (Global or Local) > Select that variable > Click Properties (Shift + F4) > Use AssitEdit Button for ConstValueML Property.

    Add you preferred language and related Value.

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: How to translate a text constant in Nav

    In addition to previously mentioned, this might be also interesting to you: nav-magno.be/.../hidden-feature-comments-in-ml-properties

  • navStuttgarter Profile Picture
    navStuttgarter 474 on at
    RE: How to translate a text constant in Nav

    TranslationConstant.png

    Is this what you are looking for

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: How to translate a text constant in Nav

    You can enter text constant in multiple language.

    go to text constant and press F6 on ConsValue.

    Here it will allow us to enter in multiple languages.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans