enupal / translate

Translate your website templates and plugins into multiple languages for Craft CMS. Bulk translation with Google Translate or Yandex.
https://enupal.com/craft-plugins/translate
Other
11 stars 2 forks source link

Craft 5 - error on sitehandle when using only one site #68

Closed robin-braibant-alpine closed 5 months ago

robin-braibant-alpine commented 6 months ago

Description

We upgraded our project from Craft 4 to Craft 5. Our project only has one site. When opening the Translations menu item of the plugin, the following errors occurs:

image

The error gets thrown in the src/templates/index.twig file of the plugin. You are checking for a parameter, but when only one site is available, the site is parameter is not present.

Steps to reproduce

  1. Install plugin in Craft 5 project with one site
  2. Try to open the translations

Additional info

robin-braibant-alpine commented 5 months ago

@andrelopez Can you come back on this issue please?

andrelopez commented 5 months ago

Hi @alpine-digital we just released v4.0.2 with a fix to this issue. Thanks for reporting