getgrav / getgrav/grav-plugin-admin

selectize options ignore language strings

Open
#2,205 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

when naming selectize options with a language string, it’s not displayed as it should.

in this example, `THEME_X.SELECT_OPTION1` doesn’t render the corresponding string from the `languages.yaml` file, instead it appears exactly as “THEME_X.SELECT_OPTION1”.
```yaml
form.field:
type: selectize
selectize:
options:
- text: THEME_X.SELECT_OPTION1
value: option1
```

needless to say i made sure the string was in the theme’s `languages.yaml`.

Contributor guide

Open the contributing guide

Research direction

The report points to selectize field options and the theme's languages.yaml; start by tracing how the admin plugin resolves option labels before Selectize renders them. Reproduce with the supplied form.field configuration, then verify that THEME_X.SELECT_OPTION1 displays its translated value rather than the key.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend, internationalization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.