diff --git a/textproc/Makefile b/textproc/Makefile index 12fa8384845a..750174e4c50c 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1424,6 +1424,7 @@ SUBDIR += py-trans SUBDIR += py-transifex-client SUBDIR += py-translationstring + SUBDIR += py-transpopy SUBDIR += py-tvgrab SUBDIR += py-ucl SUBDIR += py-whoosh diff --git a/textproc/py-transpopy/Makefile b/textproc/py-transpopy/Makefile new file mode 100644 index 000000000000..d0ccbf333b40 --- /dev/null +++ b/textproc/py-transpopy/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +PORTNAME= transpopy +PORTVERSION= 0.1.1 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= contato@kanazuchi.com +COMMENT= Translate PO file strings with Google Translate API + +LICENSE= BSD2CLAUSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}google-cloud-translate>=0:www/py-google-cloud-translate@${PY_FLAVOR} + +USES= python:3.4+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/textproc/py-transpopy/distinfo b/textproc/py-transpopy/distinfo new file mode 100644 index 000000000000..42d993fe74e1 --- /dev/null +++ b/textproc/py-transpopy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1535392714 +SHA256 (transpopy-0.1.1.tar.gz) = 76182a34cc976e9050fc7cb93c22f016e91d80cde2b4cbe809315eaa7a4e560c +SIZE (transpopy-0.1.1.tar.gz) = 3430 diff --git a/textproc/py-transpopy/pkg-descr b/textproc/py-transpopy/pkg-descr new file mode 100644 index 000000000000..f609ccfd7b10 --- /dev/null +++ b/textproc/py-transpopy/pkg-descr @@ -0,0 +1,6 @@ +Transpopy uses the Google Translate API to convert/translate strings from a +PO (gettext Portable Object) file, keeping your lines or fuzzy references. + +To use the Google Translate API it's needed an API key in json format. + +WWW: https://github.com/kanazux/transpopy