getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.24k stars 165 forks source link

Tags input "search" translation #6114

Open medienbaecker opened 6 months ago

medienbaecker commented 6 months ago

Description

I'm not sure how to discuss this issue correctly because I don't know about all the reasoning/background. I'll gladly create separate issues if that makes more sense for you. For now let's just break down what I noticed in chronological order:

  1. I noticed the tags field displays "Enter…" in the input. I wanted to translate this so I looked at the PicklistInput.vue.
  2. I see the tags field uses the search input for some reason.
  3. I look at the docs for the tags field and see there are indeed search options. I guess this is a mistake because it doesn't make sense to disable the "search" aka input for new tags, limiting the displayed items or setting minimum number of characters in this case. There is however an undocumented way to set search.placeholder.
  4. While it's possible to overwrite the search placeholder per field, it would be better to globally define this text per language in my opinion.

Expected behavior
I'd expect the tags field label to be translated.

Screenshots
CleanShot 2024-01-02 at 14 37 28@2x

Your setup

Kirby Version
Kirby 4.0.2

distantnative commented 6 months ago

You want to translate it? Or you rather want to replace it with just some other term?

medienbaecker commented 6 months ago

Replacing it is already possible (even if it's not documented) but as I mentioned it would be better to translate this value.

Generally it's not about what I want but what makes sense for Kirby developers and editors. Currently it's very confusing for both:

Developers see search options in the docs for an input that is not a search but much rather the only way to add tags to the field:

CleanShot 2024-01-17 at 10 06 53@2x

Editors see "Enter…" instead of something in their language like "Tag hinzufügen…".