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_postCustom Post Type - Translate the
herodotus_categorytaxonomy - Copy/translate the date meta fields
(
_herodotus_day,_herodotus_month,_herodotus_year)
No manual WPML configuration is needed.
How It Works with WPML¶
- Create events in your default language.
- Use WPML's translation editor to create translated versions.
- The date meta fields are automatically copied to translations.
- Each language version is cached separately.
Polylang¶
Polylang works automatically because Herodotus registers its CPT and taxonomy using standard WordPress hooks that Polylang detects.
- After activating Herodotus, go to Languages → Settings in Polylang.
- Under Custom Post Types and Taxonomies, ensure
herodotus_postandherodotus_categoryare enabled. - 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.
- Go to the Herodotus translation project on GlotPress.
- Select your language.
- Suggest translations for untranslated strings.
- 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')