Skip to content

xml processor does not support xliff:g elementsΒ #31

@dalewking

Description

@dalewking

It is a common practice to embed elements like this in string files to provide clues to translators:

    <string name="time_range_format"><xliff:g id="startTime" example="1:30 PM">%1$s</xliff:g> - <xliff:g id="endTime" example="3:30 PM">%2$s</xliff:g></string>

But the xml processor does not support them and gives an error:

[ksp] com.gitlab.mvysny.konsumexml.KonsumerException: line 11 column 80 at null file:///Users/dalewking/Downloads/Foo/composeApp/src/strings/values-it/strings.xml, in element : Expected text but got START_ELEMENT: {urn:oasis:names:tc:xliff:document:1.2}g

Metadata

Metadata

Assignees

No one assigned

    Labels

    codegen: android-xmlCodegen from Android String Resources conversion issueenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions