Saturday, August 21, 2010

How to run a file to create your .pot file

Some people regularly ask me how to create the .pot file of their program. They know the file is the key for it but they also realize that doing

cd /path/to/my/project

Does not really work and then they are a bit stalled.

The answer is quite simple, but you need to know it ;-) You have to run the script that lives in the l10n-kde4/scripts

That still will fail as the script tries to save the .pot files in a folder called "po", so all in all these are the commands to get the .pot file of your project

cd /path/to/my/project
mkdir po
bash /path/to/l10n-kde4/scripts/

And that's it :-)


mattr said...

Thank you so much for this! I need to regenerate the .pot for Basket and was at a loss for how to do it. Thanks again!

Unknown said...

For future reference, the scripts can be found in:
svn co svn://

Alexander Potashev said...

Now you also need "mkdir enpo".