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.zipSuggests translations based on a translation memory of previously translated strings in GlotPress.
Description
Ideas for implementation:
- Query the
originalstable for the exact match of the original string.
- If found, query the
translationstable for translations of the original string from other projects.
- Separate database table to store simplified original strings (
originalstable,singularcolumn)
- Column need to have fulltext index for searching.
- When a new original string is added, it is simplified and stored in the
singularcolumn. - When a original string is deleted, the corresponding entry in the new table is also deleted.
- Do a fulltext search on the
singularcolumn 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
translationstable for translations of the similar original strings from other projects.
Changelog
1.0
- Initial release.