Skip to content
diyphpdeveloper edited this page Apr 12, 2019 · 1 revision

ADDING A NEW LANGUAGE

Creating multilingual sites with CMS Canvas is now easier than ever. Any content type field can have translations; including images and navigations. To add a new language to your site, login to the admin panel and go to "System => Languages". Here you can add a language by clicking the "Add Language" button. Enter the name of the language and its locale. If unsure a list of language locales can be found here: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes. For example Spanish's locale is "es".

TRANSLATING CONTENT

Once the new language is added go to a content type you would like to have content translated for and click "Fields" in the subnavigation. Select an existing field or add a new one and select "Yes" to Translate Field. Now when entering content in an entry of this conten type it will have the different languages available to enter content for.

The language tabs are also added to navigation items but are optional. The navigation item's title will be used if no translation is provided.

SUBDOMAIN SETUP

Finally, to view the translations when visiting your site you should create a subdomain using the locale of the new language. For example to view the Spanish translation of the site you would visit http://es.mydomain.com.

Clone this wiki locally