Blueprint translations
Issue #6
new
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)
-
reporter - Log in to comment
Hey,
I’ve implemented the change described above in my fork. PRs seem disabled but feel free to merge.
There’s also some extra improvements, including a new page-actions menu and vuejs error supression, see commit messages for details.