Try our conversational search powered by Generative AI!

Localization of custom IContent types

Vote:
 

Hi!

What is the correct way to localize custom IContent names and descriptions? Can't find full description of localization file structure anywhere.

For example, you can localize PageType and BlockType names and descriptions like this

<?xml version="1.0" encoding="utf-8" ?>
<languages>
  <language name="Suomi" id="FI">
    <pagetypes>
      <pagetype name="FooPage">
        <name>FooFoo</name>
        <description>Foo description</description>
      </pagetype>
    </pagetypes>
    <blocktypes>
      <blocktype name="BarBlock">
        <name>BarBar</name>
        <description>Bar description</description>
      </blocktype>
    </blocktypes>
</languages>

 

#68320
Mar 20, 2013 9:10
Vote:
 

It should be (in XPath format) "/contenttypes/contenttype[@name='{0}']/description" and "/contenttypes/contenttype[@name='{0}']/name". These are defined as NameLocalizationFormat and DescriptionLocalizationFormat on ContentType.cs

#68348
Mar 20, 2013 14:00
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.