1. Home
  2. Docs
  3. Varn – Theme Documentation
  4. Advanced Setup
  5. Translate The Theme

Translate The Theme

You can translate the theme to any language by using the files located at varn/languages folder:

Translating Varn with POEDIT:

  1. Open wp-config.php and replace this: define ('WPLANG', ''); with this (substitute the language string (bg_BG) with your own!): define ('WPLANG', 'bg_BG');
  2. Download and install POEDIT
  3. Connect to your site -> open your theme/languages directory
  4. Download the varn.pot file and open it with poedit.
  5. Translate file and save it as bg_BG (the file name must match with the string you inserted into wp-config.php)
  6. Two files will be generated after saving. bg_BG.pot and bg_BG.mo
  7. Upload the .mo and .pot files into wp-content/themes/your-theme/languages folder

Your WordPress installation should be in the language you intend on using the site.

Was this article helpful to you? Yes No

How can we help?