WP Manifestindependent plugin directory
manifest / i18n / smarty-deepl-bridge

SM - DeepL Bridge

A simple bridge plugin to manage DeepL translations from one central place.

by Martin Nestorov · github.com/mnestorov/smarty-deepl-bridge · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/mnestorov/smarty-deepl-bridge/archive/refs/heads/main.zip

Readme

SM - DeepL Bridge

Overview

SM - DeepL Bridge is a plugin that integrates DeepL translation services with WordPress, allowing for seamless content translation.

Features

  • Automatic translation of posts and pages.
  • Support for multiple languages.
  • Easy-to-use interface for managing translations.
  • Customizable translation settings.

Installation

  1. Download the plugin from the GitHub repository.
  2. Upload the plugin files to the /wp-content/plugins/smarty-deepl-bridge directory.
  3. Activate the plugin through the 'Plugins' menu in WordPress.

Usage

  1. Navigate to the plugin settings page.
  2. Configure your DeepL API key and translation preferences.
  3. Use the translation options available in the post/page editor.

Code Example

// Check if the DeepL Bridge class is available (so we don't cause a fatal error).
if (class_exists('Smarty_DeepL_Bridge')) {
    // Load the DeepL Bridge plugin's options array:
    $bridge_options = get_option('smarty_deepl_bridge_options', array());

    // Check if the bridging plugin has translation enabled
    if (isset($bridge_options['smarty_deepl_translation_enabled']) 
        && $bridge_options['smarty_deepl_translation_enabled'] === '1') {
        // If so, call the static translate method.
        $text = Smarty_DeepL_Bridge::translate($text);
    } else {
        // The user has toggled off translation in the Bridge plugin,
        // or the setting doesn’t exist.
        error_log("⚠️ DeepL translation is disabled in the Bridge plugin settings.");
    }
} else {
    // The bridging plugin or class is not loaded
    error_log("⚠️ Smarty DeepL Bridge class not found (plugin not active?).");
}

Requirements

  • WordPress 6.5+ or higher.
  • PHP 7.2+.

Changelog

For a detailed list of changes and updates made to this project, please refer to our Changelog.

Contributing

Contributions are welcome. Please follow the WordPress coding standards and submit pull requests for any enhancements.

Support The Project

If you find this script helpful and would like to support its development and maintenance, please consider the following options:

  • Star the repository: If you're using this script from a GitHub repository, please give the project a star on GitHub. This helps others discover the project and shows your appreciation for the work done.

  • Share your feedback: Your feedback, suggestions, and feature requests are invaluable to the project's growth. Please open issues on the GitHub repository or contact the author directly to provide your input.

  • Contribute: You can contribute to the project by submitting pull requests with bug fixes, improvements, or new features. Make sure to follow the project's coding style and guidelines when making changes.

  • Spread the word: Share the project with your friends, colleagues, and social media networks to help others benefit from the script as well.

  • Donate: Show your appreciation with a small donation. Your support will help me maintain and enhance the script. Every little bit helps, and your donation will make a big difference in my ability to keep this project alive and thriving.

Your support is greatly appreciated and will help ensure all of the projects continued development and improvement. Thank you for being a part of the community! You can send me money on Revolut by following this link: https://revolut.me/mnestorovv


License

This project is released under the GPL-2.0+ License.

Read the full README on GitHub →