Weblate is set with wrong Repository browser URL
The repository browser URL set in Weblate for paprefs is not valid, which causes landing in the main page of the repository with a dialog from GitLab that the expected source file doesn't exist.
TL;DR:
The repository browser URL should probably be set to https://gitlab.freedesktop.org/pulseaudio/paprefs/-/blob/{{branch}}/{{filename}}#L{{line}}
Long answer:
Here is an example to explain the issue: Let's see the translation page for PulseAudio Preferences
string. The "Source Location" field has a hyperlink text src/paprefs.desktop.in:5
to:
https://gitlab.freedesktop.org/pulseaudio/paprefs/blob/master/po/src/paprefs.desktop.in#L5
Clicking the above URL will give you the main page of paprefs repository with the dialog box "po/src/paprefs.desktop.in" did not exist on "master"
. It looks like the correct URL in repository for this file is:
https://gitlab.freedesktop.org/pulseaudio/paprefs/-/blob/master/src/paprefs.desktop.in#L5
Compare the wrong URL with the right one to see the missing /-/
part, and also the extra /po/
directory for a file which is not in that directory!
I'm not sure but this could be caused be a repository browser set to https://gitlab.freedesktop.org/pulseaudio/paprefs/blob/{{branch}}/po/{{filename}}#L{{line}}
, which does not have the /-/
required in GitLab URL format and incorrectly has the /po/ — this {{filename}}
is about source files, not language files (e.g. po/pt_BR.po).