Deleting Languages and Plugin Data By Doing a WPML Reset
In some cases, you may want to delete translations created with WPML and remove plugin data for a fresh start.
When website plans change, you might make big updates to your default language content. Or, you might decide not to use a secondary language anymore.
In these situations, you may want to remove all WPML data from both the front-end of your WordPress site and your website’s database. This includes tables and translations. By doing this, you take your website back to how it was before you used WPML. Then, when you reinstall the plugin, you can start with a clean slate.
To do this, you need to follow a 3-step process:
It is important that you follow this exact order for these steps.
- Remove the secondary language(s) and any existing translations
- Delete the remaining MO and PO files for the removed languages
- Do a WPML reset to remove tables from the database and deactivate the plugin
- Go to WPML → Languages. In the Sites Languages section, Remove the secondary language(s) of your choice.
- A table with the deactivated languages appears. Click on the delete icon to remove all the content you have translated into your secondary language from the database.
- In some cases, this feature might not delete translations of taxonomy terms.
- This feature is available in versions WPML 4.5.9 and above.
Step 2: Delete the MO and PO Files for the Removed Language
After you remove a language and its translations from your database, other themes and plugins on your site may continue downloading translation files in that language. To prevent this from happening, you need to delete any leftover MO and PO files for that language:- Access your website using an FTP Tool such as FileZilla.
- Go to your site’s ../wp-content/languages/plugins/ folder.
- Delete the MO and PO files ending with the language code of the language you want to delete. For example, if you removed the Spanish language (ES) with the Spanish locale (es), the language files would end with -es_ES.mo and -es_ES.po.
Step 3: Do the WPML Reset
The final step is to reset WPML. This removes WPML tables from the site’s database and deactivates the plugin. The WPML reset cannot be undone. All translations you have sent to remote translation services will be lost. We recommend that you create a backup of your site before resetting WPML.- Go to WPML → Support and click the Troubleshooting link.
- In the Reset section of the Troubleshooting page, select the I am about to reset all translation and language data checkbox. Then, click the Reset and deactivate WPML button.
912sy.com下载资源均来源于网络,仅供学习和参考使用,版权归原作者所有,勿作商业用途,请在下载后24小时之内自觉删除。
本站发布的内容若无意中侵犯到您的权益,请联系我们,本站将在一个工作日内删除。如遇到任何问题请联系客服QQ:2385367137
912sy » Deleting Languages and Plugin Data By Doing a WPML Reset
本站发布的内容若无意中侵犯到您的权益,请联系我们,本站将在一个工作日内删除。如遇到任何问题请联系客服QQ:2385367137
912sy » Deleting Languages and Plugin Data By Doing a WPML Reset