-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weblate: Set a repository browser URL for po4a-doc #473
Comments
Thanks a lot for the detailed report, you rock! I think it's fixed now, but I'd prefer if you could double check before we close the bug. Feel free to close it yourself if I managed to follow your precious instructions. Thanks again, |
Besides that the line numbers in references are still not correct, but AFAIR that's a po4a's POD passer's issue and not that trivial to fix... |
@Fat-Zer you outran me on that. :) Indeed, Weblate reads the line number from the source location written in the PO/POT file. So the issue is while extracting them. |
FWIW, from Perl's Pod::Parser CPAN page:
|
Ok, closing that bug if it's fixed. The fact that the pod parser is obsolete is another (known) story. |
The po4a-doc translation component in Weblate has a broken repository browser. Since it was not set for the po4a-doc component, it inherited from po4a component. po4a component has
{{filename|parentdir|parentdir}}
to skip two parent directories, which probably explains the error in po4a-doc.Current situation: a string from po4a-doc component with "source string location" lib/Locale/Po4a/TeX.pm:52 results in a link https://github.com/mquinson/po4a/blob/master/Po4a/TeX.pm#L52 (notice how lib/Locale are missing)
To solve this:
https://github.com/mquinson/po4a/blob/{{branch}}/{{filename}}#L{{line}}
The text was updated successfully, but these errors were encountered: