Transifex_demo #1
No reviewers
Labels
No Label
No Milestone
No project
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/transifex-webhook#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "cisosama/transifex-webhook:Transifex_demo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Transifex demo added, now source string is translated into french
requirements.txt
,Dockerfile
,docker-compose.yml
, webhook argument processing)bff51a74da
toee0e081983
ee0e081983
tofcade1debb
fcade1debb
to3628348322
@ -0,0 +1,5 @@
FROM python:3
ADD requirements.txt /
I would create a directory for the app, such as
/app
@ -0,0 +1,17 @@
"""Transifex basic implementation using python native sdk """
should be made into a web app (e.g. cherrypy, flask, django, ...)
@ -0,0 +4,4 @@
from transifex.native import init, tx
from transifex.native.parsing import SourceString
env_path=os.path.join(os.getcwd(),'transifex.env')
since we're already telling docker-compose to load the
transifex.env
file, we don't need to do this anymore532389c76e
to1971fb0604
1971fb0604
to761d0b7bbb
761d0b7bbb
toed85f418af
ed85f418af
to9f7384d6c6
@ -0,0 +71,4 @@
response = requests.put("https://www.transifex.com/api/2/project/pybitmessage/resource/pybitmessage/content/",
headers=headers, files={'bitmessage_en.ts': open("src/translations/bitmessage_en.ts", "rb")})
return response
please make the changes required
52cac358b4
to9cfbadbe45
9cfbadbe45
to3052e97d90
3052e97d90
to02246b8602
02246b8602
to03132afaf7
obsolete