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

TranslatePress fetches regular language #630

Open
sybrew opened this issue May 9, 2023 · 0 comments
Open

TranslatePress fetches regular language #630

sybrew opened this issue May 9, 2023 · 0 comments

Comments

@sybrew
Copy link
Owner

sybrew commented May 9, 2023

From Vladimir's findings:

Descriptions and titles aren't translated with TranslatePress.

TranslatePress uses output buffering to translate the page instead of assigning a new ID to the page.
This makes the Core APIs of WordPress send default, untranslated content.

We could use trp_translate to translate the content of select fields (with all performance implications attached), but it could add HTML.
So, in our content fetchers (like tsf()->fetch_excerpt()), which expect raw HTML, we should add a filter to allow this type of translation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant