You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File names referenced as source location of translation are listed as local file names. Such files may contain, for example, the + character. When using such names for URL links, it is necessary to use encoding, so otherwise it is created as incorrect link == is evaluated as non-existent.
Here is not a solution to change the source file names, not even convince gettext to generate URL encoded source locations.
I already tried
Describe the steps you tried to solve the problem yourself.
I performed verification in all versions since 2019 (Weblate 3.x) – it always worked wrong.
Please how can I verify that the problem is not caused during the retrieval of the source locations from PO / POT files? I tried to backport the appropriate patch, but the situation remained unchanged. See examples mentioned above.
I tried to search in the Weblate database dump and the source location links appear to be incorrectly extracted and stored in the database: apt http.protocol:9, apt.protocol:9 => + character is missing in the database. The fix will probably require the second part of the puzzle.
Yes, translate-toolkit seems to do urldecoding when parsing the PO file. It was introduced in translate/translate@36a9134. I've already had some issues with that, see translate/translate#3466. But anyway this part has to be addressed in the translate-toolkit.
Describe the issue
File names referenced as source location of translation are listed as local file names. Such files may contain, for example, the
+
character. When using such names for URL links, it is necessary to use encoding, so otherwise it is created as incorrect link == is evaluated as non-existent.Here is not a solution to change the source file names, not even convince gettext to generate URL encoded source locations.
I already tried
Describe the steps you tried to solve the problem yourself.
To Reproduce the issue
Steps to reproduce the behavior:
apt.protocol
is fine while the link toapt+http.protocol
andc++/tdefile_cpp.desktop
is incorrect.apt+http.protocol
.Expected behavior
I expect that links to source locations will be encoded for use in the URL.
Server configuration and status
Weblate installation: PyPI
Weblate deploy checks
The text was updated successfully, but these errors were encountered: