Description of problem: To reduce external deps look in to replacing msgmerge with a perl module. Doing this should also make it easier to support non PO translations, xliff, etc. Version-Release number of selected component (if applicable): 2.5 Additional info: CPAN Modules that may assist with this Text::Levenshtein Text::LevenshteinXS Text::JaroWinkler Text::WagnerFischer Text::Brew String::Similarity
I have checked in a patch to trunk that enables using String::Similarity when merging POT changes. --TEST_PO_MERGE has been added to allow testing the new code path: $ publican update_po --langs de-DE --TEST_PO_MERGE Needs some serious testing.
This behaviour has been changed. By default the new code path is used, and the deps on msgmerge have been removed. To use msgmerge it must be manually installed, if missing, and --msgmerg must be used to use that instead of the new perl code.
Documentation required for this new command-line flag. Any questions about the new flag, ask in this ticket. Publican 3.0 umbrella ticket added as a dependency of this issue.
create vm, ensure gettext tools are not present, install publican 3, build translated book, verify that the book builds w/o gettext.
Verified on publican-3.0-0.fc17.t180.noarch Ran rpm -e --nodeps gettext could still build a translated book; PO entries appeared to merge correctly.