0

I am generating .pot files by using the WP-CLI command above:

wp i18n make-pot ...

It works well, but it does not retrieve strings from translation functions with FQN (Qualifier).

Example:

\__( 'This is a test text', 'test-plugin' ); // with FQN - Does not work!

__( 'This is another test text', 'test-plugin' ) // without FQN - works fine!

I checked the documentation https://developer.wordpress.org/cli/commands/i18n/make-pot/ and it has not an option.

Do you know how to solve it?

Thank you!

1
  • You shouldn’t need to use \ for these functions. Is just removing it not an option? Aug 9 at 15:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.