jannesblobel / inlang-plugin-po

MIT License
3 stars 3 forks source link

Machine translation is not working on .po files #3

Open samuelstroschein opened 1 year ago

samuelstroschein commented 1 year ago

originally opened in https://github.com/inlang/inlang/issues/334

Problem

Machine translation does not work for .po files. Conjecture: The reference language file (pot) has no 'msgstr' messages. I assume that the machine translation function tried to take this as a reference message, but the string is empty/unavailable.

Steps to reproduce

  1. Open a Project whit a pot file as a reference
  2. delete a translated message. commit this message (only for testing )
  3. try to translate this message via machine translation

The second video supports this thesis

Additional information (screenshots?)

https://user-images.githubusercontent.com/72493222/215558217-4b76331e-f8ed-4f6d-a243-2cfa08bc86a7.mp4

https://user-images.githubusercontent.com/72493222/215561582-64b2c2f7-f1fd-4958-8098-39eaecb7da98.mp4