3. Translating Theme

3. Translating Theme

Steps

Installing the localization plugin

  1. Go to: PLUGINS -> ADD NEW
  2. In the search field, type in Codestyling
  3. Look for the plugin called Codestyling Localization  and click on Install Now, then confirm by pressing OK
  4. After a successful installation, click on Activate Plugin

Managing the localization plugin

  1. Go to: TOOLS -> LOCALIZATION
  2. Scroll down to the Kinetico e-Commerce Theme section
  3. On the right, click on Add New Language
  4. Choose your desired language then click on create po-file
  5. You might want to delete the default language (which is English) by clicking the Delete button under Actions on the right of the language, then click on delete files
  6. Still under Actions, on the right of your new language, click on Rescan then press scan now
  7. When it’s done, click on finished

Editing translation

  1. Still on the Localization page, under Actions, next to your desired language, click on Edit
  2. A list of words and sentences from the theme will appear, showing their original language, to edit them, next to the one you want to start translating, under Actions, click on Edit
  3. In the text box at the bottom of the pop up, add the translation for the original text at the top, then click on Save or Save and Next to pass to the next one immediately or Save and Previous for the opposite
  4. When you’re done, do not close the page, go to your wp-config.php file, on the line where it says define(‘WPLANG’, ”); in the second quote, add the language of your translation, for example, if you are translating to Portuguese (Brasil), you’ll use pt_BR and the line will look like define(‘WPLANG’, ‘pt_BR’); . To know what your language code is, check there http://codex.wordpress.org/WordPress_in_Your_Language
  5. After entering your language code, save the wp-config.php file then go back to the localization edit page in your browser
  6. At the top, click on generate mo-file
  7. Check your website to enjoy your new translated Kinetico theme

Up next: 4. Adding Variable Product

Previous: 2. Using Layout Builder