WP Manifestindependent plugin directory
manifest / i18n / gp-translation-memory

GlotCore Translation Memory

GlotCore Translation Memory (TM) – Extends GlotPress by suggesting translations based on previously approved strings, whether they are exact matches (100%) or very similar.

★ 0stars

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/meloniq/gp-translation-memory/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Suggests translations based on a translation memory of previously translated strings in GlotPress.

Description

Ideas for implementation:

  1. Query the originals table for the exact match of the original string.
  • If found, query the translations table for translations of the original string from other projects.
  1. Separate database table to store simplified original strings (originals table, singular column)
  • Column need to have fulltext index for searching.
  • When a new original string is added, it is simplified and stored in the singular column.
  • When a original string is deleted, the corresponding entry in the new table is also deleted.
  • Do a fulltext search on the singular column to find similar original strings (e.g. max 100 results).
  • Found similar strings filter in PHP using a string similarity algorithm (e.g., Levenshtein distance) to find the closest matches (10 with > 80% match).
  • Query the translations table for translations of the similar original strings from other projects.

Changelog

1.0

  • Initial release.