Descrição
TranslateML is a powerful yet lightweight WordPress plugin designed to provide seamless frontend content translation. The plugin uses the TranslateML API to translate text and leverages caching to deliver high performance.
Key Features:
- Automatic Translation: Translates frontend content dynamically using TranslateML API.
- Caching: Optimized caching for faster translation delivery.
- Language Switcher: Easily switch between multiple languages on your site.
- Customizable URLs: Adds a two-digit language code to URLs for SEO-friendly language versions.
- Default Language: Falls back to the default language (English) if a translation is unavailable.
How It Works:
- Captures the output buffer of the page.
- Sends the content to TranslateML API for translation.
- Replaces the content with the translated version or uses the default language if no translation exists.
- Translations are cached for enhanced performance.
Performance Note:
TranslateML activates its translation buffer only when a non-default language is requested and a valid API key is configured. However, this may introduce performance overhead in certain environments — especially on high-traffic sites or pages with large content.
Scenarios to watch:
- Remote API calls on every translated page request (if not cached)
- Incompatibility with server-side full-page caching (e.g., Varnish, NGINX)
- Large dynamic pages without caching may slow down noticeably
Bug Reports
Bug reports for TranslateML are welcomed on GitHub. Please note GitHub is not a support forum, and issues that aren’t properly qualified as bugs will be closed.
External Services
This plugin relies on the following third-party service:
TranslateML.com API
TranslateML plugin connects to TranslateML.com API to translate the contents. It sends the user’s site url , language source and language target to perform translation. No personally identifiable information (PII) is collected or transmitted.
This API service is provided by the developer of the plugin : Terms of Service , Privacy Policy
Instalação
- Upload the
Translateml
folder to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Configure API settings in the TranslateML settings page under the WordPress admin dashboard.
Perguntas frequentes
-
How do I set up the TranslateML API?
-
Go to the plugin settings page and enter your TranslateML API key. If you don’t have one, sign up at TranslateML.com.
-
If a translation is unavailable, the plugin will display the default language (English).
-
Is this plugin compatible with caching plugins?
-
Yes, TranslateML is designed to work seamlessly with popular caching plugins.
-
Will this plugin work with server-side caching?
-
TranslateML uses PHP output buffering (
ob_start()
) to dynamically translate content on the frontend. While this only happens when a translated language is requested and an API key is configured, it may conflict with full-page server-side caching systems.Some examples of caching systems that may interfere:
– Varnish
– NGINX full-page caching
– Managed WordPress hosting caches (e.g., WP Engine, Kinsta, SiteGround)If your site uses such caching:
– Translations may not appear as expected unless caching is bypassed for translated pages.
– It is recommended to test thoroughly or disable caching for multilingual URLs.
Avaliações
Este plugin não tem avaliações.
Contribuidores e programadores
“TranslateML” é software de código aberto. As seguintes pessoas contribuíram para este plugin:
ContribuidoresTraduza o “TranslateML” para o seu idioma.
Interessado no desenvolvimento?
Consulte o código, consulte o repositório SVN, ou subscreva o registo de alterações por RSS.
Registo de alterações
1.0.1
- Added banner and Screenshots
1.0.0
- Initial release.
- Integrated TranslateML API for translations.
- Added language switcher functionality.
- Implemented caching for performance optimization.