Page MenuHomePhabricator

[YamlFFS] slopeclassification from helppages.yaml is incorrectly split
Closed, InvalidPublic

Description

Reported at https://translatewiki.net/wiki/Thread:Support/About_Osm:Wmthelp-rendering.slopeclassification.determined_from_the_%60piste/es , visible at https://translatewiki.net/w/i.php?title=Special:Translate&group=out-waymarked-trails-0-all&language=es&filter=%21translated&action=translate : the line

determined from the `piste:difficulty` tag, and used

is interpreted as a message where "determined from the piste" is the key and "difficulty tag, and used" is the content.

This seems to be the only instance in https://github.com/lonvia/waymarked-trails-site/blob/master/django/locale/qot/helppages.yaml#L75 , even though there are other messages with [:] in them. Perhaps the others don't match because there is a [#*] on the line before the colon, while this line matches "^[a-z ]:"?

https://github.com/lonvia/waymarked-trails-site/blob/master/django/locale/qot/helppages.yaml#L75

The YAML file passes all the basic YAML validation tools I found online (weird how poor the validation commands toolset is for YAML).


Version: master
Severity: normal
URL: https://translatewiki.net/w/i.php?title=Special:Translate&group=out-waymarked-trails-0-all&language=es&filter=%21translated&action=translate

Details

Reference
bz68023

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:32 AM
bzimport set Reference to bz68023.
bzimport added a subscriber: Unknown Object (MLST).

This is probably a bug in the upstream Yaml parser.

Actually it just looks like the source file is invalid. It is missing the | character after colon which is present on other entries.