Convert a text file to PO file

po4a-gettextize

po4a-gettextize --format {{text}} --master {{path/to/master.txt}} --po {{path/to/result.po}}

click the source code to copy install po4a-gettextize on any operating system with command-not-found.com