flokosiol / kirby-translations

Translations field for Kirby 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid section type "translations"

MaluNoPeleke opened this issue · comments

I followed the readme and included the section "translations" into my blueprint but it shows an error message. I am using Kirby 3.6 and version 1.0.1 of this plugin.
Why is that and how can I fix it?

image
image

Could you please check, if your folder structure looks like this?

site/plugins/translations/

Depending on how you installed the plugin, the folder has to be renamed.

Your blueprint setup looks fine to me.

It looks exactly like that and I installed it via composer.
I can also see it on the System page in the panel listed.

Mmmh, alright. Unfortunately, this is almost impossible to debug from the outside. I re-checked it with a fresh Starterkit and the latest translations version 1.0.1 and everything works fine for me.

Have you tried to use the translations section in a reduced blueprint? Does the error still occur, when you add the following blueprint to your site/blueprints/pages/ folder?

title: Translations Test
icon: 🏳️‍🌈

columns:
  - width: 2/3
    fields:
      info:
        label: Info
        type: info
        text: This is just a test
  - width: 1/3
    sections:
      translations:
        type: translations

For me the result looks like this:

translations-test-blueprint

After updating Kirby to 3.6.1 it works now for me even with my own blueprint but it shows always like this, no matter if a second language is created (=blueprintname.en.txt exists) or not:
image

I think you already recognized that @Daandelange will take over this plugin in the near future. As far as I can see he changed a few things under the hood … maybe this issues is already fixed with the new code base.

https://github.com/Daandelange/k3-translations

Thanks for your patience and thanks for using the plugin! ❤️

Thanks, I tried to switch but @Daandelange hasn't published it on packagist yet so I will wait for that and then check it out.

Hey, thanks for your interest, I've pushed a first version to packagist. ;)
Note: The php side remains almost identical, but lots of interface and implementation changes on the vuejs side (panel).
https://packagist.org/packages/daandelange/k3-translations