Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 26, 2023. It is now read-only.

ProtocolNebula/auto-translator-for-wpml

Repository files navigation

Auto Translator for WPML

Main repository: https://github.com/ProtocolNebula/auto-translator-for-wpml

This plugin extends the main funcitonallity to WPML.org plugin.

You need WPML plugin to use this plugin (so you need a license of it).

Read readme.txt to more information.

Adding a new Translation Service

If you want to translate with other service that is not added yet, you can create it in TranslationService folder (implementing TranslationService interface).

It will be auto detected by the plugin and you only must configure it in Admin page.

You can push the new service to the main repository and it will be available in the next plugin versions.

Call translation from my plugin/code

This part is still under development

If you need to translate some post, you can use:

Translate specifying Element ID and Destionation Language:

$postId, 'lang' => 'en', // destination language 'translation_complete' => false, // Mark as completed or not ])">do_action( 'wpmlat_translate_item', [
'element_id' => $postId,
'lang' => 'en', // destination language
'translation_complete' => false, // Mark as completed or not
])

About

Plugin that extends WPML.org plugin to auto translate Wordpress using external services like google.

Topics

Resources

Readme

License

GPL-2.0 license

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors