Skip to content

Store string position in the translation file #17540

@nijel

Description

@nijel

Describe the problem

translate/translate#5980 will add support for several formats to report the location of a string in the translation file. This would be useful for Weblate as well to better identify the string (not just by position) and to produce correct links for repository browsing.

Solution brainstorm

I think it can be stored in the existing position field. The current index-based position will be used as a fallback for formats that do not support this.

Describe alternatives you have considered

Add new field for storing the line number might be an option as well if existing one does not work.

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: File format supportIssues related to file formats implemented in Weblate.Waiting for: DemandLow priority for development. Pull requests welcome. Can be prioritized by sponsorship.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions