[Rpm-maint] [rpm-software-management/rpm] Keep source location in pot files (Issue #3921)

Rafael Fontenelle notifications at github.com
Tue Sep 2 23:59:08 UTC 2025


rffontenelle created an issue (rpm-software-management/rpm#3921)

**Describe the bug**

Currently, `update-pot` target in [rpm-l10n's CMakeLists.txt](https://github.com/rpm-software-management/rpm-l10n/blob/f76a545/CMakeLists.txt) has xgettext's `--no-location` option set, which is known to reduce noise in the commit diff.

However for the translator the lack of the source string location makes harder to browse the source code for the context of a source string being translated. Currently one must clone and grep the source code or search in GitHub's search box in order to find the context of a string (or translate guessing or give up... worse situations).

Weblate can show the source string location in the string's information (See [screenshot in the docs](https://docs.weblate.org/en/latest/user/translating.html#translation-context)) if `--no-location` option is not set. The best part is also using [repository browser URL](https://docs.weblate.org/en/latest/admin/projects.html#repository-browser), which creates a link to the exact file and line in the source code of that string. But repository browser URL works only with existing source location.



**To Reproduce**

Browse [a string editor view](https://translate.fedoraproject.org/translate/rpm/rpm-l10n/en/) and notice there is no source string location in the right-side "String information" panel (differing from the example screenshot above)


**Suggestion**

Remove `--no-location` option from the [CMakeLists.txt in rpm-l10n repository](https://github.com/rpm-software-management/rpm-l10n/blob/f76a545/CMakeLists.txt) and regenerate the POT files. I can set the repository browser URL once this is done.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3921
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3921 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250902/3c23817a/attachment-0001.htm>


More information about the Rpm-maint mailing list