verbb / formie

The most user-friendly forms plugin for Craft CMS.
Other
93 stars 69 forks source link

Control Panel subnav has wrong label in German #1834

Closed MoritzLost closed 2 months ago

MoritzLost commented 2 months ago

Describe the bug

Weird bug, the first item in the Control Panel subnav (Forms in English) says Templates in German:

Screenshot 2024-04-17 at 15 06 59

Correkt translation would be Formulare. However, this is the translation for Forms that is used in src/translations/de.php:

    'Forms' => 'Formulare',

The correct source string is used in getCpNavItem:

if (Craft::$app->getUser()->checkPermission('formie-viewForms')) {
    $nav['subnav']['forms'] = [
        'label' => Craft::t('formie', 'Forms'),
        'url' => 'formie/forms',
    ];
}

I tried to put a debug statement below that:

Craft::dd(Craft::t('formie', 'Forms'));

Indeed, it returns Templates instead of Formulare, even though that's the translation in de.php is Formulare.

Any ideas?

Steps to reproduce

  1. Set the language to German
  2. Visit Formie in the Control Panel.

Form settings

Craft CMS version

4.8.9

Plugin version

2.1.11

Multi-site?

No response

Additional context

No response

MoritzLost commented 2 months ago

Never mind, our own translations were interfering. My bad 🤷