Blueprint translations

Issue #6 new
Daan DE LANGE created an issue

Hello,
I have a multi-language website setup and tried to setup the blueprint, but it shows the language array instead of the translation; see image below. Using both latest kirby and retrotree.

# site.yml (excerpt)
sections:
  retrotree:
    headline:
      fr: Arborescence du site
      en: Site tree view

Changing index.php from return $headline; to return kirby()->multilang()&&is_array($headline)?I18n::translate($headline):$headline; fixes the issue, keeping compatibility with untranslated blueprint strings. (apply changes to other props too).

Comments (1)

  1. Log in to comment