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.

by MELONIQ.NET · github.com/meloniq/gp-translation-memory · 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/meloniq/gp-translation-memory/archive/refs/heads/master.zip

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.