You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an installation of WP in french fr_FR.
I use wp-cli to install a plugin, for example duplicator.
I type wp plugin install duplicator then wp language plugin install duplicator fr_FR
Then I uninstall duplicator by command wp plugin uninstall duplicator
I see in the wp-content/languages/plugins/ the files duplicator-fr_FR.mo and duplicator-fr_FR.po.
So I want delete them and I use : wp language plugin uninstall duplicator fr_FR
but wp-cli respond: Warning: The 'fr_FR' language is active.
So I must activate an another language to uninstall the language files fr_FR: wp site switch-language en_US
and type wp language plugin uninstall duplicator fr_FR Success: Language uninstalled
If I delete a plugin in the dashboard screen plugins, the language files of plugin are also deleted, even if the en_FR language is still enabled.
Why the wp-cli command wp plugin uninstall don’t make the same?
Thanks
The text was updated successfully, but these errors were encountered:
danielbachhuber
changed the title
Uninstall a plugin not uninstall plugin po/mo files
Uninstalling a plugin does not remove plugin language files
Nov 9, 2022
Hey,
I have an installation of WP in french fr_FR.
I use wp-cli to install a plugin, for example duplicator.
I type
wp plugin install duplicator
thenwp language plugin install duplicator fr_FR
Then I uninstall duplicator by command
wp plugin uninstall duplicator
I see in the wp-content/languages/plugins/ the files duplicator-fr_FR.mo and duplicator-fr_FR.po.
So I want delete them and I use :
wp language plugin uninstall duplicator fr_FR
but wp-cli respond:
Warning: The 'fr_FR' language is active.
So I must activate an another language to uninstall the language files fr_FR:
wp site switch-language en_US
and type
wp language plugin uninstall duplicator fr_FR
Success: Language uninstalled
If I delete a plugin in the dashboard screen plugins, the language files of plugin are also deleted, even if the en_FR language is still enabled.
Why the wp-cli command wp plugin uninstall don’t make the same?
Thanks
The text was updated successfully, but these errors were encountered: