Page MenuHomeFreeBSD

tools/translate.sh: Improve usage
ClosedPublic

Authored by dbaio on Sat, Nov 20, 2:07 PM.

Details

Summary
tools/translate.sh: Improve usage

- Update .po file with the source document before translating.

- Allow translation of a specific document.

Translate all es documents:
 ./tools/translate.sh documentation es

Translate only pt-br articles/bsdl-gpl:
  ./tools/translate.sh documentation pt-br articles/bsdl-gpl

Diff Detail

Repository
R9 FreeBSD doc repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

dbaio requested review of this revision.Sat, Nov 20, 2:07 PM
dbaio created this revision.
fernape requested changes to this revision.Sat, Nov 20, 8:15 PM

I like it :-) Just two small comments.

tools/translate.sh
85

Extra space before )

107

"$dirbase/$name.po" ---> "${pofile}"
"$dirbase/$name.po~" ---> "${pofile}~"

This revision now requires changes to proceed.Sat, Nov 20, 8:15 PM

Thanks for reviewing @fernape

This revision is now accepted and ready to land.Sun, Nov 21, 12:16 PM
This revision was automatically updated to reflect the committed changes.