Install
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.zipNo 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:
- 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.