Page MenuHomePhabricator

Create placeholder validator
Closed, DeclinedPublic

Description

  1. Create a PHP shell script that collects the placeholder names from the Twig templates and compares them to the message keys in each language. If message keys are missing or unused, the script must return a non-zero exit code and the templates must be listed ( grouped by language and grouped by unused/missing for each language).
  2. Run the script as part of Travis validation of the content repository.

The templates use different translation files for different things, so it might be best to use the Twig Parser for analyzing the templates, to check if the right translation file is linked.

Background:

Event Timeline

For unused ones you presumably would only want a warning, since you can probably temporarily not use something without wanting to remove it

gabriel-wmde lowered the priority of this task from Medium to Low.Jun 20 2017, 3:05 PM
gabriel-wmde moved this task from Sprint ready to Backlog on the WMDE-Fundraising-Tech board.

The task description is not a story and the implementation is probably no longer viable with the current setup. We need to discuss this story again to see what kinds of errors we want to avoid.