getgrav / getgrav/grav-plugin-readingtime

How do you translate the main string?

Open
#21 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
22
Forks
10
PR merge metrics
No merged PRs in 30d

Description

It seems that ```Reading time: ``` is hardcoded into the plugin and isn't being translated. Which is understandable since it's not in ```languages.yaml```, but I don't see it being injected from any of the files in the plugin.

And yet, the ```{{ page.content|readingtime}}``` variable seems to include it. The minutes and seconds parts translates correctly, as expected because there are translations for it, but not the ```Reading time: ``` part. E.g. ```Reading time: 1 minuto```.

Is this an oversight that nobody has ever noticed/cared about or am I missing something obvious?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with languages.yaml and trace the implementation behind the {{ page.content|readingtime }} variable to find where the “Reading time:” label is assembled. Compare it with the existing minute and second translations; done means the label is translated consistently with the rest of the output.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.