How to Localize Custom Menu in CCP?
Original Publishing Date:
2020-01-22
Question
Provider created a custom menu with their own 'Caption localization key'. Is there a way to localize the custom menu?
Answer
Provider should create a new xml file, name it for example custom_menu.xml and populate it with below example data:
--------------------------------
<locale code="en_US">
<section>
<name>Common-PatternBundle.properties</name>
<data>
<entry>
<keyword>ADDONS</keyword>
<phrase>Addon Title</phrase>
</entry>
<entry>
<keyword>ADDONS.DESCRIPTION</keyword>
<phrase>Addon Description</phrase>
</entry>
<entry>
<keyword>ADDONS.BASEKIT</keyword>
<phrase>Addon Basekit</phrase>
</entry>
<entry>
<keyword>ADDONS.BASEKIT.DESCRIPTION</keyword>
<phrase>Addon Basekit Description</phrase>
</entry>
<entry>
<keyword>ADDONS.VYPRVPN</keyword>
<phrase>Addon VYPRVPN</phrase>
</entry>
<entry>
<keyword>ADDONS.VYPRVPN.DESCRIPTION</keyword>
<phrase>Addon VYPRVPN Description</phrase>
</entry>
</data>
</section>
- remember to use already configured Caption localization key in custom menu for the keyword lines
After that, the file should be uploaded to Customized Locale Files in POA.
Internal content