Bug 230964 (py-transpopy) - [NEW_PORT] textproc/py-transpopy: Python tool to translate strings on a po file with google translate API
Summary: [NEW_PORT] textproc/py-transpopy: Python tool to translate strings on a po fi...
Status: Closed FIXED
Alias: py-transpopy
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Danilo G. Baio
URL: https://github.com/kanazux/transpopy
Keywords:
Depends on: py-google-cloud-translate
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-27 21:16 UTC by Silvio Ap Silva
Modified: 2018-09-01 00:32 UTC (History)
2 users (show)

See Also:


Attachments
Shar file for py-transpopy (1.72 KB, text/plain)
2018-08-27 21:16 UTC, Silvio Ap Silva
no flags Details
new shar file with modifications (1.83 KB, text/plain)
2018-08-28 12:22 UTC, Silvio Ap Silva
no flags Details
New shar file setting python 3.4+ and concurrent on USE_PYTHON (1.84 KB, text/plain)
2018-08-28 12:52 UTC, Silvio Ap Silva
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Silvio Ap Silva 2018-08-27 21:16:25 UTC
Created attachment 196619 [details]
Shar file for py-transpopy

A simple tool to read and translate strings from a pot file.
It will translate the message ids and then save a new po file keeping the line and fuzzy references, if exists.
Comment 1 Nathan 2018-08-28 04:41:14 UTC
Needs to be aligned better, and why explicit python version, builds fine even with 2.7; Though you're missing a module for it, so won't run in neither 2.7 or 3.6
Comment 2 Silvio Ap Silva 2018-08-28 12:19:53 UTC
(In reply to Nathan from comment #1)
Really, the ident is wrong, i'm using vi(m) and not seen this. I'm sorry about this.
About the missing package, i've been submit a new port for this, right now.

The new port is on this issue.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230973

I'm sending a new shar file with modifications.
Comment 3 Silvio Ap Silva 2018-08-28 12:22:28 UTC
Created attachment 196639 [details]
new shar file with modifications

New shar file with the google project in run_depends.
Comment 4 Silvio Ap Silva 2018-08-28 12:23:06 UTC
About setting the python version, is because the google project don't support python2
Comment 5 Silvio Ap Silva 2018-08-28 12:52:15 UTC
Created attachment 196641 [details]
New shar file setting python 3.4+ and concurrent on USE_PYTHON

I set the python version as 3.4+ because the project don't support python2 anymore.

Bellow has a part of full discription in the github page of the project.

"Heads up! These libraries are supported on App Engine standard's Python 3 runtime but are not supported on App Engine's Python 2 runtime."

The full content is here:
https://github.com/GoogleCloudPlatform/google-cloud-python
Comment 6 commit-hook freebsd_committer freebsd_triage 2018-09-01 00:29:27 UTC
A commit references this bug:

Author: dbaio
Date: Sat Sep  1 00:28:42 UTC 2018
New revision: 478646
URL: https://svnweb.freebsd.org/changeset/ports/478646

Log:
  Add textproc/py-transpopy: Translate PO file strings with Google Translate API

  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

  PR:		230964
  Submitted by:	Silvio Ap Silva <contato@kanazuchi.com>

Changes:
  head/textproc/Makefile
  head/textproc/py-transpopy/
  head/textproc/py-transpopy/Makefile
  head/textproc/py-transpopy/distinfo
  head/textproc/py-transpopy/pkg-descr
Comment 7 Danilo G. Baio freebsd_committer freebsd_triage 2018-09-01 00:32:34 UTC
Committed, thanks!