One way is to use the WordPress i18n tools. I had to checkout WordPress trunk to make it work. On the command line:
svn co http://develop.svn.wordpress.org/trunk
once you have trunk somewhere, you’ll then want to call the makepot
script. Again, on the command line:
php /path/to/wordpress/trunk/tools/i18n/makepot.php wp-theme /path/to/your/theme/
After that script has run, the pot files will be in whatever directory was specified in the above /path/to/your/theme
More information and a couple of other methods can be seen here: http://codex.wordpress.org/I18n_for_WordPress_Developers
Related Posts:
- How to get a localized version of WordPress from a repository?
- How-to: Translate plural forms for themes/plugins with PoEdit
- generating po mo translating files from scratch in a wordpress theme
- How to escape the single quote character in i18n translation strings?
- Changing the language of a single page
- what’s different between _x() and _()
- Obtain a list of available translations
- custom theme: english .mo file not working
- Unknown language json files
- How to escape single and plural i18n text strings?
- What are the most used WordPress localization?
- How to add extra language packs to WordPress
- load_plugin_textdomain in `plugins_loaded` or `init`?
- How to Translate Contact Form 7 using qTranslate? [closed]
- Localization works but still get “This plugin is not properly prepared for localization” msg in directory
- Why should I escape translatable strings? and how shall i do that?
- get_the_date() for translating date format
- Translation of plugin in MU-PLUGINS directory not working
- Custom translation of Month names
- Should i use _n for pronouns in translation?
- I can’t translate text in my plugin using a .mo file, load_plugin_textdomain() function is always false
- How to translate a WordPress.org plugin?
- Do i have make the content() also translation ready in theme?
- Transfer from English page to Arabic page
- Make changes to translation?
- How to get menu strings, categories and tags into po file for translation
- How to save a translation of a plugin in “CodeStyling Localization”?
- Compile errors during translation compile
- Proper way to create / manage gettext (.po, .pot) files?
- How to translate functions like get_the_date()?
- Change / tweak existing wordpress translations
- How to display get_post_type() translated?
- Replace text string on individual page
- loco translate plugin edits file in plugin folder
- How to add LTR to a custom theme which in RTL by default
- How to syntax Json output for translation?
- Translating publish dates to Arabic
- _e() function get text_string from function
- Updating WordPress Theme/Plugin POT file without losing line numbers consistency
- Translation for frontend
- Can’t have a Persian website with a completely English admin panel!
- How can i merge the translations from one .po file into the source on another .po file?
- Translatable Categories
- Force translated language on front
- Translating plugin or locale file
- WordPress translation loading english file
- Is there any way to use @wordpress/i18n for
- How can I see my theme’s text domain?
- Language file doesn’t work
- Making a string translation ready with html in it
- How to become a translator on wordpress.org?
- Translation from .mo file not working in theme
- How to solve a translation function issue with no arguments and missing a text-domain?
- Plugin has no US english translation file
- Localization, escape html elements mid-sentence
- English version of my site show french strings [closed]
- WordPress localization – gettext and git
- Translation is not being output in one instance
- Why translations?
- How to translate custom Divi module using POEDIT and Polylang [closed]
- Fix Problem With Textdomain Translation
- POEDIT – Continue with translations
- How to translate functions.php?
- How do you translate comments_number function text in a theme?
- How to add a translatable string to post date
- Proper way to use esc_html__ and esc_attr__ etc for escaping value for translation
- How to use esc_attr__ with custom translation function?
- Translate arguments of a user added custom code [closed]
- How to define theme translation file?
- WPML icl_register_string() throws fatal error but works [closed]
- Problem with Language translation
- WordPress translator plugin: Google Webmaster’s Tools shows hundreds of 404 not found errors. How to clean the mess?
- POT file generated using WP-CLI does not retrieve strings from translation functions with FQN (Qualifier)
- Automatic translation with different domains per languages?
- Translations not working on Safari
- Translate string inside twig template
- How to call wordpress API to translate a post request
- Changing text for “Continue reading…” translation
- How to get dashboard langauge not the website language?
- printf, translation function and date_i18n adds extra characters
- Translate wordpress without duplicate custom post
- How to ‘manually’ load translations/test domain outside theme context?
- How to deal with differently translated prepositions?
- How to Convert Date to Thai
- Plugin localization persistance (woocommerce)
- WordPress Localization error within return value
- Plugin translation not displaying
- Language & translation
- White Space on translated strings lost
- Translating form labels shortcode output
- How to translate placeholder?
- Poedit ASCII errors ( WordPress )
- Does WPML translate numbers automatically, or do I have to do the string translation? [closed]
- Translations in source code
- WPML & Events Manager translatable fields after duplication
- Translating “comments”, “leave a comment”, “prev”, “next”, “share”
- Website Language/Locale Switching
- Can’t load text domain in a mu-plugin
- multisite same language different translation
- Translate via URL parameter working only in localhost