Automattic / gp-translation-helpers

GlotPress plugin to add some info to the translation editor
https://translate.wordpress.com
4 stars 1 forks source link

The plugin relies on a non-existent class: GP_Translation_Memory How can I do it? #15

Closed sunxiyuan closed 3 years ago

sunxiyuan commented 3 years ago

This project seems to be just a user interface. Where do I need to find the implementation of the functions behind it? Thank you so much to anyone who can help ^_^

dlind1 commented 3 years ago

Hello! The implementation of GP_Translation_Memory is in a separate plugin, which has a lot of code specific to WordPress.com functionality (as well as another dependency on GP_Elasticsearch) and can't be really used on it's own without heavy modifications. If you'd like to see it anyway, we could publish that repository, but you'd have to re-implement a large portion of it to make it work.

sunxiyuan commented 3 years ago

I was really surprised to receive a reply, I originally thought it was a dead repository. If you can release the code, it would be great. I would also like to study the implementation method of the memory. I currently use the wporg-gp-translation-suggestions obtained from wordpress.org and the Pontoon project from Mozilla to implement a memory for GlotPress: image

sunxiyuan commented 3 years ago

Oh, I just noticed that your reply contained "GP_Elasticsearch". I think I already know the implementation principle of memory, so I don't need to trouble you to publish this repository. Thanks again for your reply!

dlind1 commented 3 years ago

Sounds good, let me know if you'd need it after all or have some other questions 🙂