Skip to content

Multilingual Support

Herodotus is fully compatible with multilingual WordPress setups.

WPML

The plugin includes a wpml-config.xml file that automatically configures WPML to:

  • Translate the herodotus_post Custom Post Type
  • Translate the herodotus_category taxonomy
  • Copy/translate the date meta fields (_herodotus_day, _herodotus_month, _herodotus_year)

No manual WPML configuration is needed.

How It Works with WPML

  1. Create events in your default language.
  2. Use WPML's translation editor to create translated versions.
  3. The date meta fields are automatically copied to translations.
  4. Each language version is cached separately.

Polylang

Polylang works automatically because Herodotus registers its CPT and taxonomy using standard WordPress hooks that Polylang detects.

  1. After activating Herodotus, go to Languages → Settings in Polylang.
  2. Under Custom Post Types and Taxonomies, ensure herodotus_post and herodotus_category are enabled.
  3. Create events and assign languages as you normally would.

Included Translations

The plugin ships with translations for:

Language Locale Completeness
Georgian ka_GE 100%
Russian ru_RU 100%
Ukrainian uk 100%
French fr_FR 100%
German de_DE 100%
Spanish es_ES 100%
Italian it_IT 100%
Turkish tr_TR 100%

Contributing Translations

You can contribute translations via the WordPress.org GlotPress translation system.

  1. Go to the Herodotus translation project on GlotPress.
  2. Select your language.
  3. Suggest translations for untranslated strings.
  4. Once approved, they'll be included in future releases.

Text Domain

The plugin uses the text domain: herodotus

All translatable strings use standard WordPress i18n functions: - __('string', 'herodotus') - _e('string', 'herodotus') - esc_html__('string', 'herodotus')