verbb / formie

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

"Select an option" showing in English on a Spanish site #2166

Closed darylknight closed 2 hours ago

darylknight commented 2 days ago

Describe the bug

I followed the discussion on https://github.com/verbb/formie/issues/60 but either couldn't get it working, or am trying to translate something that isn't supported. We have an English form for the English site, and a Spanish form for the Spanish site. When on the Spanish site, we've got Spanish labels etc, but in our Address field, "Select an option" for the Country subfield appears in English. There doesn't appear to be a way to change this in the control panel, and static translations in either translations/es.php, translations/es/site.php or config/formie.php don't change anything.

image image

Steps to reproduce

  1. Add a site for Spanish
  2. Add a form with an address field
  3. Select an option for Country is in English

Form settings

Craft CMS version

5.5.3

Plugin version

3.0.12

Multi-site?

No

Additional context

No response

darylknight commented 2 days ago

Follow up: same issue with the File Upload field:

image
engram-design commented 2 days ago

So Select an option is certainly in our static translation file, so that should be all that's required.

Adding:

'Select an option' => 'Select an option (Spanish)',

Is working on my end at least:

image

Note that Formie's translations need to be in translations/es/formie.php

darylknight commented 2 days ago

You're right, sorry I didn't realise formie.php needed to be in the translations folder. The file selection texts aren't working though.

engram-design commented 1 day ago

I believe that's a browser setting and not something we can change!

darylknight commented 1 day ago

I don't understand - are you going to update something in Formie, or is it something I need to do at my end? Or expect the users to do?

Edit - ah, did you mean "not" something we can change?

engram-design commented 15 hours ago

Oop, sorry - I think I was typing on my phone at the time and that was indeed a typo. Yep, unfortunately this isn't something we have control over, other than creating a completely custom front-end file upload field (which is on our todo list), and up to the browser settings for the user viewing the form.

darylknight commented 2 hours ago

Got it, thanks!