You can use the Theme and plugins localization feature in WPML to generate a PO file that contains a list of all translatable text in a plugin or theme.
To get started, make sure you have the WPML and WPML String Translation plugins installed on your site.
To generate a .po file for a theme or plugin:
- Go to WPML → Theme and plugins localization and select the theme or plugin you want to generate a PO file for.
- Click to scan the selected components for strings.
- Once the scanning finishes, click the download icon next to the theme or plugin.