WeblateOrg / WeblateOrg/weblate

Links to search for string's key usages in the codebase

Open
#8,450 2 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 problem

Some projects are set up such that the strings are not directly linked with places they're used in in the codebase ("source string location"), so viewing the context can be problematic.

Example with links: https://hosted.weblate.org/translate/weblate/application/cs/
Example with no links: https://hosted.weblate.org/translate/librephotos/librephotos-frontend/cs/

### Describe the solution you'd like

The simplest solution I see is to add links similar to "source string location" links, but not directly to a file and line but to a search page, e.g. https://github.com/LibrePhotos/librephotos-frontend/search?q=settings.header

### Describe alternatives you've considered

Maybe perform such search programmatically (instead of telling the user to find it themselves), say on the backend, and show the links to the search results.

Also maybe GNU Gettext has ideas that could help.

### Screenshots

![image](https://user-images.githubusercontent.com/39462442/206265083-22131f6d-b0b9-47b7-a697-c17561e24028.png)

![image](https://user-images.githubusercontent.com/39462442/206265327-9908fe4c-7a88-4546-97e6-818ba523b72b.png)

### 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.