mquinson / po4a

Maintain the translations of your documentation with ease (PO for anything)
http://po4a.org/
GNU General Public License v2.0
121 stars 58 forks source link

po4a dies on *.adocs with no translatable content #408

Closed suddenfall closed 1 year ago

suddenfall commented 1 year ago

I have a complex adoc-project with many includes. Some documents just contains includes. On these files po4a fails, because it cannot create a corresponding pot.

My fix:

Adding the parameter --force-po to the command msggrep in the file po4a at line 1617.

Modified line:

my $cmd = "msggrep$Config{_exe} $split_pot_files{$master_pot} -o $outfile $pot_filename --force-po";

jnavila commented 1 year ago

This seems all good. Please open a PR and claim the authorship.

suddenfall commented 1 year ago

I have never done this before. I hope that fit.

jnavila commented 1 year ago

Hello. You have to open a pull request to mquinson/po4a via the GitHub site in order for this change to be merged.