Skip to content

Translating

Ready to translate. Here is how.

Davo is built so every label can be translated, and it ships in English. Add your language in six steps, without touching the theme files.

What to expect

What is covered, and what is not.

  • The Davo theme declares itself translation-ready and right-to-left ready in its header tags, and it loads its translations through WordPress in the normal way.
  • No translated languages are included yet. You get the English template and files, and you add the rest.
  • Text you write yourself, such as articles, FAQs and videos, is in whatever language you write it. For a site in several languages, Davo works with Polylang, WPML and TranslatePress: it adds a language switcher, keeps search, lists and caches in the reader’s language and points untranslated pages at one canonical. The Polylang adapter was checked against Polylang’s source. The WPML and TranslatePress adapters were written from their public documentation and have not yet been run against those plugins, so test them on a staging site first. Davo does not translate your content for you.
  • Right-to-left: the theme declares support and the admin app knows when the site is right-to-left. Check your own pages in your language before launch. See also Accessibility.

The steps

Add your language.

  1. Start from the translation template

    The theme ships languages/davo.pot, a template with every translatable string (758 at the time of writing). Open it in a gettext editor such as Poedit, or in a WordPress translation plugin such as Loco Translate, and create a new translation for your language. Saving produces a .po file and a compiled .mo file.

  2. Name the files for the locale

    The text domain is davo, so the files are named like davo-de_DE.po and davo-de_DE.mo, using your WordPress locale code.

  3. Put them where updates will not erase them

    Place the files in wp-content/languages/themes/. That folder belongs to your site, not to the theme, so a theme update leaves it alone. The theme also ships a languages folder of its own, which is where the English files live.

  4. Translate the interface scripts

    Some text lives in JavaScript. The theme loads translations for its front-end, admin and setup-wizard scripts from small JSON files (the shipped ones are named like davo-en_US-<hash>.json). WP-CLI can generate these for your locale with wp i18n make-json. Put them in the same folder as the .mo file.

  5. Do the same for the Davo Engine plugin

    The plugin uses the text domain davo-engine and loads translations from its own languages folder, including for its admin scripts. The source we checked does not include a translation template for the plugin, so create one with wp i18n make-pot on the plugin folder, translate it, and place davo-engine-de_DE.mo in wp-content/languages/plugins/.

  6. Switch the site language

    In WordPress, open Settings, then General, and choose your Site Language. Reload a Davo page to check it.

Note. File names and folders follow standard WordPress translation rules, so any WordPress translation guide applies. If you plan to sell or share a finished translation, check the licence on the marketplace listing first.

Next

Keep going.

Back to the getting started path, or check requirements and the FAQ.

See it on your own site.

Davo is a WordPress theme and plugin by Exorex.

  • Runs on your own WordPress
  • Guided setup wizard
  • AI is off until you switch it on
  • Read the licence on the marketplace first