Automatically adding missing property names to PropertyNames.xml

PLACE FOR BLOG

Automatically adding missing property names to PropertyNames.xml

Automatically adding missing property names to PropertyNames.xml

marija

When a PageData or a CatalogContentBase have too many properties, I just didn't feel like translating them manually. So, I've build a very simple PropertyNames.xml appender that adds properties that haven't already been translated.

So these three really simple classes do the following:

The appender appends the property name from:

          public virtual string AccessoryArticleNumber { get; set; }

to:

          <accessoryarticlenumber>
            <caption>Accessory Article Number</caption>
          </accessoryarticlenumber>

I didn't want to make this an add-on, since with very small code modifications, one can make sure it suits their needs better.

Comments

no avatar

Johan (not verified) SAYS:

Mar 05, 2018 at 01.24 pm

This is interesting and this could be useful to us to have while developing. Thanks for sharing!

LEAVE A COMMENT