YOOtheme Pro is here! The best WordPress and Joomla theme. Learn more

Languages

This chapter shows you how to translate a Warp based theme.

There are already a lot of different languages available for Warp. If you want to contribute to our language pack, fork it at GitHub and send us a pull request. Any contribution is much appreciated. Thank you!

Create language files for Joomla

  1. Go to the directory /warp/systems/joomla/language and copy an existing directory, for example /en-GB.
  2. Rename it (for example for Russian: /ru-RU).
  3. Do the same with the .ini files in the directory.
  4. Now you only need to translate the content of xx-XX.tpl_warp.ini to your language.

For further instructions, please take a look a the Specification of language files in Joomla tutorial.

Here is a short example of how the translatable language strings are used in Joomla templates. TPL_WARP_EXAMPLE is the language variable.

JText::_('TPL_WARP_EXAMPLE')

Create language files for WordPress

  1. Go to the directory /language and copy an existing directory, for example /en-GB.
  2. Rename it (for example for Russian: /ru-RU).
  3. Now you can translate the .po file and any strings located inside it to your language using Poedit and compile it to xx_XX.mo.

For further instructions, please take a look a the Translating WordPress tutorial.

Here is a short example of how the translatable language strings are used in WordPress themes. Example text is the string and warp is the text domain.

('Example text', 'warp')

Using Warp Themes with WPML in WordPress

All Warp themes are fully compatible with WPML. Here's a step-by-step guide of how to translate widgets with WPML.

  1. Install and activate Widget Logic.
  2. Add copies of the widgets you want to translate.
  3. Go to Appearance > Widgets and successively select every translated widget and add the required code.
ICL_LANGUAGE_CODE == 'en'

You can find the language code of your desired language in WPML > Languages > Edit Languages.
Visit the WPML documentation for detailed information.

Documentation on Github

Help us out! If you are feeling that our documentation has errors or can be improved, fork it at Github and send us a pull request. Any contribution is much appreciated. Thank you!