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 to create .pot files with POedit?
- How to override JavaScript files in child theme?
- Translate a plugin using .po .mo files
- Versioning @import of parent theme’s style.css
- How to add code to Header.php in a child theme?
- How to make a WordPress plugin translation ready?
- Why does my child theme CSS get called twice?
- Theme localization of “slugs” (custom post types, taxonomies)
- How do themes provide support for child themes?
- Attributing a version number to a child theme’s main stylesheet
- Preserving theme settings in child theme
- Is it possible to make grandchild themes?
- how do I queue my Child stylesheet/s *after* every Parent stylesheet/statement?
- Override parent theme translation on child theme
- How to cache bust a child theme style.css
- How to get a translated string from a language other than the current one?
- How to modify single.php in a child theme?
- Cannot get Child Theme to load latest version of style.css
- How to print translation supported text with HTML URL
- How to get a localized version of WordPress from a repository?
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- Localization: I want the backend: english and frontend in defined language
- Working with l10n contexts (_x etc)
- @package & @subpackage: how to use with child themes
- How to override function in child theme
- Why is the Child Theme Stylesheet Not Loading?
- Do Child-Themes automatically load the Translation from the Parent-Theme?
- Hiding Parent Theme
- How to integrate get_post_time with date_i18n function?
- gettext does not translate when called in ajax
- How to provide translations for a WordPress TinyMCE plugin?
- How to escape the single quote character in i18n translation strings?
- get_stylesheet_directory() vs get_template_directory() for child theme
- Theme Customization API and child themes
- why is translation not working on theme?
- get_parent_theme_file_path vs. get_template_directory
- Git vs Child Theme
- Gettext details
- Give priority to child theme stylesheet
- Child theme does not overwrite parent themes style.css
- how to call files in child theme?
- Get Parent Theme Author Name
- Get parent theme version
- How to escape single and plural i18n text strings?
- Optimal approach for replacing the 8 header images in a child theme?
- Best pratice to make taxonomy terms translatable without changing slugs?
- How to transfer changes to a child theme?
- WordPress master + child themes + Git workflow
- How to use parent theme’s enqueue methods
- something like is_childtheme()
- What is the purpose of an extra file for translation?
- Do all files in child theme override the parent?
- What are the most used WordPress localization?
- Difference between 2 internationalization (i18n) functions __() & _e()
- Child theme showing a blank page
- Child theme preview missing
- Child Theme Performance
- How could child theme be different than parent theme if I haven’t made changes?
- How to solve “Warning: Use of undefined constant” when overriding a parent theme function in the child theme?
- Do I need to update the child theme too after updating the parent?
- get_template_directory vs get_stylesheet_directory
- Problems with localization
- Localization works but still get “This plugin is not properly prepared for localization” msg in directory
- Theme customizer: How do you grab the value later?
- Developing a childtheme, how to disable the parents templates?
- Best location for theme translation files
- `wp_set_script_translations` with `wp.i18n` does not return translated strings in simple plugin
- Under heavy cache conditions, updating the parent theme don’t reflect changes with child theme enabled
- How to maintain wp_enqueue_style dependencies set in parent theme style enqueuing
- Child Theme, Functions.php Issues
- Redefining function in child themes
- Localization / textdomain is slow and chaotic
- How do I check for child theme files first using include, before going to parent theme?
- How can you change default color scheme in a Twenty Fifteen child theme?
- Use admin options from parent theme in child theme
- 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?
- Can’t translate the post meta data (Date) in another language
- How to load theme textdomain from plugin?
- Change language of comments template
- Overriding parent theme file
- How to “remove” file from parent theme
- How to override the Parent theme Function into child themes functions.php
- How can I make new .css file in child theme override styles in child theme’s style.css
- Can’t we use strings defined as PHP constants if we want to translate them in a plugin?
- get_the_date() for translating date format
- Enqueue styles properly in a child theme and stylesheets location
- Enqueue more than two CSS styles in a child theme functions.php
- Proper way to make a tweaked theme into child-theme setting?