Modify ↓
#17679 closed defect (fixed)
Translation scripts fail to parse XML CDATA
Reported by: | Don-vip | Owned by: | stoecker |
---|---|---|---|
Priority: | normal | Milestone: | 19.05 |
Component: | Core | Version: | |
Keywords: | i18n xml cdata | Cc: |
Description
On Maps/Australia we have:
<entry> <name>Vicmap Transport - Road Network</name> <id>anzlicId-ANZVI0803002595</id> <!- ... --> <description lang="en"><![CDATA[This layer is part of Vicmap Transport and is and extensive digital road network - line features delineating state wide road network. Includes; Bridges, Connectors, Footbridge, Ferry Route, Foot Tracks, Roads, Highways, Roundabouts & Tunnels. Attribution for names, alias, class, direction, locality, unique feature identification, suburb/locality. Includes alternate names. Formerly known as Road Network 1:25,000 (Full View) - Vicmap Transport (ROAD_VF)]]></description> <!- ... --> </entry> <entry> <name>Vicmap Lite - Public Land (Parks and Reserves)</name> <id>anzlicId-ANZVI0803003529</id> <!- ... --> <description lang="en"><![CDATA[This layer is part of Vicmap Lite and contains polygon features delineating public land areas. This Vicmap Lite dataset is suited for use between scales of 1: 1 million and 1 : 5 million. The polygons were sourced from PLMMT100PLY. The level of attribute information, the number of features and the number of vertices has been simplified to suit the 1:1 million - 1 : 5 million scale range. The concept of a Scale Use Code has been introduced to help control the level of detail displayed.]]></description> <!- ... --> </entry>
The CDATA parts are uploaded to Launchpad, they are not properly escaped:
see jenkins/job/JOSM-i18n/1374/parsed_console/:
[exec] JAVA translation issue for language uk: Mismatching single quotes: [exec] Translated text: <![CDATA[Цей шар є частиною Vicmap Lite і складається з полігонів які окреслюють землі громади. Набір даних Vicmap Lite підходить для використання з рівнем масштабування від 1:1 млн до 1:5 млн. Полігони були отримані з PLMMT100PLY. Атрибутивна інформація, кількість об'єктів та їх вершин були спрощені для того, щоб їх можливо було використовувати на масштабах 1:1 млн - 1:5 млн. Концепція застосування коду масштабу була запропонована для того щоб допомогти регулювати ступінь деталізації.]]> [exec] Original text: <![CDATA[This layer is part of Vicmap Lite and contains polygon features delineating public land areas. This Vicmap Lite dataset is suited for use between scales of 1: 1 million and 1 : 5 million. The polygons were sourced from PLMMT100PLY. The level of attribute information, the number of features and the number of vertices has been simplified to suit the 1:1 million - 1 : 5 million scale range. The concept of a Scale Use Code has been introduced to help control the level of detail displayed.]]>
Attachments (0)
Change History (3)
comment:1 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 by , 6 years ago
Milestone: | → 19.05 |
---|
Note:
See TracTickets
for help on using tickets.
Fixed in [o34996]. Also added a check to detect similar issues in future.
That's the problem of not using a proper XML reader. You never catch all cases. OTOH using a proper XML reader is not less trouble ;-)