Skip to content
Menu
Jeremy Vyska
  • Now
  • Stuff
    • Timeline
    • Past Talks
    • Contact
  • Articles
Jeremy Vyska

Override Enum Captions via Extensions

Posted on 2022-07-22

I saw a Twitter thread asking how to do this:

Since I saw a few knowledgeable people answer with less-than-certain replies, me included, I wanted to do a quick clarification.

You can change Enum Captions from Base App using the same strategies as Localization. You make an extension, and in your Translation file, you copy the Translation you need from the Base App translations, then adjust.

For “How do I get the Base App Translations”, see here: https://navinsights.net/2020/11/13/how-to-get-translation-files-from-base-app/

From the Base App, I had to locate the “Enum Contact Type”, which in my en-US.xlf example, has this:

In my extension, I needed to make an xlf in my target language, which was also “en-US”, and then the key change is here in the file tag:

<file datatype=”xml” source-language=”en-US” target-language=”en-US” original=”Base Application“>

Change the “original” to “Base Application”.

Now you can copy/paste the trans-units for the two captions, make them anything you want (“Dragon” / “Whelpling”) just to be super obvious. Publish, and:

Tada!

Source code, what very little of it I needed, available here:

https://github.com/JeremyVyska/Example-EnumCaptionChange

Share this:

  • LinkedIn
  • Twitter
  • Email

Archives

  • December 2024
  • January 2023
  • December 2022
  • July 2022
  • June 2022
  • April 2022
  • November 2021
  • October 2021
  • August 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • November 2020
  • August 2018
  • June 2014
  • April 2014
  • September 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • December 2012
  • July 2012
  • June 2012
  • December 2011
  • April 2011

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Tags

365 Business Central ActionPane api AppSource ARG ASPCA book Congress customs Extensions Facebook goodreads Govtrack hiring HR Inventory last.fm Licensing Military Minecraft moving Newsletter Nifty Ideas Password Security sick social networking The Walking Dead True Blood UserCustomization Windows 8 Zombies

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2025 Jeremy Vyska | WordPress Theme by Superbthemes.com