Translation script: create app.pot and en.po files

The script now creates app.pot and en.po files from the extracted text.
The strings are unique (the same string won't appear twice in the POT
files) and, as a bonus, are sorted.