Is there an easy and straight forward method to generate *.pot file from a static HTML page?
Asked
Active
Viewed 274 times
3
-
What have you tried so far? – grooveplex Feb 24 '19 at 01:20
-
I tried to get it done using Poedit, but was not successful. – fabianegli Feb 24 '19 at 01:21
-
I know it works for C and some other programming languages, but not for HTML. I experimented, to some extent, with xgettext. – fabianegli Feb 24 '19 at 01:28
-
Have you tried [html2po](https://github.com/translate/translate/blob/master/docs/commands/html2po.rst) with the `--pot` flag – Michael Warner Feb 26 '19 at 20:03
-
@MichaelWarner No, I was unaware of this tool. Just tried it - and it does what I need it to do. If you convert your comment into an answer, you get the bounty. – fabianegli Feb 28 '19 at 08:22