You can use POedit to generate the PO file from source code:
https://codex.wordpress.org/User:Skippy/Creating_POT_Files
The problem for me is that my WordPress installation is running on an Amazon Linux server, which does not have a package in the repos for POedit and I couldn’t figure out how to install POedit on my server (only on my local Windows machine).
If anyone can point me to instructions on how to install POedit on an Amazon Linux Server or how to generate the PO file another way from source code on my server I would appreciate it.
As a hack, since I don’t have that many files in my theme, I simply moved the necessary php files to my local (Windows) machine (which has POedit installed) and generated the PO file from the source code on my local machine.
Related Posts:
- Localization: Textdomain of Child teme
- Activate Child Theme .mo and .po files
- Is a text-domain necessary for a child theme
- How do I override a parent theme’s language files with a child theme?
- Override plugin text domain in child theme
- Child Theme Translations with PoEdit
- Localize strings for translation
- Trouble translating a Child Theme
- Translated words not showing child theme
- How to get custom translations from child theme to be loaded?
- Adding translation files to a child theme
- How do themes provide support for child themes?
- Why is the Child Theme Stylesheet Not Loading?
- gettext does not translate when called in ajax
- How to escape the single quote character in i18n translation strings?
- get_parent_theme_file_path vs. get_template_directory
- Child theme does not overwrite parent themes style.css
- How to escape single and plural i18n text strings?
- Do all files in child theme override the parent?
- What are the most used WordPress localization?
- How to solve “Warning: Use of undefined constant” when overriding a parent theme function in the child theme?
- Under heavy cache conditions, updating the parent theme don’t reflect changes with child theme enabled
- When activating a child theme, what core settings have to be reset ie; Custom Menus etc?
- Hwo to turn off “get_parent_theme_file_path” in child-theme?
- Overriding parent theme file
- How can I make new .css file in child theme override styles in child theme’s style.css
- Enqueue more than two CSS styles in a child theme functions.php
- WordPress: After Gutenberg plugin migration to block.json the localization/ translations with PolyGlot in JavaScript does not work anymore
- Override parent theme translation on child theme
- How are updates to the style.css file in child theme recognized?
- How to change default header image dimensions in twentyfourteen child theme?
- Overwrite CSS with without deleting it
- The effect of x() family of functions
- Child themes & updates?
- Where to put custom PHP files in a child theme?
- Child Theme Path Being Ignored With wp_enqueue_scripts
- Why is “get_template_directory_uri” pointing to child theme?
- ERROR MESSAGE: Missing index.php—Child Theme
- Making my plugin translation ready. Poedit not working
- How to make child theme ignore a parent themes template
- Conditionally load child themes
- Is my child theme working properly
- bbpress change the word forum, topic, reply in the forum to another word I choose
- Overriding a parent theme folder in the child theme
- Should shorcodes in i18n plugins be translated and if so, how?
- How do I override a sidebar that is registered in a parent theme when using a child theme?
- Internationalization and functions that use it
- PHP loop that selects posts with a particular in-post option
- Should I include colon in my msgid in PO file?
- Someone created a child theme, but I need to modify it to reorder content. How do I access the child theme?
- Tesseract child theme loads slow [closed]
- Confused about how to use wp_enqueue_style
- How to use custom stylesheet only for a template in child theme
- Order of stylesheets in child theme
- Generate JSON files for language translation from po file without wp-cli i18n make-json
- Creating a child theme from Twenty Seventeen
- Adding a title below the logo
- What can be reason for no plugin-strings available under stable section on translate.wordpress.org?
- How to create a parent theme for accesspress parallax theme?
- Force translated language on front
- How to add anchor tag at the top of posts, past the header and nav bar?
- WordPress translation loading english file
- changing parent theme into child theme
- How to override parent theme template files?
- How Child Themes Directory works for plugins?
- How to become a translator on wordpress.org?
- Link featured image to post
- Localization, escape html elements mid-sentence
- Modify a parent theme’s PHP file, and save in child theme
- What are the best practices for maintaining and deploying several parent themes?
- Setting Email locale before retrieving gettext translations
- Is hint for translator compulsory while internationalizing a string containing variables?
- Getting a list of the PHP files included to generate a page
- Child theme not importing parent styles
- is it possible to add new template in theme twenty seventeen?
- Updating my WordPress.org version will cause my site to break… What can I do to avoid this?
- Localization of WP theme
- style.css of child theme is not overwriting parents style.css for .box
- Translate a theme with a PO file
- Two stylesheets acting on one element
- WordPress Translation to french, at -> à not working
- Referencing parent theme image from child theme
- Can’t seem to get javascript code working from child theme
- Can I place “parent theme” inside a child theme folder?
- template_include doesn’t work with child theme
- Remove Stylesheet by URL that has not been enqueued
- Swap SVG icons in child themes
- How to fix error message to edit sidebar widget text on a livesite childtheme?
- Child Theme Can’t Find Parent In a Folder
- Problems with child theme
- Loading my main.js file from my child theme
- Is it possible to slow down site with a bulky child theme?
- Installation directory for WordPress and child theme
- WordPress Localization error within return value
- Plugin translation not displaying
- How to include only modifications in child theme?
- Child Theme > Template
- Edit php files in subdirs in a child theme
- How to add modified php in child theme?
- WordPress | enqueue_scripts in a child’s theme returns error