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-gettextize stops at macro .it 1 an-trap #339

Closed
KBDCALLS opened this issue Dec 12, 2021 · 6 comments
Closed

po4a-gettextize stops at macro .it 1 an-trap #339

KBDCALLS opened this issue Dec 12, 2021 · 6 comments

Comments

@KBDCALLS
Copy link

po4a-gettextize stops at macro .it 1 an-trap

po4a-gettextize -f man -m gitrevisions.7 -p gitrevisions.7.po -o groff_code=verbatim

gitrevisions.7:47: (po4a::man)
Unbekanntes Makro ».it 1 an-trap«. Entfernen Sie es aus dem Dokument oder werfen Sie einen Blick in die
Handbuchseite von Locale::Po4a::Man, um herauszufinden, wie po4a mit neuen Makros umgehen kann.

gitrevisions.7:47: (po4a::man)
Unknown macro '.it 1 an-trap'. Remove it from the document, or refer to the Locale::Po4a::Man manpage to
see how po4a can handle new macros.

@mquinson
Copy link
Owner

I've checked on the .it groff syntax (eg here or here) but I'm not sure I understand what it does. I think that we should leave the .it 1 an-trap line unmodified, but I'm not 100% sure.

If someone could confirm, I'd appreciate.

@jnavila
Copy link
Collaborator

jnavila commented Dec 13, 2021

Just a side question: why would you want to gettextize the manpage of gitrevisions in manpage format? The source file is written in asciidoc.

@mquinson
Copy link
Owner

I guess that this is to save a translation that was done by error on the groff page, so this is valid.

@jnavila
Copy link
Collaborator

jnavila commented Dec 13, 2021

I'm not questioning the validity of this request. I'm just intrigued, because trying to set up the git manpages translation project, I come across somebody else doing the same effort.

@KBDCALLS Could you refer to the project where you are facing this issue? That may help join effort. Thank you.

@mquinson
Copy link
Owner

@KBDCALLS could you please test if you get the expected behavior when adding -o untranslated=it ? According to the https://po4a.org/man/man3/Locale::Po4a::Man.3pm.php page, that should fix your problem.

@mquinson
Copy link
Owner

mquinson commented Jul 3, 2022

@KBDCALLS could you please report whether adding -o untranslated=it fixes the problem?

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

No branches or pull requests

3 participants