I have a .pot file that came with my WordPress theme. Now I want to add strings to it, that weren’t there in the original theme. How do I do that?
Do I have to update the .pot file? but 1) How do I do that, and 2) How do I make sure that the strings that were translated won’t get erased?
(I’m currently using Poedit and I can’t see a feature to add a string.)
Leave a Reply
You must be logged in to post a comment.
I am using http://wordpress.org/extend/plugins/codestyling-localization/
Give it a chance i suggest 🙂
Here’s a shell script to generate pot files automatically. Modify the copyright, etc to fit your needs:
Usage, assuming a *nix box (Mac or Linux):
Here’s a good idea. With iCanLocalize, you can create a
.po
file automatically.If you have WP-CLI installed (command-line interface for WordPress), this can be achieved with the following command:
wp i18n make-pot --merge source_dir target.pot