Best Practices for Building Multilingual Website Using the New Kentico-Xperience Platform – Part 1
This is the first of a two part blog series about website localization using the new Xperience (Kentico) platform. In this blog, I will cover some of the aspects you need to consider when preparing your content for localization. In my second blog in the series, I will cover topics related to using the export/import features within the Xperience platform.
Enabling cultures for your Xperience website
One of the first things you need to do in the Xperience platform is to enable the “Cultures” you want your website localized for. This is also known as “locales” in some other website content management systems or platforms. This will allow you to localize (translate) your website into different languages.
To enable “Cultures” follow these steps:
- Open Configuration > Sites.
- Edit your site by clicking on the pencil icon.
- Click on Cultures.
- Click on Add cultures.
- Check all the cultures you need and finally click on Select.
- This will return you back to the Cultures tab and will show all the Cultures enabled for your website. For example, if I want to localize my English (US) website into Spanish (Spain), it will look like the following:
English (US) culture is the default, but you can change this by clicking on the General tab and changing the Default content culture field:
Define fields that require translation
Xperience Platform allows you to specify which fields can be localized. In other words, you can define clearly what you want to be localized and what you do not want. This process can take time, but it is especially important because it ensures you avoid having a translation service to translate extra content that is not needed. Also, this helps a lot to mitigate issues related to fields that have values that need to remain in English, or simply that correspond to content that does not require translation (like image URLs or size parameters).
To define which fields require translation, you have to follow the next steps:
- Open Development > Page types.
- Edit a given page type by clicking on the pencil icon.
- Click on Fields item on the left side menu.
- Click on the field that you need to change.
- Under the General section, check/uncheck the Translate field checkbox, depending if you need that field to allow translation or not.
- Finally click on the Save.
Conclusion
In this first part, we covered the main steps you need to set up your website before starting any localization project. In my next blog, I will cover how to export/import content using manual translation and translation services.