openfoodfacts/openfoodfacts-server

Those strings should be made translatable with placeholders

Open

#6,687 opened on Apr 25, 2022

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Perl (236 forks)batch import
Template::ToolkitTranslationsgood first issue⏰ Stale✅ Task

Repository metrics

Stars
 (477 stars)
PR merge metrics
 (Avg merge 15d 21h) (157 merged PRs in 30d)

Description

What

Those strings should be made translatable with placeholders, with RTL languages in mind, currently it's a concatenation of strings, which can cause unintended behavious https://github.com/openfoodfacts/openfoodfacts-server/blob/main/templates/api/knowledge-panels/environment/ecoscore/total.tt.json#L8

Contributor guide