-
Notifications
You must be signed in to change notification settings - Fork 235
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
sssd 2.3.0 buld errors due to issue with sv translation of man page #5186
Comments
ping? |
I can confirm that So far I don't understand the reason: |
640+57 is an expected amount of messages (matches some other po-files) But after this step a lot of strings in updated I added |
Hmm. It works for me on Fedora 31. Is it possible there is some issue with xsltproc or po4a?
|
|
|
Are sure you are building sv ? |
Ah, it fails for me as well. I was building sv but I expected the build to fail, but the build succeeded. I can see different error though:
|
That's just a little bit different diagnostic message. But reason seems to be the same: generated xml is truncated... |
Running po4a directly yields the same incorrect result so po4a seems to be the cause. However, --debug and --verbose shows that the whole file is processed and it does not produce any error.
@mquinson could you help us debug this issue? The generated file is truncated in the middle. |
My guess is that the sv translation is producing an invalid XML file. You should try to open the produced file, and look at I did a similar operation for the doc of po4a itself in chineese yesterday night. I had to do mquinson/po4a@e18c73a and mquinson/po4a@2ca8d39 I guess that your fixes will be very similar. I agree that po4a should try to sanitize the translations provided by the translators so that the reassembled document is not faulty. Other format than XML do that in po4a, but I confess that I have absolutely no idea on how to do that for XML. How would you validate XML fragments? If my guess is wrong, please tell me and I'll have a closer look. |
You have many weird translations in this file: https://github.com/SSSD/sssd/blob/master/src/man/po/sv.po#L1351 https://github.com/SSSD/sssd/blob/master/src/man/po/sv.po#L1373 but I don't see no obvious formating error in the PO file: https://github.com/SSSD/sssd/blob/master/src/man/po/sv.po#L1515 You really should look at the produced XML file in swedish |
What is weird about those translations? There's no information in the xml file either, it just ends in the middle: 992 <refsect2 id='PAM'>
993 <title>PAM-konfigurationsalternativ</title>
994 <para>
995 Dessa alternativ kan användas för att konfigurera tjänsten Pluggable
996 Authentication Module (PAM).
997 </para>
998
|
I opened issue against po4a: mquinson/po4a#254 |
This made sssd.conf translation truncated in the middle. Resolves: SSSD#5186
See fix in #5242. po4a got a new commit that will produce nice error message in this case. |
FYI, I get some nonfatal buil errors:
The text was updated successfully, but these errors were encountered: