Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete admin translator, tidy up front interface #1321

Merged
merged 2 commits into from
Apr 15, 2023

Conversation

herrvigg
Copy link
Collaborator

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.

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.
@herrvigg herrvigg added the core Core functionalities, including the admin section label Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core functionalities, including the admin section
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant