WeblateOrg / WeblateOrg/weblate

Store string position in the translation file

Open
#17,540 0 comments 0 reactions 1 assignee Claimed by @gersona View on GitHub
Area: File format support Waiting for: Implementation
Dominant language
Python
Stars
6.1k
Forks
1.4k
Avg merge
9h 53m
Merged PRs (30d)
395

Description

### Describe the problem

https://github.com/translate/translate/pull/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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.