How to change text and translation on the website?

Basic phrases on the website

Introduction

The most part of the regular phrases and texts on site are placed with using I18n system. This system provides an opportunity to display the phrases in the correct translation based on the selected website language. We keep original phrases in files and use them as keys. The values for each key are stored in I18n xml formatted files.  

Use cases

I18n system helps for translating the keys into different languages. However, it helps for modifying the phrases for English phrases as well. For example it is possible to change word performer → model , credits tokens, etc. You don't have to look up all the words appearing in files, thus you could simply modify all phrases in I18n-english.xml file. All the language xml files are located in the template folder e.g. httpdocs/templates/default_flat/english/I18n-russian.xml

How to modify the I18n files? 

  1. Follow the folder of your template files, e.g. httpdocs/templates/default_flat/english/

  2. Select the language file you would like to adjust, e.g. I18n-english.xml. 

  3. Find the phrases you would like to change

    Phrase example

    <key>Registration complete</key> <value>Registration finished</value>



  4. Modify the value part inside <value>Registration finished</value>

Performer categories

To translate Performer categories just switch admin interface to target language and put translated values directly in Admin -> Manage Categories