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.
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.pofile and a compiled.mofile.Name the files for the locale
The text domain is
davo, so the files are named likedavo-de_DE.poanddavo-de_DE.mo, using your WordPress locale code.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 alanguagesfolder of its own, which is where the English files live.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 withwp i18n make-json. Put them in the same folder as the.mofile.Do the same for the Davo Engine plugin
The plugin uses the text domain
davo-engineand loads translations from its ownlanguagesfolder, including for its admin scripts. The source we checked does not include a translation template for the plugin, so create one withwp i18n make-poton the plugin folder, translate it, and placedavo-engine-de_DE.moinwp-content/languages/plugins/.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.
Where to go next
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