| Summary: | [l10n] update_po produces inconsistent results | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Community] Publican | Reporter: | Ruediger Landmann <rlandman> | ||||||||
| Component: | publican | Assignee: | Jeff Fearn 🐞 <jfearn> | ||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 2.5 | CC: | hpeters, mhideo, mmcallis, publican-list | ||||||||
| Target Milestone: | 3.0 | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | 3.0.0 | Doc Type: | Bug Fix | ||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2012-10-31 03:11:12 UTC | Type: | --- | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Attachments: |
|
||||||||||
|
Description
Ruediger Landmann
2011-02-17 03:08:47 UTC
Created attachment 479257 [details]
PO file with the extra lines
Created attachment 479258 [details]
PO file without the extra lines -- update_po doesn't add them in.
Merging POT and PO files is currently done by msgmerge from gettext, it might be worth testing various options to msgmerge to see if the behaviour can be changed. Current options would look like: msgmerge --no-wrap --quiet --backup=none --update foo.po Try it without --update, also trying the new code path in https://bugzilla.redhat.com/show_bug.cgi?id=661569 would be worth a shot. This should have been fixed by #661569, requires testing. create xml file that contains screen element with a carriage return before closing tag. then create pot file. check for empty strings. create xml file that contains screen element with a carriage return before closing tag. then create pot file. check for empty strings. Verified. I followed Rudi's steps 1-7 to reproduce using the attached example XML file. Publican still produces those lines with only two sets of quote marks in the po-file. After removing them manually and updating the po-file, it does not add them in again - as described by Rudi. However, running publican lang_stats is now producing consistent statistics, with or without those lines the results for steps 2, 4 and 7 are the same. This matches the expected result in the OP, hence verified. |