r12f / potr

Potr (Po Translator) is a command line tool for translating gettext PO files.
https://github.com/r12f/potr
Apache License 2.0
10 stars 2 forks source link

Add `#, fuzzy` support after AI translation #8

Open Demian101 opened 1 year ago

Demian101 commented 1 year ago

Hi, GREAT Work!!

Could you please add support for #, fuzzy after AI translation?

The main reason is to facilitate retrieval of which translations need review and correction.

like this:

#: src/SUMMARY.md:54
#, fuzzy
msgid "....."
msgstr ",,,,,"
r12f commented 1 year ago

Hi @Demian101 , do you mind to share a bit more insight on how you like to use it?

This flag is usually added by msgmerge when msgid is changed. And usually after translation, we can simply check the git diff to see the changes, so we don’t have to use fuzzy for mark the translated lines.

So, my guess is that you like to keep it as a marker for future reviews?

r12f commented 1 year ago

The code is done. But the questions above still stands, just to get a sense on the use cases and see anything else needs to be added or not. If not, the issue could be closed I believe. :D

Demian101 commented 1 year ago

The code is done. But the questions above still stands, just to get a sense on the use cases and see anything else needs to be added or not. If not, the issue could be closed I believe. :D

COOL! Firstly thanks a lot for it!

Yep, as you say, The primary goal is to serve as a label for future reviews. We have a team to review these collectively, and these processes aligns with the design pattern of gettext() & .po file (or so I think lol).

Considering the significant noise in the git diff—we always receive a lot PRs and commits related to Chinese articles—it's challenging for us to isolate and inspect only the translation changes within the git diff.