Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretranslate with strings from git #22

Open
jnavila opened this issue Aug 8, 2019 · 6 comments
Open

Pretranslate with strings from git #22

jnavila opened this issue Aug 8, 2019 · 6 comments

Comments

@jnavila
Copy link
Owner

jnavila commented Aug 8, 2019

Some parts of git inline help are very close to the documentation strings. This task could be applied to all available languages in git and could help kickstart translations in other languages.

@jnavila
Copy link
Owner Author

jnavila commented Aug 8, 2019

"translate toolkit" provides a utility name pretranslate that can do the job.

@rimrul
Copy link
Contributor

rimrul commented Aug 9, 2019

I've just done a quick test-run with po/documentation.de.po from current master and de.po from git/git's current master. The command I ran was

pretranslate po/documentation.de.po -t de.po -o po/documentation.de.po.

It works, but needs manual review (a carefull git add -p, probably). It marks all strings, even exact matches and unchanged strigs as fuzzy.

@jnavila
Copy link
Owner Author

jnavila commented Aug 9, 2019

OK; so this is at most a one-time process. I haven't tested for French. Do you think it's worth it?

@rimrul
Copy link
Contributor

rimrul commented Aug 9, 2019 via email

@jnavila
Copy link
Owner Author

jnavila commented Aug 9, 2019

I used the following line:

$ pretranslate -t po/documentation.fr.po -i po/documentation.pot --tm=../git/po/fr.po -o po/documentation.pre.fr.po

In fact, I think that's exactly the way it has to be used for new versions of po/documentation.pot

@jnavila
Copy link
Owner Author

jnavila commented Aug 14, 2019

I did it for es_MX and ru.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@jnavila @rimrul and others