getgrav / getgrav/grav-plugin-admin

Theme description key in blueprints.yaml doesn't lookup translation

Open
#1,029 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

In my theme's blueprints.yaml, the `description` key doesn't lookup translations set in languages.yaml (or in languages/fr.yaml, I tried both setup).

Here is the result:
screen shot 2017-03-19 at 12 31 19

blueprints.yaml (the `...` are an ellipsis for multiple other keys)

```yaml
name: Boite A Cycler
version: 0.0.1
description: BOITEACYCLER.THEME_DESCRIPTION
...
```

languages.yaml

```yaml
BOITEACYCLER:
THEME_DESCRIPTION: "Le thème de l'association Boite à Cycler"
...
```

Contributor guide

Open the contributing guide

Research direction

Start with the theme blueprints.yaml and the languages.yaml or languages/fr.yaml examples in the issue, then reproduce the untranslated description in the Grav Admin Plugin. Trace how the blueprint description is loaded and how translation keys are resolved; done means BOITEACYCLER.THEME_DESCRIPTION displays its translated value.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.