WP Manifestindependent plugin directory
manifest / i18n / aucor-polylang-translation-mapper

Polylang Translation Mapper

This is a tool that helps you connect all imported posts as translations for Polylang.

★ 3stars
35composer installs
1.2latest · 7 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/aucor/aucor-polylang-translation-mapper/archive/refs/heads/master.zip

On Packagist as aucor/aucor-polylang-translation-mapper:

composer require aucor/aucor-polylang-translation-mapper
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Description

This is a tool that helps you connect all imported posts as translations for the multilingual WordPress plugin Polylang.

Requirements for the plugin:

  • Posts should have a language (you can set them when importing for example with WP All Import)
  • Translations have a unique identifier key in post_meta

Take backup of your database before doing this! Use at your own risk.

Installation

How-to use:

  • Import your content with WP All Import Pro (or something else) and check that requirements above are met
  • Take a backup of your database
  • Download plugin and activate (you will need Polylang active)
  • You will see UI in admin notice that shows you the post type and meta_id
  • If post type or master id are incorrect, change them in the code (lines 36 and 37)
  • Click the button "Start connecting translations"
  • Click through steps (50 posts at a time). Each step will take some time.
  • Deactivate and delete plugin when you have gone through all the steps

Composer:

$ composer aucor/aucor-polylang-translation-mapper

With composer.json:

{
  "require": {
    "aucor/aucor-polylang-translation-mapper": "*"
  },
  "extra": {
    "installer-paths": {
      "htdocs/wp-content/plugins/{$name}/": ["type:wordpress-plugin"]
    }
  }
}

Issues and feature whishlist

Issues:

(No known issues, yet)

Feature whishlist:

  • Maybe a UI to select post type and master_id
  • Show total updated instead of count for step
  • Add CLI support

Releases

3 releases.

Tag
Published
1.2 latest
Nov 28, 2018 7 years ago
1.1
Sep 30, 2016 10 years ago
Sep 30, 2016 10 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.