kirby-translations icon indicating copy to clipboard operation
kirby-translations copied to clipboard

Invalid section type "translations"

Open MaluNoPeleke opened this issue 2 years ago • 7 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

MaluNoPeleke avatar Dec 02 '21 20:12 MaluNoPeleke

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.

flokosiol avatar Dec 04 '21 06:12 flokosiol

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

MaluNoPeleke avatar Dec 04 '21 11:12 MaluNoPeleke

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

flokosiol avatar Dec 04 '21 22:12 flokosiol

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

MaluNoPeleke avatar Dec 07 '21 16:12 MaluNoPeleke

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! ❤️

flokosiol avatar Jan 30 '22 21:01 flokosiol

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.

MaluNoPeleke avatar Jan 31 '22 08:01 MaluNoPeleke

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

Daandelange avatar Feb 10 '22 18:02 Daandelange