qtranslate / qtranslate-xt

qTranslate-XT (eXTended) - reviving qTranslate-X multilingual plugin for WordPress. A new community-driven plugin soon. Built-in modules for WooCommerce, ACF, slugs and others.
GNU General Public License v2.0
546 stars 103 forks source link

Delete admin translator, tidy up front interface #1321

Closed herrvigg closed 1 year ago

herrvigg commented 1 year ago

The admin interface was meant to translate admin items specifically, like multilingual terms, but it is not used internally in practice.

Delete QTX_Translator_Admin class and WP_Translator_Admin interface. Delete the multilingual_term hook that is specific to qTranslate. If some users were using that hook, which is very unlikely, they can still call qtranxf_get_terms_joined directly.

Polish the base interface and translator that remains for front side. Rename WP_Translator to QTX_Translator_Interface. Redefine the flag constants properly, tidy up PHPDoc.