WeblateOrg / WeblateOrg/weblate

Translation filename links are broken in some cases

Open
#7,738 5 comments 0 reactions 0 assignees View on GitHub
enhancement Waiting for: Demand
Dominant language
Python
Stars
6.1k
Forks
1.4k
Avg merge
9h 53m
Merged PRs (30d)
395

Description

### Describe the issue

E.g. here https://hosted.weblate.org/translate/weblate/documentation/fr/ the link is https://github.com/WeblateOrg/weblate/blob/main/docs/fr/LC_MESSAGES/docs.po#L1, but the filename is correct `docs/locales/fr/LC_MESSAGES/docs.po`, so in the link the `locales` part is stripped off.

### I already tried

- [X] I've read and searched [the documentation](https://docs.weblate.org/).
- [X] I've searched for similar issues in this repository.

### Steps to reproduce the behavior

_No response_

### Expected behavior

_No response_

### Screenshots

![image](https://user-images.githubusercontent.com/39462442/171997517-42cfaff6-f59e-40d5-8dbf-e125f73d8f44.png)

### Exception traceback

_No response_

### How do you run Weblate?

weblate.org service

### Weblate versions

_No response_

### Weblate deploy checks

_No response_

### Additional context

Where the feature was added: #7675.
I think it may be related to the fact that the source file has a different pattern from the localization files pattern.

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.