Skip to content
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

po4a modifes the msgid from man page #445

Open
goeranu opened this issue Oct 29, 2023 · 0 comments
Open

po4a modifes the msgid from man page #445

goeranu opened this issue Oct 29, 2023 · 0 comments

Comments

@goeranu
Copy link

goeranu commented Oct 29, 2023

After having translated the manual page for test.1 to Swedish, I noticed the translation's synopsis comes out incorrect. The underlying problem seems to be that po4a modifies the source, which fooled me into giving an incorrect translation.

More exactly, this line is part of the original manual page:

.B "[\& ]\&"

In the pot file generated by po4a this shows up like this:

msgid "B<[\\& ]\">"

Notice that the final \\& has been changed into \". That is, the roff code for a zero-width mark has become a double quote as part of the string.

(Since this string doesn't actually contain anything to translate, I just copied it to the msgstr, resulting in the double quotes showing up in the final manual page. Now knowing about the bug, I can obviously work around it in this particular case.)

I attach an example with a very much stripped down manual page, and the result of running po4a on it.

po4a-bug.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant