As a SVG Translate user, I want to access labels, so that I can properly use the tool for translation.
Background: The user is experiencing the following issue: "This file does not have any labels available for translation. Please pick another image."
Resources:
Steps to Reproduce:
https://tools.wmflabs.org/svgtranslate/File:COVID-19_Variante.svg
https://tools.wmflabs.org/svgtranslate/File:T248252.svg
Actual Results:
Expected Results:
<switch> <g systemLanguage="de"> <text x="82.01" y="61.77" font-size="40">Coronavirus - „Worst Case Szenario“</text> <text x="83.05" y="116.27" font-size="36">Annahme: 60-70% der Bevölkerung wird akkumuliert infiziert</text> <text x="159.35" y="205.03" font-size="36">Zahl der<tspan x="159.35" y="250.03">Infizierten</tspan></text> <text x="155.62" y="821.84" font-size="36" text-anchor="middle">0</text> <text x="335.1" y="822.58" font-size="36" text-anchor="middle">100</text> <text x="507.61" y="821.11" font-size="36" text-anchor="middle">200</text> <text x="681.95" y="821.48" font-size="36" text-anchor="middle">300</text> <text x="858.02" y="821.84" font-size="36" text-anchor="middle">400</text> <text x="521.14" y="877.22" font-size="36" text-anchor="middle">Tage seit der ersten bestätigten Infektion</text> <text x="85.13" y="970.66" font-size="24">Quelle: DiePresse tw. basierend auf TU Wien/dwh</text> <text x="424.66" y="192.09" font-size="36"><tspan fill="#800" font-weight="bold">Keine Einschränkung<tspan x="424.66" y="237.09">der Sozialkontakte</tspan></tspan><tspan x="424.66" y="282.09">Höhepunkt: 25% infiziert</tspan></text> <text x="424.66" y="380.3" font-size="36"><tspan fill="#f60" font-weight="bold">etwas weniger<tspan x="424.66" y="425.3">Sozialkontakte</tspan></tspan><tspan x="424.66" y="470.3">ca. 15% infiziert</tspan></text> <text x="608.66" y="582.18" font-size="36"><tspan fill="#080" font-weight="bold">deutlich weniger<tspan x="608.66" y="627.18">Sozialkontakte</tspan></tspan><tspan x="608.66" y="672.18">ca. 5% infiziert</tspan></text> <text x="896.73" y="631.93" font-size="36"><tspan fill="#00f" font-weight="bold">Gesundheits-<tspan x="896.73" y="676.93">systemlimit</tspan></tspan><tspan x="896.73" y="721.93">ca. 0.6% infiziert</tspan></text> </g> <g> <text x="82.01" y="61.77" font-size="40">Coronavirus - „Worst Case Szenario“</text> <text x="83.05" y="116.27" font-size="36">Assumption: 60-70% of the citizen get infected</text> <text x="159.35" y="205.03" font-size="36">Number of<tspan x="159.35" y="250.03">current Infections</tspan></text> <text x="155.62" y="821.84" font-size="36" text-anchor="middle">0</text> <text x="335.1" y="822.58" font-size="36" text-anchor="middle">100</text> <text x="507.61" y="821.11" font-size="36" text-anchor="middle">200</text> <text x="681.95" y="821.48" font-size="36" text-anchor="middle">300</text> <text x="858.02" y="821.84" font-size="36" text-anchor="middle">400</text> <text x="521.14" y="877.22" font-size="36" text-anchor="middle">days since first infection</text> <text x="85.13" y="970.66" font-size="24">source: DiePresse based according to TU Wien/dwh</text> <text x="424.66" y="192.09" font-size="36"><tspan fill="#800" font-weight="bold">no restrictions<tspan x="424.66" y="237.09">of social contacts</tspan></tspan><tspan x="424.66" y="282.09">peak: 25% infected</tspan></text> <text x="424.66" y="380.3" font-size="36"><tspan fill="#f60" font-weight="bold">less<tspan x="424.66" y="425.3">social contacts</tspan></tspan><tspan x="424.66" y="470.3">ca. 15% infected</tspan></text> <text x="608.66" y="582.18" font-size="36"><tspan fill="#080" font-weight="bold">strong reduction of<tspan x="608.66" y="627.18">social contacts</tspan></tspan><tspan x="608.66" y="672.18">ca. 5% infected</tspan></text> <text x="896.73" y="631.93" font-size="36"><tspan fill="#00f" font-weight="bold">health care<tspan x="896.73" y="676.93">limit</tspan></tspan><tspan x="896.73" y="721.93">ca. 0.6% infected</tspan></text> </g> </switch>
Acceptance Criteria:
- Fix label bug so that users can properly access label functionality and complete translation work in SVG Translate