Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: Option from selectbox can't be translated for field table. #13914

Closed
Megafry opened this issue Nov 8, 2023 · 3 comments
Closed

[4.x]: Option from selectbox can't be translated for field table. #13914

Megafry opened this issue Nov 8, 2023 · 3 comments
Assignees

Comments

@Megafry
Copy link

Megafry commented Nov 8, 2023

What happened?

Description

Selectbox-option from the field type table can't be translated.

Steps to reproduce

  1. Create a new field of the type table.
  2. Add a new field from the type Dropdown to a column.
  3. Add a option with the label option-to-translate
  4. Add the label to the translation file translations/en/site.php

Expected behavior

The option is translated with the text from the translation file.

Actual behavior

Nothing happens

This is odd because other selectbox can be translated without issue.

I tried to change the code to use selective.twig, but that didn't work either.
code

Craft CMS version

4.5.10

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@i-just
Copy link
Contributor

i-just commented Nov 9, 2023

Hi, thanks for reporting! I raised a PR to adjust this.

@brandonkelly
Copy link
Member

Craft 4.5.11 is out with the fix for that. Thanks again!

@Megafry
Copy link
Author

Megafry commented Nov 17, 2023

I just updated my installation, works flawlessly, Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants